Skip to content

Web UI

uh review, uh explore and uh queue open the same browser UI. This page explains the UI and its controls. To choose what to review, see Reviewing changes, Exploring a codebase and Review queue.

Control Flow lens in the Reader, dark theme, split diff

Layout

The top bar has these parts, from left to right:

  • ← Home (queue only), the rail toggle, and the repository name with its base ← head refs.
  • The lens switch: Control Flow, Structure, Files. Each tab shows its item count.
  • The workspace mode switch: Overview, Reader, Graph, Classic.
  • Jump… (the command palette), Filters, Comments (n), the progress badge (looked/total in the current lens), Next →, Looks good, Settings, a link to the uh repository, and the light/dark toggle.

Below the top bar, the focus rail on the left lists the current lens's items. The main area shows the selected item.

uh explore has no diff. It hides the progress badge, Next, Looks good, Comments, Overview and Classic. It shows every symbol, not only changed ones.

Lenses

A lens sets what the rail lists. Switch with 1, 2, 3 or the tabs.

Lens Rail contents
Control Flow Changed functions and methods, arranged as a call tree.
Structure Changed types, arranged by how they reference each other.
Files Changed files as a folder tree, with each file's symbols nested under it.

Structure lens

Files lens

Workspace modes

Mode What it shows
Overview The PR or diff summary and description. This is the first screen for GitHub PR and commit reviews.
Reader The code of the selected rail item. This is the default.
Graph An interactive graph of the current lens, with a side drawer for the selected node.
Classic A flat diff in file order, like a forge's "Files changed" tab, with inline peeks.

G toggles Reader and Graph. Graph uses Control Flow or Structure. Opening Graph from Files switches to Control Flow.

How changed code is ordered

The Control Flow and Structure rails list changed code in run order, not file order:

  • Roots are changed symbols that no other changed (non-test) symbol calls. They sort by topological layer, so entrypoints come first. Ties sort by file path, then line.
  • Callees nest under their caller. Siblings follow call-site order in the caller.
  • A symbol with several callers expands once. Later occurrences are leaf rows. A symbol on several paths shows a done/total count of paths marked looked.
  • A cycle does not expand again inside its own branch.

Rows that do not fit the main tree go into collapsible sections below it:

Section Contents Default
Removed Removed symbols no remaining symbol calls. Removed symbols with a caller nest under it. Open
Tests Test code, with its own call trees. Hidden when the Filters scope is Test, because tests then form the main tree. Closed
Moved Moved symbols with unchanged bodies. Not counted as changes; no looked checkbox. Closed

Rail glyphs

Glyph Meaning
+ Added
− Removed
~ Modified
⇄ Moved
↳ Unchanged symbol on a path between changed ones (bridge hop)
↺ Recursive group (SCC)
ref badge Reached through a function reference: callback, function value or vtable entry

Rows reached through a possible (uncertain) edge use a different style. See Edges.

Reader

The Reader shows the selected symbol's diff. The code header has these controls:

Control Effect
Unified / Split Diff layout.
AST Diff Toggles the scoped structural diff. See Scoped AST diff.
Inlays Toggles inlay diffs. See Inlay diffs.
Wrap / Scroll Wraps long lines or scrolls them sideways.
Symbol / Changes only / Full file Context around a symbol. In the Files lens: Full file / Changes only.
File Graph (n) Files lens only. Call and type graph inside the file.
↑ n/m ↓ Steps through diff hunks ([ and ]).
Mark looked Marks the item reviewed (Shift+L or L). Then reads ✓ Looked.
← Back Returns to the spot before the last jump (Alt+Left).

Two optional bars turn on in Settings:

  • The caller / callee breadcrumb bar lists up to 6 callers and 8 callees as chips. No callers shows root.
  • The Internals summary bar counts the symbol's calls by status: removed (−), added (+), preserved (•) and unresolved (?). Press I to expand it. Click an entry to scroll to its line. Cmd/Ctrl-click to jump to its target.

Light theme, unified diff

Reviewing progress

  • Mark looked (L) marks the selected symbol or file.
  • Next → (N) jumps to the next unlooked item in the lens.
  • Looks good marks every item in the lens looked. Click again to clear the marks.
  • Filters → Hide viewed hides looked items from the rail.

