Repository navigation
Inbox: Recent activity is a view with a Done bar, not a saved filter - #4081
Merged
Merged
Conversation
The filter menu's "Recent activity" row (still under Not seen) now turns on a view of the list instead of a filter pick: no count, no tick, the menu closes. While on, a slim bar above the list says "Recent activity · threads you acted in, newest first" with Done. It is not a filter: no badge, no "N active", the other rows' counts and the Snoozed band's count never follow it, and it is kept nowhere (an older cookie's recent: true is ignored). Real filter picks keep applying under it. It ends on Done, on Escape as one more rung of the window's existing ladder after an open thread closes, on reload, or on leaving the list.
…s repeats Escape from a row now keeps focus on that thread's row where the groups draw it, else the funnel, instead of dropping it to the page. The rung yields to any open layer (the Customize sidebar panel, any dialog, menu, listbox or popover, a popup open from the focused control) and to a held key's repeats. The bar's words are said once per turn of the view, and Done's name says what it leaves.
Search keeps its <dialog> mounted closed after the first open, so the check that a layer is open now asks whether it shows: not inside a closed <dialog>, not hidden, inert or display:none. Floating reply and Ask AI windows are long-lived and not modal: they keep Escape only with focus in them.
…field The always-mounted live region sat between the list's header and the Title field, so the field was no longer directly under the header.
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.
The owner asked for Recent activity to be "just a new sort view… with an easy way to exit out of it… I wouldn't want it to be a permanent filter". They picked design A, a slim bar above the list with Done. The menu row stays under "Not seen".
What a person sees
plannotator-inbox-list-filtercookie and not on the server. Arecent: truethat 0.29 saved in the cookie is ignored on load.Code
packages/inbox/listRecentView.ts: the view's state, kept in page memory only, keyed to the list it was turned on in. AlsorecentViewSections.packages/inbox/listFilter.ts:recentis gone fromListFilter. It no longer appears in the badge, the counts, the match rules or the cookie.packages/inbox/components/RecentViewBar.tsxandpackages/inbox/recentView.css: the bar. A live region announces it to screen readers.packages/inbox/app/useListView.ts: wires the view into the list. Also holdslistPlaceOf, the empty-state choice, andleaveRecentViewOnEscape.packages/inbox/App.tsxandpackages/inbox/components/InboxList.tsx: line edits only. Neither file grew past its size ceiling.Tests
packages/inbox/listRecentView.test.tsx(DOM). It renders the list through the realuseListShown.listFilter.test.ts,listFilterRecent.test.ts,listRecentHolds.test.tsx,listFilterButton.test.tsxandlistRowMemo.test.tsx.tests/e2e/inbox-recent-activity-filter.spec.ts. It was not run locally.No words that agents read have changed.