Repository navigation
feat(forms): add path and type filters and a visible event limit to the timeline - #264
Merged
Merged
Conversation
…he timeline The forms timeline could only be filtered by origin, and it showed the last 100 events without saying so. On a busy form the event you are looking for was hard to find, and older events disappeared from the list with no hint that more existed. Add a field path filter (case-insensitive substring, Escape clears it) and an event type select listing the types present, combined with the origin filter, the same way the form-history agent tool combines its path, type and origin arguments. A count next to the filters says "Showing the latest 100 of N events" when the list is cut, and an empty state with Clear filters appears when the filters hide every event. Update the timeline section of the forms inspector docs and rebuild extension/ui.
Contributor
🚀 Deploying Preview to Cloudflare 🚀Preview Deployments by commit
|
5 of 8 tasks
The visible count changes with every recorded event, and its live region made screen readers read it out while the user typed in the app. A separate status now updates only when a filter changes.
# Conflicts: # extension/ui/assets/browser-agent-rpc-BXhoSh1z-433J4Mmg.js # extension/ui/assets/browser-agent-rpc-BXhoSh1z-C_twCiPD.js # extension/ui/assets/browser-agent-rpc-BXhoSh1z-DjrWw-na.js # extension/ui/assets/index-BEfrZ0QX.js # extension/ui/assets/index-DECmX_2_.js # extension/ui/assets/index-DY8jaI-m.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
The forms timeline could only be filtered by origin, and it showed the last 100 events without saying so. On a busy form the event you wanted was hard to find, and older events disappeared from the list with no hint that more existed.
This adds to the Timeline view of the Forms inspector:
Escapeclears it.typeenum of theform-historyagent tool.The Timeline section of
apps/docs/src/content/inspectors/forms.mddescribes the filters and the limit note.How it was verified
pnpm commit:check: 1 commit message OKpnpm format:check: all files passpnpm typecheck: passes (exit 0); no diagnostics informs-timeline.tspnpm test:panel: 30 files, 171 tests passed. The 7 new tests informs-timeline.test.tscover labels, type options, path substring matching andEscape, path, type and origin combined, the cut note with and without filters, Clear filters resetting all three and focusing the input, and the no-events state.pnpm docs:buildpassespnpm extension:build:extension/uirebuilt and committedpnpm test:axecould not launch its pinned Chromium, so the samescripts/panel-axe.mjsran against the installed Chromium. All 29 panel views pass, Forms included, in dark and light./examples/forms, 24 real events), Forms Timeline in dark and light, at 1280px and 360px. Axe ran on the list, with the type select open, with no matches, and after Clear filters: 0 violations, and no horizontal overflow at either width. Focus returns to the path input after Clear filters.Notes for reviewers
form-historymatches a path exactly or anything under it (pathorpath.). Type and origin work the same way in both.app-limit-noteabove the timeline still reports events the page dropped because oflimits.formTimeline.forms-timeline.tschanged in the panel.forms-inspector.tsis untouched, and the new tests live in their own file.Summary by CodeRabbit