Skip to content

Recent searches under the All Messages search field - #3111

Open
ramonsmits wants to merge 2 commits into
ramon/audit-query-barfrom
ramon/audit-search-history
Open

Recent searches under the All Messages search field#3111
ramonsmits wants to merge 2 commits into
ramon/audit-query-barfrom
ramon/audit-search-history

Conversation

@ramonsmits

Copy link
Copy Markdown
Member

Stacked on:

Per-browser history of audit searches with one-click rerun.

  • Any query that used search text or an endpoint is remembered in this browser (most recent first, capped at 10, no duplicates), together with the time-range expressions it ran with. The range is part of a search's identity, and rerunning restores it, so an entry is a true "run this exact query again"
  • Review feedback applied: instead of a separate "History" dropdown, the recent searches float under the search field while it has focus, the way a browser address bar does. Typing narrows the list to entries whose search text or endpoint match; Escape dismisses it; a click in the field brings it back. An empty history shows nothing

Comment thread src/Frontend/src/components/audit/SearchHistory.vue
@ramonsmits
ramonsmits force-pushed the ramon/audit-search-history branch 2 times, most recently from 6610205 to 643c441 Compare September 9, 2026 06:38
@ramonsmits
ramonsmits force-pushed the ramon/audit-search-history branch 4 times, most recently from 8eddaa3 to 8f35c81 Compare September 9, 2026 07:43
@ramonsmits
ramonsmits force-pushed the ramon/audit-search-history branch 3 times, most recently from 7adf204 to d76d13f Compare September 9, 2026 10:19
@ramonsmits
ramonsmits force-pushed the ramon/audit-search-history branch from 93d232d to c1ccb9b Compare September 9, 2026 12:20
Any query that used search text or an endpoint is remembered in this
browser (most recent first, capped, no duplicates) together with the
time-range expressions it ran with: the range is part of a search's
identity, entries show it worded like the picker ("now-1h", "start to
end"), and rerunning restores it so an entry is a true "run this exact
query again".

The history floats under the search field while it has focus, the way
a browser's address bar does; typing narrows the list to entries whose
search text or endpoint match, Escape dismisses it and a click in the
field brings it back. It is not a Popover API popover: light dismiss
would close it on a click in the very field it belongs to.
…ch is submitted

The panel stayed open while results were on screen, and its entries
were ordinary buttons after the field, so Tab walked into the history
instead of leaving it.

It now behaves like an address bar's suggestions: the entries are out
of the tab order, Arrow Up/Down move a highlight, Enter reruns the
highlighted entry, Escape and Tab close, and so does focus leaving the
field and the panel. Submitting a search closes it as well, whether by
Enter or by the debounced text reaching the store; typing again brings
it back, filtered by the new text. The field announces itself as a
combobox controlling the list, with the highlighted entry as its
active descendant.
@mauroservienti
mauroservienti force-pushed the ramon/audit-search-history branch from c1ccb9b to 1f0f533 Compare September 9, 2026 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Improvement Improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants