Skip to content

Remove note preview hover cards#5646

Open
ComputelessComputer wants to merge 6 commits into
mainfrom
fix/remove-session-preview
Open

Remove note preview hover cards#5646
ComputelessComputer wants to merge 6 commits into
mainfrom
fix/remove-session-preview

Conversation

@ComputelessComputer

@ComputelessComputer ComputelessComputer commented Jun 21, 2026

Copy link
Copy Markdown
Collaborator

Remove the sidebar session preview wrapper and delete its unused component and test.


This is part 2 of 2 in a stack made with GitButler:


Note

Medium Risk
Touches Tauri window lifecycle, STT stop controls in secondary windows, and changes primary sidebar open gestures; preview removal is low risk but window + live-session paths need manual QA.

Overview
Adds standalone note windows for sessions and removes sidebar hover preview cards for timeline rows.

Sessions can open in a dedicated Tauri window via windowShow({ type: "note", value: sessionId }), backed by a new /app/note/$sessionId route that renders TabContentNote in StandaloneWindowShell. The windows plugin gains an AppWindow::Note variant (label note-{id}, default size ~720×820).

Sidebar timeline: session rows no longer use SessionPreviewCard (component and tests deleted). Double-click or context Open in New Window opens the standalone window; Open in New Tab is removed for sessions. Single-click still opens the note in the main app after a short delay.

InteractiveButton gains optional onDoubleClick with a 350ms single-click deferral and cleanup on unmount so double-clicks do not fire the single-click handler.

OuterHeader accepts standaloneWindow to show the stop-listening control and adjusted title insets without the collapsed-sidebar gutter.

Reviewed by Cursor Bugbot for commit bd91c15. Bugbot is set up for automated code reviews on this repo. Configure here.

@ComputelessComputer ComputelessComputer force-pushed the fix/sidebar-note-window branch 2 times, most recently from 7314dc7 to f989422 Compare June 21, 2026 15:58
@ComputelessComputer ComputelessComputer changed the base branch from fix/sidebar-note-window to main June 22, 2026 01:30
@ComputelessComputer ComputelessComputer force-pushed the fix/remove-session-preview branch from 61ee511 to 772a2d0 Compare June 22, 2026 01:47
@netlify

netlify Bot commented Jun 22, 2026

Copy link
Copy Markdown

Deploy Preview for old-char canceled.

Name Link
🔨 Latest commit bd91c15
🔍 Latest deploy log https://app.netlify.com/projects/old-char/deploys/6a38c3bedc9313000806b525

Comment thread apps/desktop/src/sidebar/timeline/item.tsx Outdated
Comment thread apps/desktop/src/session/components/outer-header/index.tsx
Adds a note-specific native window route and wires sidebar double-click to open the existing note view in that window. Includes regression coverage for the sidebar double-click path.
Remove the sidebar session preview wrapper and delete its unused component and test.
Adds a note-specific native window route and wires sidebar double-click to open the existing note view in that window. Includes regression coverage for the sidebar double-click path.
Remove the sidebar session preview wrapper and delete its unused component and test.
@ComputelessComputer ComputelessComputer force-pushed the fix/remove-session-preview branch from 772a2d0 to e7ab41c Compare June 22, 2026 02:40
Comment thread apps/desktop/src/shared/ui/interactive-button.tsx Outdated
Comment thread apps/desktop/src/session/components/outer-header/index.tsx
Make InteractiveButton cleanup explicit and skip collapsed sidebar gutter in standalone note headers.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit bd91c15. Configure here.

clickTimeoutRef.current = setTimeout(() => {
clickTimeoutRef.current = null;
onClick?.();
}, DOUBLE_CLICK_DELAY_MS);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Slow double-click opens tab

Medium Severity

When onDoubleClick is set, a single-click onClick runs after a fixed 350ms delay. If the second click of a double-click arrives after that delay (common with slower double-click timing or accessibility settings), the delayed openCurrent still runs and then the double-click opens the standalone note window, so both actions occur.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit bd91c15. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant