Repository navigation
Reorganize the desktop sidebar around labeled entries and a quieter timeline - #8390
gabrielvaz wants to merge 4 commits into
Conversation
… the sidebar The sidebar gets a short list of labeled entries above the timeline: Home, Start recording (Stop recording while one runs), New note with its shortcut, and Chat. Settings moves to the bottom-left. The header's icon-only new note button is replaced by the labeled entry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e groups The selected note shows its title in semibold instead of a filled row, and a recording note keeps the plain row with its red level meter and stop control instead of a red fill. Date headings use a smaller muted bold label with space above each new day, and the sticky heading is pushed out when the next label arrives. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Right-clicking a note now offers Rename, which turns the row's title into an inline field: Enter or leaving the field saves, Escape cancels. The open note renames through its header so drafts, conflicts and share republishing behave as they do there; any other note is renamed against its stored row, retrying once if a concurrent write moved it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The home view above the New Note / Start Recording actions now shows the Anarlog wordmark, taken from the web logo with its fill set to currentColor so it follows the light and dark theme. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 59 minutes. View limit details
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. |
There was a problem hiding this comment.
Devin Review found 4 potential issues.
1 security issue not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)
| let title = renaming.input.read(cx).buffer.text.trim().to_owned(); | ||
| let unchanged = self | ||
| .page | ||
| .items | ||
| .iter() | ||
| .any(|item| item.id == renaming.id && *item.title == *title); | ||
| if !title.is_empty() && !unchanged { | ||
| cx.emit(OpenNote::Rename(renaming.id, title.into())); |
There was a problem hiding this comment.
🔴 Untouched rename overwrites newer title
When the timeline refreshes with a newer title, commit_rename treats the untouched field as an edit. Leaving the field writes the old title back.
Learn more
start_rename fills the field with the current title but does not retain that initial value. Title changes refresh the timeline through TitleUpdated and the library watch. An already pending summary save can also rename the open note through apply_saved_summary_headings. When the refreshed row differs from the input, the close handler emits a rename even though the user never changed the field. rename_note then saves the stale title.
Example: Open Rename while the title is “Standup”, then leave the field untouched. If a pending summary save changes the title to “Release standup” and the timeline refreshes, clicking away saves “Standup” again instead of preserving the newer title.
Recommended fix: Store the starting title in Renaming and compare the submitted value with that title before checking it against the current page. Compare both starting and submitted values with the same normalization so opening and closing the field without editing it never causes a write.
Was this helpful? React with 👍 or 👎 to provide feedback.
| let title = renaming.input.read(cx).buffer.text.trim().to_owned(); | ||
| let unchanged = self | ||
| .page | ||
| .items | ||
| .iter() | ||
| .any(|item| item.id == renaming.id && *item.title == *title); | ||
| if !title.is_empty() && !unchanged { | ||
| cx.emit(OpenNote::Rename(renaming.id, title.into())); | ||
| } |
There was a problem hiding this comment.
🟡 Timeline rename silently rejects blank titles
When a user clears a title and presses Enter, commit_rename closes the field without saving. The note header accepts blank titles.
Learn more
The timeline already renders an empty title as Untitled. The note header passes an empty title to rename_session, which stores it. The inline field closes before checking whether the title is blank, and the rename-by-ID helper rejects blanks independently.
Example: Select Rename on “Standup”, remove all text, and press Enter. The field closes and still shows “Standup”; clearing the same note’s title from its header shows “Untitled” in the timeline.
Recommended fix: Match the header’s behavior by accepting empty titles in both the inline submit handler and the rename-by-ID helper. Test clearing a title and checking the stored value and the Untitled fallback.
Was this helpful? React with 👍 or 👎 to provide feedback.
| runtime | ||
| .rename_session(desktop_runtime::RenameSession { | ||
| base: open.summary, | ||
| title: "Renamed elsewhere".into(), | ||
| }) | ||
| .unwrap() | ||
| .receive() | ||
| .await | ||
| .unwrap(); | ||
| let renamed = notes::rename(&runtime, id.clone(), " Roadmap review ".into()) | ||
| .await | ||
| .unwrap(); |
There was a problem hiding this comment.
🔍 Conflict retry lacks regression coverage
The test finishes the competing write before rename reads the note. It never exercises the retry after a write lands between the read and save.
Was this helpful? React with 👍 or 👎 to provide feedback.
| let record = if self.recording.is_empty() { | ||
| nav_item( | ||
| "sidebar-record", | ||
| "editor/Mic01Icon.svg", | ||
| crate::i18n::t_resolved("Start recording", cx), | ||
| false, | ||
| colors, | ||
| ) | ||
| .on_click(cx.listener(|this, _, _, cx| this.create(true, cx))) | ||
| } else { | ||
| nav_item( | ||
| "sidebar-record", | ||
| "meeting/SquareIcon.svg", | ||
| crate::i18n::t_resolved("Stop recording", cx), | ||
| false, | ||
| colors, | ||
| ) | ||
| .on_click( | ||
| cx.listener(|_, _, _, cx| cx.emit(WorkspaceEvent::Meeting(MeetingIntent::Stop))), | ||
| ) |
There was a problem hiding this comment.
🔍 Stop stays enabled during finalization
sidebar_nav offers Stop while recording_changes still tracks a finalizing recording. The sidebar test covers only the idle button, not what happens after Stop.
Was this helpful? React with 👍 or 👎 to provide feedback.
Summary
Context: The GPUI sidebar starts with a row of small icon buttons (hide sidebar, search, new note, sort) and goes straight into the timeline. Recording, chat and settings are reached through other surfaces or shortcuts. In the timeline, the selected note and a recording note are shown with a filled row (accent and red), and date headings are large foreground labels packed tight against the previous day's notes.
Intention: Make the main actions visible as labeled entries, and let the timeline read as a calm list where the open note stands out without a block of color.
Direction: Each commit is one visual change, so any of them can be taken or dropped on its own:
NoteView::rename_to), so drafts, conflict handling and share republishing behave as they do there. Any other note is renamed against its stored row and retries once if a concurrent write (for example a live recording) moved it; a shared note schedules the same auto-publish the header does.apps/web/public/logo.svgwithfill="currentColor"so it follows the theme.Not included: hiding the red "now" line. #8292 just reworked that indicator into an overlay with a hover badge, so removing it is left out of this PR.
Demo
Screenshots to be attached by the author before review.
Verification
cargo check --locked --testsforapps/desktop-gpui(local, with the Soniqo native build skipped because this machine has no full Xcode).cargo fmt --check,cargo clippy --locked --all-targets --no-deps -- -D warnings,cargo test --locked --libandcargo test --locked --test a11yinapps/desktop-gpuion an Apple Silicon Mac with Xcode: all passed (lib: 983 passed, 2 ignored; a11y: 23 passed).dprint checkon the changed files passed.renaming_a_note_by_id_applies_over_a_newer_stored_rowcovers the timeline rename of a note that is not open. The existing a11y sidebar scenario now also checks that Home, Start recording, Chat and Settings are named, clickable buttons.🤖 Generated with Claude Code
Summary by cubic
Reorganizes the GPUI sidebar so the main actions are visible as labeled entries and the timeline reads as a calm list where the open note stands out without a block of color. The changes are split into separate commits, so any of them can be taken or dropped on its own.
Sidebar and home
currentColorso it follows the theme.Timeline and renaming
Written for commit 00fc1a8. Summary will update on new commits.