feat: add first-run guided tour to the generated report, with entry-node pulse - #16
Merged
Conversation
…ode pulse Every generated WORKFLOW.html now launches a spotlight walkthrough the first time it's opened, dimming the page and stepping through each section in turn (stat row, derivation, codebase graph, architecture, flows, concurrency, bottlenecks, theme toggle). Steps for sections a project doesn't have (no detected routes, no graph) are skipped automatically at runtime. Replayable anytime via a new "?" button next to the theme toggle; the tour is otherwise suppressed after first dismissal via localStorage. The codebase graph's entry node also gets a radar-ping pulse/glow the first time the graph is actually visible and clickable, to make it read as "start here." The pulse is gated on the guided tour not being active -- including a timing race where the graph's IntersectionObserver fires before the tour's auto-launch delay elapses -- so it never plays out during the window when the tour overlay would block the click it's inviting. Ring/glow color is theme-aware so it reads in both light and dark mode.
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.
Summary
?button. Steps are skipped at runtime for sections a project doesn't have.IntersectionObserverfires before the tour's auto-launch delay elapses). Ring/glow uses a theme-aware color so it's visible in both light and dark mode.docs/index.htmlis intentionally untouched here — it's already being regenerated in #15 for the graph feature, and only stale-content changes are picked up there to avoid churn across the two PRs.Test plan
python3 -m py_compile workflow_generator_mcp/analyze.pypython3 -m pytest tests/ -q— 80 passed