Skip to content

Inbox: Recent activity is a view with a Done bar, not a saved filter - #4081

Merged
backnotprop merged 4 commits into
mainfrom
feat/inbox-recent-flash-view
Nov 26, 2026
Merged

backnotprop merged 4 commits into
mainfrom
feat/inbox-recent-flash-view

Conversation

@backnotprop

Copy link
Copy Markdown
Owner

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

  • The filter menu's "Recent activity" row stays under "Not seen", with its cursor icon but no count and no tick. Picking it closes the menu and turns the view on.
  • While the view is on, a slim bar sits directly above the list. It shows the icon, "Recent activity", then quieter "· threads you acted in, newest first", and Done on the right. The sub-line is left out where the list is narrow (beside an open thread, on a phone). On a phone, Done is 44 px tall.
  • The list is one flat list, newest first by when the person last acted. Each row shows the time of that act and there are no group headings, as before.
  • The view is not a filter:
    • The funnel shows no badge and no "Filter · 1 active" because of it.
    • The other menu rows keep their counts.
    • The folded Snoozed band keeps the filter's rows and its own count.
  • Real filters still apply under the view and keep their own badge. The view shows the recent threads that the filters keep.
  • The view is kept nowhere: not in the plannotator-inbox-list-filter cookie and not on the server. A recent: true that 0.29 saved in the cookie is ignored on load.
  • The view ends on any of these:
    • Done.
    • Escape. This is one more step in App's existing "close one layer at a time" Escape order, after an open thread closes. No new shortcut is registered.
    • A reload.
    • Leaving the list for another project, agent, tag or machine in the sidebar, or for another page.
  • Opening and closing threads keeps the view.
  • When nothing was acted in, the list says "Nothing you acted in during the last month." If the real filters alone leave nothing, the filter's own "No threads match" shows instead.

Code

  • packages/inbox/listRecentView.ts: the view's state, kept in page memory only, keyed to the list it was turned on in. Also recentViewSections.
  • packages/inbox/listFilter.ts: recent is gone from ListFilter. It no longer appears in the badge, the counts, the match rules or the cookie.
  • packages/inbox/components/RecentViewBar.tsx and packages/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 holds listPlaceOf, the empty-state choice, and leaveRecentViewOnEscape.
  • packages/inbox/App.tsx and packages/inbox/components/InboxList.tsx: line edits only. Neither file grew past its size ceiling.

Tests

  • New: packages/inbox/listRecentView.test.tsx (DOM). It renders the list through the real useListShown.
  • Updated: listFilter.test.ts, listFilterRecent.test.ts, listRecentHolds.test.tsx, listFilterButton.test.tsx and listRowMemo.test.tsx.
  • Updated for CI: tests/e2e/inbox-recent-activity-filter.spec.ts. It was not run locally.

No words that agents read have changed.

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.
@backnotprop backnotprop added the ci:e2e Run the full browser suite (Inbox window e2e) on this PR label Nov 26, 2026
…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.
@backnotprop
backnotprop marked this pull request as ready for review November 26, 2026 14:12
@backnotprop
backnotprop merged commit d888410 into main Nov 26, 2026
65 of 66 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:e2e Run the full browser suite (Inbox window e2e) on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant