@checkstack/frontend 0.3.6 → 0.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # @checkstack/frontend
2
2
 
3
+ ## 0.3.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [594eecc]
8
+ - @checkstack/ui@1.3.3
9
+ - @checkstack/about-frontend@0.2.5
10
+ - @checkstack/announcement-frontend@0.2.5
11
+ - @checkstack/auth-frontend@0.5.22
12
+ - @checkstack/catalog-frontend@0.5.12
13
+ - @checkstack/command-frontend@0.2.24
14
+ - @checkstack/dependency-frontend@0.2.7
15
+
16
+ ## 0.3.7
17
+
18
+ ### Patch Changes
19
+
20
+ - 0388000: Implemented a global performance-aware UI infrastructure that detects hardware capabilities (using heuristics and frame-budget benchmarks) to automatically disable expensive CSS animations, backdrop-blurs, and glassmorphism effects on low-power or non-hardware-accelerated devices.
21
+ - Updated dependencies [0388000]
22
+ - @checkstack/ui@1.3.2
23
+ - @checkstack/command-frontend@0.2.23
24
+ - @checkstack/about-frontend@0.2.4
25
+ - @checkstack/announcement-frontend@0.2.4
26
+ - @checkstack/auth-frontend@0.5.21
27
+ - @checkstack/catalog-frontend@0.5.11
28
+ - @checkstack/dependency-frontend@0.2.6
29
+
3
30
  ## 0.3.6
4
31
 
5
32
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/frontend",
3
- "version": "0.3.6",
3
+ "version": "0.3.8",
4
4
  "checkstack": {
5
5
  "type": "frontend"
6
6
  },
package/src/App.tsx CHANGED
@@ -36,6 +36,9 @@ import {
36
36
  LoadingSpinner,
37
37
  ToastProvider,
38
38
  AmbientBackground,
39
+ PerformanceProvider,
40
+ usePerformance,
41
+ cn,
39
42
  } from "@checkstack/ui";
40
43
  import { SignalProvider } from "@checkstack/signal-frontend";
41
44
  import { SessionProvider } from "@checkstack/auth-frontend";
@@ -125,7 +128,7 @@ const RouteGuard: React.FC<{
125
128
  */
126
129
  function AppContent() {
127
130
  // Enable dynamic plugin loading/unloading via signals
128
- // This causes re-renders when plugins change
131
+ const { isLowPower } = usePerformance();
129
132
  usePluginLifecycle();
130
133
 
131
134
  return (
@@ -134,7 +137,10 @@ function AppContent() {
134
137
  <GlobalShortcuts />
135
138
  <AmbientBackground className="text-foreground font-sans">
136
139
  <AnnouncementBanner />
137
- <header className="p-4 bg-card/80 backdrop-blur-sm shadow-sm border-b border-border z-50 relative">
140
+ <header className={cn(
141
+ "p-4 shadow-sm border-b border-border z-50 relative",
142
+ isLowPower ? "bg-card" : "bg-card/80 backdrop-blur-sm"
143
+ )}>
138
144
  <div className="flex items-center justify-between gap-4">
139
145
  {/* Left: Logo and main navigation */}
140
146
  <div className="flex items-center gap-8 flex-shrink-0">
@@ -284,7 +290,9 @@ function AppWithApis() {
284
290
  <SessionProvider>
285
291
  <SignalProvider backendUrl={baseUrl}>
286
292
  <ToastProvider>
287
- <AppContent />
293
+ <PerformanceProvider>
294
+ <AppContent />
295
+ </PerformanceProvider>
288
296
  </ToastProvider>
289
297
  </SignalProvider>
290
298
  </SessionProvider>