Repository navigation
feat(signals): add a page picker when several pages report a graph - #261
Merged
Merged
Conversation
In the hub and the extension the panel is not framed by a page, so the Signals tab locked onto whichever page's graph arrived first and kept it until that page went away. With two tabs open there was no way to see the other tab's graph. The tab now shows a Page select when more than one page reports a signal graph, using pickPage like Components. The Graph of options follow the chosen page, each page keeps its own Graph of choice, and select-signal-target carries the chosen page id. If the chosen page closes, the tab moves to the page that reported last and announces it. A panel framed by a page, or a single reporting page, works as before.
Contributor
🚀 Deploying Preview to Cloudflare 🚀Preview Deployments by commit
|
7 of 8 tasks
# Conflicts: # extension/ui/assets/browser-agent-rpc-BXhoSh1z-C_twCiPD.js # extension/ui/assets/browser-agent-rpc-BXhoSh1z-D63sBobJ.js # extension/ui/assets/browser-agent-rpc-BXhoSh1z-Do6b9e5w.js # extension/ui/assets/index-BEfrZ0QX.js # extension/ui/assets/index-D1Pe785b.js # extension/ui/assets/index-Jvbl2jr9.js # extension/ui/index.html
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.
What and why
In the hub and the extension the panel is not framed by a page, so the Signals tab locked onto whichever page's graph arrived first and stayed there until that page went away. With two tabs open there was no way to see the other tab's graph.
The Signals tab now shows a Page select when more than one page reports a signal graph. It uses the shared
pickPagelike Components, and the sameapp-selectmarkup as Components, Network and Store.select-signal-targetis sent with the chosen page'spageId.The docs page
inspectors/signals.mdhas a new "Page picker" section.How it was verified
pnpm commit:check: 1 commit message OKpnpm format:check: all files passpnpm typecheck: passes (noerror TSorerror NGinngc -p app/tsconfig.json)pnpm test:panel: 29 files, 168 tests passed. New tests cover two pages reporting, switching the graph and the Graph of options, the RPC carrying the chosen pageId and a pick kept per page, falling back and announcing when the chosen page closes, and no picker with one page.pnpm test:devtools: 129 files, 1425 tests passed. The first run had 8 failures in unrelated timing and CLI tests; the rerun passed.apps/docs/src/content/inspectors/signals.md) andpnpm docs:buildpasses (run withNX_NO_CLOUD=true; without it, Nx fails to download its Cloud client)pnpm extension:build, rebuiltextension/uicommittedpnpm test:axecould not download Chromium, so the same script ran with the installed Chromium. Every tab and view passed axe in dark and light, and every tab had no horizontal overflow at 360px./and/examples/signals), opened at/__devframes/: the Page picker shows both pages. The keyboard (Enter, Arrow, Enter) switches the graph and the Graph of options, and the status region announces the switch. axe is clean with the listbox open and closed in both schemes, and there is no overflow at 360px.Notes for reviewers
reportedAt, so "newest" forpickPageis the page that owns the top-levelgraphin the shared state. This keeps the previous fallback behaviour.titleandurl, falling back toPage <id>like Components.graphwith nopagesmap, it is treated as a single page, so there is no picker.Summary by CodeRabbit