feat: sidebar v2 is now the default sidebar #5672
Mergedt3dotgg(GitHub profile, opens in a new tab)merged 2 commits into
main fromrefs/pull/5672/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XXL
- @@ -1830,4 +2523,18 @@2523+ );2524+ const titleRegenerationThreads = selectedThreads.filter(2525+ (thread) =>2526+ serverConfigs.get(thread.environmentId)?.environment.capabilities2527+ .threadTitleRegeneration === true,2528+ );2529+ const regeneratableTitleThreads = titleRegenerationThreads.filter(2530+ (thread) => thread.titleRegeneration == null,2531+ );2532+ const titleRegenerationMenuItem = buildBulkTitleRegenerationContextMenuItem({2533+ supportedCount: titleRegenerationThreads.length,2534+ actionableCount: regeneratableTitleThreads.length,2535+ });2536+ const snoozePresets = resolveSnoozePresets(new Date(), timestampFormat);2537+ const clicked = await settlePromise(() =>2538+ api.contextMenu.show(18302539 [1831- `Delete ${count} thread${count === 1 ? "" : "s"}?`,1832- "This permanently clears conversation history for these threads.",1833- ].join("\n"),2540+ { id: "settle", label: `Settle (${count})` },apps/web/src/components/Sidebar.tsx lines 797 to 797Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -664,0 +777,21 @@777+ // unmounts without firing onOpenChange(false). Deriving the flag keeps a778+ // stale true from permanently hiding the status label / pinning the779+ // hover actions, and the effect clears the raw state so the popover780+ // doesn't resurrect if the button later remounts.781+ const snoozeMenuOpen = snoozeMenuOpenRaw && showSnoozeButton;782+ useEffect(() => {783+ if (!showSnoozeButton) setSnoozeMenuOpen(false);784+ }, [showSnoozeButton]);785+ const handlePrClick = useCallback(786+ (event: ReactMouseEvent<HTMLElement>) => {787+ if (pr?.url) openPrLink(event, pr.url);788+ },789+ [openPrLink, pr],790+ );791+792+ // All sidebar rows share one surface model. Live threads used to look793+ // like elevated cards while settled threads were plain rows, leaving neither794+ // a useful hierarchy nor a reliable hover cue. Status now lives in the row795+ // content; surface is reserved for interaction (hover, multi-select, route).796+ const rowSurfaceClassName = cn(797+ "group/sidebar-row relative w-full cursor-pointer overflow-hidden rounded-md text-left outline-none select-none",
- apps/web/src/components/settings/SettingsPanels.tsx line 613Resolvedby t3dotgg(GitHub profile, opens in a new tab)@@ -603,3 +610,4 @@603610 glassOpacity: DEFAULT_UNIFIED_SETTINGS.glassOpacity,604611 sidebarThreadPreviewCount: DEFAULT_UNIFIED_SETTINGS.sidebarThreadPreviewCount,605612 sidebarProjectGroupingMode: DEFAULT_UNIFIED_SETTINGS.sidebarProjectGroupingMode,613+ sidebarAutoSettleAfterDays: DEFAULT_UNIFIED_SETTINGS.sidebarAutoSettleAfterDays,
t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.


Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
fd8c5451-121b-486d-9a1f-d605394f5d93You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share