Repository navigation
fix(platform): show conversation status-tab count badges, drop dead ?priority= param - #2226
Merged
Merged
Conversation
…priority= param Render the per-status approximate counts (already prefetched on the conversations route) as a trailing badge on each status tab, and remove the unused ?priority= search param from the conversations status route since no UI sets or clears it. Closes #1982
Contributor
Author
Desk review — #1982 (status-tab count badges + dead
|
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.
Summary
Two small conversations-inbox refinements from #1982:
ConversationsNavigationnow subscribes to those same counts and renders each as a trailing badge on its status tab (open / closed / spam / archived), shown only when the count is > 0 and capped as20+(matching the backendDEFAULT_COUNT_CAP). Because the badge query shares the subscription primed by the route loader's prefetch, the badges paint without a refetch on first nav.?priority=route param removed. The conversations status route accepted a?priority=search param, but no UI ever set or cleared it. Removed it from the route's search schema and its plumbing intouseListConversationsPaginated. (The backend query still supports priority filtering via the hook should a UI control be added later.)Testing
tsc --noEmit— cleanoxlint --type-awareon changed files — 0 warnings / 0 errorsapp/features/conversations— 7 files / 32 tests pass (includes the navigation a11y/axe test, updated to stub the new count query)Closes #1982