Repository navigation
Animate the FX Viewer favicon during active runs - #160
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. WalkthroughThe viewer now verifies whether a matching run is executing and reports that status to browser clients. The browser uses the status to animate the viewer favicon, with a static active icon when reduced motion is enabled. ChangesRun activity indicator
Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Feature · Severity of issue fixed: Low Sequence Diagram(s)sequenceDiagram
participant Browser
participant ViewerAPI
participant RuntimeControl
participant ObservationReader
participant ViewerController
participant RunFavicon
Browser->>ViewerAPI: Request snapshot or event batch
ViewerAPI->>RuntimeControl: Check matching run execution
RuntimeControl-->>ViewerAPI: Return execution status
ViewerAPI-->>ObservationReader: Return response and activity header
ObservationReader-->>ViewerController: Provide activity status
ViewerController-->>RunFavicon: Update favicon activity
Possibly related PRs
Merge Risk:
|
User problem
Several FX Viewer tabs can look alike at a glance when one run is still executing.
Closes #158.
Resulting behavior
The active run tab shows a green tile behind the
f(x)mark. The tile pulses between two shades and stays bright with reduced motion.The viewer returns to the standard icon when execution ends or the runner disappears. Resuming the run restores the activity indicator on the same tab.
I added an Unreleased entry to CHANGELOG.md.
Affected scenarios
Watch a run alongside a saved plan and a completed run. Leave a tab open across completion or resume. Inspect an unfinished record after its runner has exited, or use the viewer with reduced motion enabled.
Before and after
Previously, all three tabs showed the same light/dark wordmark. In the demo, the rightmost tab gains a green tile during execution and returns to the standard wordmark at completion.
Demo and evidence
Captured from Chrome for Testing with the provider-free viewer observation fixture. Watch the rightmost tab.
How to test
To inspect actual Chrome tabs, build the engine and run the project service demo. Open the plan and let the baseline run complete. Start the variant, then watch it alongside the other two tabs. While the variant is active, enable reduced motion and confirm that its green tile stays steady.
Verified in Chrome and Chrome for Testing with the native engine. The Rust workspace tests, viewer unit tests, embedded viewer check, and observation and control checks passed.
Caveats
Browsers may throttle animation in background tabs. The indicator uses verified local runner activity and follows the viewer's observation polling cadence.