Add presentation slideshow, expand docs examples#414
Merged
Conversation
Presentation slides (fleet_performance, cost_overview) with a slideshow that uses keyboard shortcuts for navigation. Mini examples for blog embeds: hello_world, reactive_binding, dynamic_list, conditional, actions. Removes old loose example files. Updates contract fixtures for Dialog.dismissible and Kbd.
Adds seven new example pages (actions, conditional, deploy-pipeline, dynamic-list, expense-tracker, reactive-binding, server-dashboard) and restructures the examples nav into Interactivity / Data & Visualization / Apps groups. Fixes two broken previews: - cross-filter: the let-binding referenced metrics_north/etc. which were never loaded into state. Wraps the layout in PrefabApp(state=...) with flattened per-region keys and moves the let onto Dashboard. - server-dashboard: removes delta=variant_name misuse on the CPU/Memory metrics (was rendering as a neutral "— success"/"— stable" badge), pins the app to max-w-md so width is stable across ticks, and makes Uptime/Requests/p99 Latency actually react to tick.
Slide-producing helpers (fleet_performance, cost_overview) now accept a css_class argument so the slideshow can apply a shared min-height, preventing layout jumps when switching slides. Adds a brief README for examples/mini/ and examples/presentation/.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a presentation slideshow example that exercises the new key bindings feature, a set of mini examples for blog embeds, and a broad expansion of the docs examples gallery. Also fixes two previews that were silently broken.
Presentation (
examples/presentation/):fleet_performance.py(DataTable with progress gauges),cost_overview.py(pie + area chart), andslideshow.py(stitches them with arrow-key nav, prev/next buttons, and a Shift+? shortcuts dialog).Mini examples (
examples/mini/):hello_world,reactive_binding,dynamic_list,conditional,actions— small self-containedPrefabApps for blog embeds. Removes the old loosedashboard.py/growth.py/etc.Docs examples gallery: seven new pages — actions, conditional, deploy-pipeline, dynamic-list, expense-tracker, reactive-binding, server-dashboard — and a restructured nav (Interactivity / Data & Visualization / Apps). Updates contract fixtures for
Dialog.dismissibleandKbd.Broken-preview fixes:
cross-filterreferencedmetrics_north,metrics_all, etc. in aletbinding but never loaded them into state — the dashboard rendered empty. Wraps the layout in aPrefabApp(state=...)with flattened per-region keys.server-dashboardpassed variant names intoMetric.delta, which rendered as neutral "— success" / "— stable" badges. Drops the bogus deltas, pins the app container tomax-w-mdto stop it from flexing width each tick, and makes Uptime/Requests/p99 Latency reactive.