Repository navigation
fix(sidebar): list every live thread and sink archived ones to the bottom - #36
Merged
Merged
Conversation
…ttom The default thread list capped live threads at six (three for bot-opened ones), and Show all mixed archived threads in by recency. Now every non-archived thread is listed, and archived threads come last.
4 of 5 tasks
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
Sidebar thread list (bot and room):
Why
A bot with 17 threads showed 6 rows plus "Show all 17 threads". Opening it put archived rows (
보관됨) between live ones.Changes
shared/thread-order.ts: new fork-onlyarchivedLast()(stable partition; upstream'sorderedThreadListinwire.tsis untouched, so upstream merges stay clean).SidebarThreadRow.tsx:visibleSidebarThreadsno longer counts rows (open++ < 6,BOT_OPENED_VISIBLE).Sidebar.tsx,SidebarGroupThreadList.tsx: wrap the ordered list inarchivedLast.SidebarThreadRow.test.ts,BotThreads.test.tsupdated for the removed caps; new tests for archived-last.Unchanged on purpose: archived threads stay hidden until "Show all" (the open one is still shown); closed / snoozed threads that need nothing and older routine runs stay folded; burst parts stay on their card.
Before / After
Same fixture (12 live + 2 archived, archived first in the input):
origin/main)z1,z2,t0,t1,…,t11(archived first)t0,t1,…,t11,z1,z2(archived last)Test
npx vitest run src/components/SidebarThreadRow.test.ts src/components/SidebarThreadRow.snooze-expiry.test.ts src/components/BotThreads.test.ts src/components/BulkSelectBar.test.ts→ all pass (before the test edits, 16 tests asserted the old caps and failed on the change; they were rewritten).tsc --noEmitandpnpm lintclean.Note
node scripts/brand-rename.mjs --checkon currentmainlistsserver/bitwarden.tsandserver/routes/logins.ts(added by #34, after the rename). Not touched here.