Looked marks and draft comments save to browser local storage, per review.

Move detection

A moved symbol shows a move tag in its row, Reader header and peeks, such as moved from src/old.rs:L10–24 → L40–54 or moved L10–24 → L40–54. A modified symbol that also moved shows both the modified tag and the move tag.

The diff opens with a provenance banner. Base shows the old path and lines. Head shows the new ones. A summary pill reads:

  • ↓ +n lines or ↑ -n lines for a move within the file, or Moved file for a move to another file.
  • Unchanged body or Moved + edited.

In Split layout, Base is on the left and Head on the right.

Moved symbol provenance

Scoped AST diff

AST Diff replaces line highlighting with token-level highlighting inside the symbol's range. Added, removed and replaced tokens are marked, so reformatting is not a change. Each symbol is diffed alone, using its base and head ranges.

  • The button shows only for single-symbol diffs, not full-file views.
  • If the structural diff cannot run, the header shows a Line fallback badge and the line diff stays.
  • The served UI fetches token diffs from the local server. A --dump-html page embeds them, so the toggle works offline.
  • To start with AST Diff on, pass --ast-diff (flags). Your last choice is saved in the config file.

The supported languages are listed in Languages.

Scoped AST diff

Inlay diffs

An inlay is a small pill on an unchanged line whose dependency changed:

  • : followed by −old and +new means the type at that spot changed.
  • → followed by −old and +new means the call on that line now resolves to a different target.

Click +new to jump to the new target. Inlays toggles these in Reader and Classic. They are on by default. Turning them off saves to the config file. See --inlay-diffs.

Inline peeks

Calls and type references are links. Clicking one opens an inline peek card under that line, showing the target's code. You stay in the current symbol.

  • A reference with several targets shows a popover (n targets — click to peek). Uncertain targets are marked · possible.
  • Peeks nest: a link inside a peek opens another peek under it. Closing a peek closes the peeks inside it.
  • The peek header has a collapse chevron, Mark looked (marks this nested path), Follow → (opens the target in the Reader) and ✕. Tall peeks repeat the collapse and looked controls at the bottom.
  • Cmd/Ctrl-click a link to jump to the target instead of peeking.
  • Filters → Expand peeks inline sets whether a peek shows full height or scrolls in a fixed height.
  • Links also reach unchanged code anywhere in the repository. The served UI loads those peeks on open. A --dump-html page embeds them.

Inline peek and draft comment

Draft comments

Hover a diff line and click + to open a comment box. Write the comment and click Save comment. The draft appears under the line, labelled with its line and symbol. In Split layout, left comments go on the base line and right comments on the head line.

Comments (n) in the top bar opens Draft Review Comments, where you can:

  • See each draft with its file:Lline, symbol and quoted code line. Delete with ×.
  • Click Copy as Markdown to copy all drafts. Each becomes a ### file:Lline (symbol) heading, a quote of the code line and the comment text. An _Anchored to commit …_ line comes first when the head commit is known.

Post to GitHub

For GitHub PR reviews, the Comments dialog also has a Post Review to GitHub box:

  1. Choose an Event: COMMENT, APPROVE or REQUEST_CHANGES.
  2. Optionally, write a review summary.
  3. Tick Confirm posting n inline comment(s) to owner/repo #number.
  4. Click Post to GitHub.

uh posts all drafts as one review through gh api repos/<owner>/<repo>/pulls/<n>/reviews, using the selected gh account. The review pins to the head commit you reviewed (commit_id). If the PR moved since the review started, the dialog shows PR moved since review started. Posting needs the local server. Drafts stay in place afterwards. For GitHub authentication, see Reviewing changes.

Graph mode

Graph draws the current lens (Control Flow or Structure) left to right, with callers left of callees. Selecting a node highlights its caller and callee chain and dims the rest. It also opens a side drawer with the node's diff, status tags, Wrap and Open in Reader (Enter, or double-click the node).

Graph canvas with drawer

Control Effect
+ / − Zoom in and out. Wheel and trackpad also zoom. Drag to pan.
Fit Fits the whole graph in view.
Zoom to selection Zooms to the selected symbol and its callers and callees.
100% Zoom level. Click to reset to 100%.
Collapse bridges Collapses or expands chains of unchanged symbols (review only).
Showing n of m · Show all / All m · Focus For large graphs, switches between the selection's neighbourhood and the full graph.

