UI Audit & Consistency Plan
Status: planned. Based on a visual and code audit of crates/app/src/ across light, dark, and narrow captures (main,
description, changes, checks, tabs, settings, palette, keys, pick, mark, leader, composer, and
tour).
Goal #
Improve Red Pen's day-to-day polish and make its surfaces follow one coherent system:
- Fix concrete visual and interaction defects spotted in rendered frames.
- Enforce consistent component roles, scaling (
rems), feedback channels, tooltips, accessibility, and copy across every screen and dialog. - Reduce redundant chrome and friction in the highest-traffic workflows (Queue, Description, Changes, Checks, and Settings).
All changes follow the domain lexicon in CONTEXT.md and the GPUI Kit Design Guides.
System Rules to Standardize #
Before touching individual views, align on five invariants:
- One
.primary()commit per decision area. Reserve.primary()for the default commit (usually invoked by Return or ⌘Return). Active toggles and filters use.selected(true).toggled(true). Navigation and peer actions use default or.outline(). Irreversible destructive commits use.danger(). - Relative scale everywhere. Dialog widths, max-heights, input heights, and layout offsets use
rems(...)(notpx(...)), leavingpxonly for 1px hairlines, raster assets, and window bounds. - One feedback channel per kind of message.
- Transient command outcomes & async errors →
typecase::Toast. - Failed pane loads (Conversation, Checks, Diff) →
Alert::error. - Form validation → inline message directly beside the field (or disabled commit button).
- Persistent background queue state (refreshing, hidden counts, specialists running) → sidebar/bottom
Footer.
- Transient command outcomes & async errors →
- Native desktop pointer & tooltip conventions. Arrow cursor for buttons, rows, chips, and toggles; pointing hand
only for external links. All toolbar/icon shortcuts use
Kbdbadges inside tooltips, never parenthetical text. - Consistent lexicon & casing. Follow
CONTEXT.mdstrictly; Title Case for menus and short button labels, sentence case for Settings labels, descriptions, and help prose.
Phase 1: Visual Defects & Broken Interactions #
Small, self-contained fixes with immediate visible payoff.
-
Fix Review/Note composer verdict wrapping and add explicit actions
- Where:
crates/app/src/changes.rs(composer, around lines 3177–3245) - Problem: Placing the long status sentence,
flex_1(), and the three verdict pills in oneh_flex().flex_wrap()causesRequest Changesto wrap onto a second line on the far left by itself. Regular notes also have no Cancel or Save button, and Reviews have no Cancel button. - Fix: Put the verdict/ink choices in a non-splitting
h_flex().flex_none()(or dedicated row below the target heading). Add aCancelbutton (ghost().small()) to all composer modes and aSave Note(primary().small()) button for non-review notes so mouse users aren't relying on prose instructions.
- Where:
-
Fix Tour gutter badge collision and
Askbutton behavior- Where:
crates/app/src/changes.rs(render_gutter_marker~4878–4891,stop_content~3548–3561) - Problem: The
size_4()numbered circle(1)collides with the+diff marker on added lines. Inside the tour stop card, theAskbutton sits right below an already-visible"Ask about this stop…"textarea, yet clicking it only focuses the textarea instead of sending. - Fix: Size/inset the tour gutter badge so it sits cleanly within the gutter without overlapping
+/-. WireAskto submit the question (disabled when empty) or place a compact send button beside the textarea.
- Where:
-
Soften
mark_chipvisual weight- Where:
crates/app/src/view.rs(mark_chip, ~4058–4064) - Problem:
Tag::custom(theme.foreground, theme.foreground, theme.foreground).outline()draws a high-contrast ring that outshouts PR titles and labels, especially in dark mode. - Fix: Use
Tag::secondary().outline()(matchingTopicsat ~3600) or border withtheme.borderand muted/normal foreground text.
- Where:
-
Match Settings note preview to real notes & fix inline tour elevation
- Where:
crates/app/src/settings.rs(~2282–2295),crates/app/src/changes.rs(pinned_stop, ~3579–3592) - Problem: Settings › Reviewing › Note Text renders a vertical
border_l_2()stripe, even though real notes on a diff render a horizontal wavy/straight rule above the note. Meanwhilepinned_stopputsshadow_lg()andbg(theme.popover)on an inline in-flow diff annotation. - Fix: Render the Settings preview with the same
rule(...)helper used on the diff (so toggling Wavy vs Straight updates the live preview too). Removeshadow_lg()frompinned_stopand use a recessed/bordered inline surface (group_box+border_1()) when pinned, reservingpopover+shadow_lg()for floating cards.
- Where:
-
Fix
Get beta versionsdisabled state and stale leader hint- Where:
crates/app/src/settings.rs(~1952–1968),crates/app/src/view.rs(~2944) - Fix: Disable
Get beta versionswhen!sparkle, matching the surrounding update controls. Update"(, s l)"to"(Space s l)".
- Where:
Phase 2: Relative Scaling (rems), Cursors, & Accessibility #
Make every dialog and control survive text zoom (125%–150%) and follow native pointer/a11y rules.
-
Replace hardcoded
px(...)in dialogs, inputs, and layout offsets withrems(...)crates/app/src/about.rs:w(px(340.)),w(px(420.)),max_h(px(420.))→rems(...)(keeppx(96.)for the raster logo).crates/app/src/searches.rs:w(px(360.)),w(px(480.)),max_h(px(320.)),Input::h(px(32.))→rems(...).crates/app/src/palette.rs:w(px(560.))→rems(...).crates/app/src/picks.rs,crates/app/src/marks.rs:Input::h(px(32.))→h(rems(2.))(or shared helper).crates/app/src/settings.rs: host inputw(px(170.))(~1195) →w(rems(11.)).crates/app/src/changes.rs:rule(...).ml(px(-16.))(~3306) →.ml(rems(-1.))to stay locked topl_4().crates/app/src/view.rs: DatePrompt.pt(px(72.))(~4753) →.pt(rems(4.5)).
-
Remove
.cursor_pointer()from non-link controls- Where:
crates/app/src/changes.rs(~3131, 3153, 4630, 4677, 4770, 4904),crates/app/src/conflicts.rs(~1347). - Keep
.cursor_pointer()strictly on external URL links (view.rspreview-link~3477 andcheck-link~3344), and give those links a subtle external-link icon or rest underline so they read clearly as links.
- Where:
-
Add accessible names and proper controls for icon-only actions
- Convert
viewed-box(changes.rs~4674) from a clickabledivinto a properButton::ghost().xsmall()(orCheckbox) with.aria_label(...). - Add
.aria_label(...)to all icon-only buttons (close-tab,copy-branch,copy-path,split,whitespace,conflict-prev,conflict-next,close-changes) and interactive gutter dots/chips.
- Convert
Phase 3: Component, Dialog, Tooltip, & Feedback Consistency #
Bring Changes, Conflicts, Description, Settings, and Dialogs onto one shared vocabulary.
-
Enforce single-
.primary()discipline and toggled stateschanges.rs(~883): ChangeOn the Diff (N hidden)from.primary()to.selected(hidden > 0).toggled(hidden > 0).changes.rs(~1296): GiveTour.selected(self.tour_shown()).toggled(self.tour_shown()), matchingAgent.changes.rs(~4544): Demote the headingReview…button to.outline()(or.selected(true)) while the review composer is open soPost Reviewis the sole.primary()commit.view.rs(~3511): DemoteReview Changesin Description from.primary()to default/outline (see Phase 4).conflicts.rs(~1171, 1491, 1545, 1599, 1824, 1881): Ensure at most one.primary()is visible at a time (e.g., when a special-conflict banner or inline editor is active, keep the secondary CTA.outline(), and styleConfirm Delete/Delete Filewith.danger()).settings.rs(~1199): Change AccountsAddfrom.primary()to.outline(), matchingFollow,Exclude, andShow Only These.
-
Standardize dialog anatomy, validation, and confirmations
- Extract a small dialog form helper (or shared convention) so
picks.rs,marks.rs,searches.rs,pull_actions.rs,validate.rs, andconflicts.rsall include:- Visible field labels (
text_xs().font_medium().text_color(muted)above inputs). - Double-Enter submit guard (add to
searches.rs, matchingpicks.rs/marks.rs/pull_actions.rs). - Disabled commit button or inline validation error when required input is empty instead of silent no-ops.
- Visible field labels (
- Decide whether destructive confirmations (
pull_actions.rsmerge,conflicts.rsabort & push, and optionally note deletion / account removal) should use themed in-appopen_dialogalerts or nativewindow.promptsheets—and use one consistently across the app. - Add either confirmation or undo for irreversible
Deleteon notes (changes.rs~3941) andRemoveon accounts (settings.rs~1162).
- Extract a small dialog form helper (or shared convention) so
-
Unify tooltips and shortcut formatting
- Move
Hinted(or a simplertooltip_with_key(label, command)helper) to a shared module soconflicts.rs(Previous Conflict ([)→Tooltip::new("Previous Conflict").key_binding(...)),changes.rsfile controls, andview.rsbuttons all render shortcuts uniformly asKbdbadges. - Standardize shortcut prose to one notation everywhere (
⇧S,⌘↩,⇧↩,⌥I,⎋viashortcuts::symbols/shortcuts::key_forrather than hand-written"Shift-S"or"⌘Return").
- Move
-
Unify feedback & error channels
- Use
typecase::Toastfor transient actions currently written intoMainView::said/ChangesView::said(copied link/branch/command, review posted, snoozed, dismissed, errors from posting/diff actions). - Use
Alert::errorforShowing::Failedinchanges.rs(~4586), matchingconversationandchecks_pane. - Keep
Footerfocused on persistent queue/background status (refreshing, last refreshed, hidden/excluded counts, specialists running).
- Use
Phase 4: Layout, Information Architecture, & Workflow Polish #
Higher-impact UX upgrades that simplify dense screens and improve discoverability.
-
Auto-select the first pull request on load
- Where:
crates/app/src/view.rs - When the queue populates and
self.selectedisNone(and not showing examples/tour setup that explicitly clears it), select row 0 withengaged = falseso the middle column opens ready to read without falsely marking it seen.
- Where:
-
Move global diff toggles out of per-file headers
- Where:
crates/app/src/changes.rs(file_controls~4407–4500,heading~4504–4562) - Remove
split(Show Side by Side) andwhitespace(Hide Whitespace Changes) from every per-file header. - Add them once in the Changes toolbar (as icon toggles or inside an expanded
View/On the Diffdropdown alongsideWhole Files), leaving per-file headers strictly file-scoped (Viewed,Copy Path).
- Where:
-
Streamline Changes header chrome & align middle-column spines
- Where:
crates/app/src/view.rs(tab_strip~1895,switcher~3191,preview_pane~3459,checks_pane~3359),crates/app/src/changes.rs(heading~4504,tour_offer~1308) - Align the leading edge of
tab_strip,switcher,preview_pane,checks_pane, andChangesViewheading to one shared spine (px_4). - Reduce vertical stacking in Changes: avoid repeating the PR title when already in the title bar/tab, or fold the
tour offer into a compact inline pill/badge on the
Tourbutton so the diff starts higher up.
- Where:
-
Consolidate Description actions & enrich metadata
- Where:
crates/app/src/view.rs(preview_pane~3467–3608,status_badges~3954–4033) - Move
Resolve Conflicts…out ofstatus_badgesonto the main action row at.small()size so there is only one action bar. - Re-evaluate redundant navigation (
Review Changesdirectly under theChangestab;Open in Browserdirectly under the clickablerepo#numlink). - Render status icons next to
Checksand chips forMarkedinside the metadata block so it matches the queue's visual language. - Make
"1 from bots hidden · b shows them"(view.rs~3069) a clickable ghost toggle button.
- Where:
-
Polish Changed Files & Conflict Files sidebars
- Where:
crates/app/src/changes.rs(~4609–4805),crates/app/src/conflicts.rs(~1286–1437) - Match the inset rounded row styling (
px_2container +rounded_mdrows) used in the Queue and main Sidebar. - Keep the
Viewedindicator in a consistent trailing lane.
- Where:
-
Upgrade Checks pane, Mark dialog, FilterBar, Keys dialog, and Command Palette
- Checks (
view.rs~3277–3387): Format commit SHA in monospace; separate check name and state cleanly (e.g., muted status badge instead oftest success); bringDetailscloser or style with an external-link icon. - Mark dialog (
marks.rs~63–88): Turn"On it"and"In use"into clickable toggle chips above/below the input. - FilterBar (
view.rs~377): Shorten placeholder to"Filter pull requests…"so it never truncates at default queue width. - Keys dialog (
about.rs~51–107): Attach.vertical_scrollbar(...), render shortcuts withKbdbadges (matching Welcome), add a quick search input, and give unlisted commands (likewindow.fullscreen) real display labels instead of raw IDs. - Command Palette (
palette.rs~86–145): PutPull Request/View/Filecommands beforeRed Penapp-menu boilerplate (Hide Others,Show All,About Red Pen), and replace"run"placeholder with"Type a command, or # for pull requests…".
- Checks (
Phase 5: Copy, Lexicon, & Upstream Typecase Follow-ups #
In Red Pen (crates/app/src/ and locales/app.toml) #
- Unify verdict wording: pick either
Request ChangesorAsk for Changesand use it acrossmenus.rs,leader.rs,pull_actions.rs, andchanges.rs. - Unify
Ask the AgentvsAsk Agent(menus.rs,view.rs,conflicts.rs). - Standardize capitalization of domain nouns (
Forge,Account,Local Changes) perCONTEXT.md. - Replace
Confirm Delete(conflicts.rs~1601) withDelete File. - Unify
Install the redpen Command(menus.rs) /Install redpen Command(settings.rs). - Tone down note headers (
changes.rs~3749, 4001, 4108): drop.to_uppercase()where bold + ink color already carry emphasis. - Keep
locales/app.tomlkeys in sync with any updated English strings.
Upstream in typecase (tracked separately) #
SettingsFrame: give the active sidebar section a clear selected surface fill; make disclosure chevrons consistent across sections regardless of group count; replaceSearch...(three dots) withSearch…(single ellipsis).SavedSearches: align heading casing (Saved Searches) with Red Pen's sidebar places (Review Queue,Your Pulls).Settingswindow chrome: evaluate aligning Settings' title bar / recessed sidebar treatment withtypecase::shellso Settings feels part of the same family as the main window.
Verification #
After each phase:
just check(formatting, clippy with and without--features screenshot, and all workspace tests).- Capture and inspect
just shotframes in both light and dark appearances for every touched screen:- Main window (initial launch, selected PR description, PR with conflicts, kept tabs, narrow width
REDPEN_WIDTH=860) - Changes view (normal diff, review composer, note composer, tour offer, active tour stop, floating vs pinned cards)
- Checks view
- Dialogs (
cmd-k,cmd-/,cmd-shift-o,m m,cmd-shift-s,pull.comment) - Settings window across sections
- Main window (initial launch, selected PR description, PR with conflicts, kept tabs, narrow width
- Spot-check dialogs and Changes at
text_scale = 1.25viaREDPEN_SETTINGSto verifyremsscaling and zero clipping.
Phin Tech docs
Red Pen in the store →