Skip to content

Reorganize the desktop sidebar around labeled entries and a quieter timeline - #8390

Open
gabrielvaz wants to merge 4 commits into
fastrepl:mainfrom
gabrielvaz:pr/f1-sidebar-reorg
Open

gabrielvaz wants to merge 4 commits into
fastrepl:mainfrom
gabrielvaz:pr/f1-sidebar-reorg

Conversation

@gabrielvaz

@gabrielvaz gabrielvaz commented Dec 1, 2026 •

Copy link
Copy Markdown

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:

  • Sidebar entries (commit 1): Home, Start recording (Stop recording while one runs), New note (with its ⌘N hint) and Chat sit above the timeline. Settings moves to the bottom-left, above a thin divider, and opens the same page as ⌘,. The header's icon-only new-note button is replaced by the labeled entry. New strings "Home" and "Stop recording" are added to the English catalog.
  • Timeline selection and spacing (commit 2):
    • The selected note shows its title in semibold instead of a filled row; hover keeps the light accent.
    • A recording note no longer gets a red fill; its level meter and stop control turn red instead.
    • Date headings become a 14px bold muted label aligned to the bottom of the heading row, with 14px of space above each new day. The sticky heading is pushed out when the next day's label (not its top gap) reaches it.
  • Rename from the timeline (commit 3): right-click → Rename turns the row's title into an inline field. Enter or leaving the field saves, Escape cancels. The open note is renamed through its header (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.
  • Home wordmark (commit 4): the empty home screen shows the Anarlog wordmark above the New Note / Start Recording actions. It is apps/web/public/logo.svg with fill="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 --tests for apps/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 --lib and cargo test --locked --test a11y in apps/desktop-gpui on an Apple Silicon Mac with Xcode: all passed (lib: 983 passed, 2 ignored; a11y: 23 passed). dprint check on the changed files passed.
  • New test renaming_a_note_by_id_applies_over_a_newer_stored_row covers 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.
  • Gaps: not checked visually in a running app here; the inline rename field, the stop-recording entry during a live recording, and dark mode need a look before review. The other locales fall back to English for "Home", "Stop recording" and "Note title" until they are translated.

🤖 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

  • Home, Start/Stop recording, New note (with its ⌘N hint), and Chat now sit above the timeline as labeled rows; the header's icon-only new-note button is gone.
  • Settings moved to the bottom-left, behind a thin divider, and opens the same page as the ⌘, shortcut.
  • The empty home screen shows the Anarlog wordmark above the actions, using the web logo with currentColor so it follows the theme.
  • "Home", "Stop recording", and "Note title" are added to the English catalog; other locales fall back to English until translated.

Timeline and renaming

  • Selected and recording notes no longer get filled rows: selection is a semibold title, and a recording keeps its red level meter and stop control.
  • Date headings are smaller muted bold labels with space above each new day; the sticky heading is pushed out when the next day's label arrives.
  • Right-click → Rename turns a row's title into an inline field; Enter or blur saves, Escape cancels.
  • The open note renames through its header so drafts, conflicts, and share republishing behave as they do there; other notes rename against the stored row and retry once if a concurrent write moved it.
  • The red "now" line is left as-is; Render timeline now indicator overlay above adjacent headings and items #8292 reworked it into an overlay with a hover badge.
  • Not yet visually checked: the inline rename field, the stop-recording entry during a live recording, and dark mode.

Written for commit 00fc1a8. Summary will update on new commits.

View guided diff

gabrielvaz and others added 4 commits November 30, 2026 21:04
… 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>
@coderabbitai

coderabbitai Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: QUIET
  • Plan: Advanced
  • Run ID: 395064dd-2cb8-4e0a-bf96-328ba7b1a231
Commits

Reviewing files that changed from the base of the PR and between 3e61b2c and 00fc1a8.

Files ignored due to path filters: 1

  • apps/desktop-gpui/src/workspace/icons/AnarlogLogo.svg is excluded by !**/*.svg
Files selected for processing: 10

  • apps/desktop-gpui/locales/en/messages.po
  • apps/desktop-gpui/src/workspace/assets.rs
  • apps/desktop-gpui/src/workspace/layout.rs
  • apps/desktop-gpui/src/workspace/library.rs
  • apps/desktop-gpui/src/workspace/notes.rs
  • apps/desktop-gpui/src/workspace/open_note.rs
  • apps/desktop-gpui/src/workspace/persistence_tests.rs
  • apps/desktop-gpui/src/workspace/shell.rs
  • apps/desktop-gpui/src/workspace/sidebar.rs
  • apps/desktop-gpui/tests/a11y/scenarios.rs

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

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Devin Review found 4 potential issues.

1 security issue not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)

Devin Review

Comment on lines +512 to +519
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()));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔴 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.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Comment on lines +512 to +520
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()));
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 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.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Comment on lines +1258 to +1269
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();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔍 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.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Comment on lines +319 to +338
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))),
)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔍 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.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

This branch has not been deployed

No deployments
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