Nodes with no calls to or from other shown nodes group under UNCONNECTED (n). A node's left stripe shows its status: green for added, red for removed (dashed outline, struck-through name), amber for modified, and the moved colour for moved. A ✓ marks looked nodes.

With a node selected, Left and Right step to the nearest caller or callee. Esc clears the selection.

Explore graph canvas

Edges

Edge style Meaning
Solid grey Exists in both base and head
Solid green Added call or reference
Dashed red Removed call or reference
Dashed orange Possible edge: uncertain resolution, such as trait, interface or virtual dispatch. Hover for the reason.
Dashed pill n unchanged ▸ Bridge: unchanged symbols between two changed ones, collapsed into one pill

Possible edges. When the tool cannot tell which function or type a reference resolves to, it marks the edge possible instead of dropping it. It shows as dashed orange in the graph, dotted orange underlines in code, and · possible in target popovers. Filters → Certain edges only hides them. The closed list of reasons is in Languages.

Bridges. A changed symbol can reach another through unchanged code. The rail and graph show that path as a bridge pill ([n unchanged ▸] in the rail). Click the pill to expand the hops (↳ glyph); click again to collapse. The Collapse bridges button on the canvas and the Filters checkbox set the default for every bridge. The breadcrumb bar shows the path as via n unchanged.

Recursive groups (SCCs). Functions or types in a call or reference cycle merge into one node marked ↺. Its label lists up to three members joined by ⇄.

Classic mode

Classic shows every changed file in file order, one card per file, like a forge's diff view. Each call and type reference still links to an inline peek.

  • The toolbar shows the file count, total +/− lines and n/m viewed, plus Filter files…, Unified / Split, Inlays, Expand all and Collapse all.
  • Each file card has a collapse toggle, a diffstat, a rename note (if renamed) and a Viewed checkbox.

Open Classic with the Classic button, ?view=classic in the review URL, or --classic (flags). ?view=reader and ?view=graph work the same way. Classic is not in uh explore.

Filters

Section Options
Scope Both, Impl, Test
Display Certain edges only, Hide viewed (review), Collapse bridges (review), Expand peeks inline
Languages One checkbox per language, with counts. Shown only for multi-language changes.

The button shows the active filter count, e.g. Filters (2) ▾. Reset all filters clears them.

Command palette

Jump… or Cmd+K / Ctrl+K opens Quick Jump. Type part of a function, type or file name or path. Results are tagged fn, type or file; up to 40 show. In a review, it searches changed symbols and files. Use Up / Down to move, Enter to open, Esc to close.

Command palette

Settings

The gear opens Settings, or Settings & Accounts when gh accounts are signed in.

Setting Values
Appearance Light, Dark
Jumping to a symbol scrolls it to Center, Top
Auto-hide top bar on scroll On by default. Hover the top edge to bring the bar back.
Dedent nested symbol indentation On by default
Show caller / callee breadcrumb bar Off by default
Show Internals summary bar Off by default
CLI Accounts Each signed-in gh login with its host. Set Default makes it the default account.

The dialog also lists the keyboard shortcuts. When served locally, these settings save to the global config file and apply to every review. See Configuration.

Settings modal

Theme

On first use, the theme follows the OS light or dark setting. The top-bar toggle (☾ / ☀) and Appearance switch it. The choice saves as the theme config key.

Keyboard shortcuts

Single-key shortcuts do not work in text fields.

Key Action
Cmd+K / Ctrl+K Open or close Quick Jump
J / Down Next rail item
K / Up Previous rail item
1 / 2 / 3 Control Flow / Structure / Files lens
G Switch between Reader and Graph
N Next unreviewed item (review only)
L or Shift+L Mark the selected symbol or file looked (review only)
] / [ Reader with diff hunks: next / previous hunk
[ Anywhere else: show or hide the focus rail
I Expand or collapse Internals (in the Reader, or in the Graph drawer)
Left / Right Graph with a selected node: step to the nearest caller / callee
Enter Graph with a selected node: open it in the Reader
Alt+Left Go back to the previous location
Esc Close the popover, Quick Jump, Filters or Settings, or clear the graph selection