Audit query: Action filter as searchable group-tree picker with group-level selection (low priority, #433 follow-up) #442
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Nikola, 2026-09-07, on seeing the #433 dropdown live on bao: the registry-fed list is correct but at 52 verbs it is one huge scrollable dropdown. Wanted: a nicer presentation, and the ability to select a whole group ("all trash-related") instead of only single verbs.
Options considered (mockup:
audit-action-picker-mockup.html, approved-pending):Wire change: the query endpoint gains a comma-separated
actions=OR-filter beside the existing singleaction=(kept for compatibility);audit.Filtermatches any of the list. The client expands a group tick into its member verbs, so the server stays group-agnostic and the #433 registry remains the only vocabulary source — the scanner tripwire keeps covering everything unchanged.Build sketch (after greenlight): backend TDD red for the multi-action filter; frontend replaces the
<select>with the picker fed by the sameinfo.verbspayload (fillAuditVerbs becomes the tree renderer); i18n reuses the 9audGrp*labels plus ~4 new keys (type-to-filter placeholder, selected-count, Clear, Any action reused); CHANGELOG; release.Priority: low per Nikola — park until called.
Shipped in v0.6.136 (PR #443, merged; dogfoods live,
build_info v0.6.136). Built per the approved audit-action-picker mockup.Decision record:
audit.Filter.Actions— OR-set matched beside the untouched singleActionfield; query endpoint accepts comma-separatedactions=, oldaction=kept for compatibility. Pinned by test: OR-set returns exactly its members' events, single-action stays exact-match, empty set means unconstrained.The picker is live on both dogfoods — bao's audit query now opens at nine group rows, and ticking Trash gives you exactly the "all trash-related" view.