Skip to content

feat(tui): center status bar and align empty states - #260

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/centered-status-bar
Aug 5, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/centered-status-bar

Conversation

@mohitranka

Copy link
Copy Markdown
Contributor

Summary

  • Top bar now renders a single centered block: Forge / <repo>/<branch>/ <status>
  • Long content wraps; narrow terminals still show the status label
  • Editor and Diff empty states (No file open… / No changes…) now share identical top padding so switching views has zero visual jump
  • Updated affected status-bar and chrome tests

Validation

  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets --locked -- -D warnings
  • cargo test --package forge-tui --lib --locked (743 passed)

Design notes

Follows the clarified requirements from the grill-me session.

- Render single centered block: Forge / <repo>/<branch>/ <status>
- Wrap on overflow, keep status visible on narrow terminals
- Give Editor and Diff empty states identical top padding
- Update affected status-bar and chrome tests

Closes design request for top-bar centralization.
@github-actions
github-actions Bot enabled auto-merge (squash) August 5, 2026 11:47
@github-actions
github-actions Bot merged commit ca18ff5 into main Aug 5, 2026
7 checks passed
github-actions Bot pushed a commit that referenced this pull request Aug 5, 2026
…pt (#262)

Replace the docked approval card with a transcript-native flow: the pending
tool call renders as a full-payload inline item (redacted command, cwd, env
delta, resolution hint), and operators answer it by typing in the composer.

- Add ChatItem::ApprovalPending with command/cwd/env render arm
- Parse typed verbs in the composer: yes|approve|y, remember, always|allow,
  no|deny|n, and no <note> (greedy tail feeds the agent as tool feedback)
- Unrecognized lines keep the operator's text in the input box for editing
- remember persists a session-scoped exact-invocation allow (Direct tools
  only); always persists the suggested allow pattern to the permissions file
- Delete ApprovalCardWidget, approval card key handling, mouse hit regions,
  dock-height shrink, and overlay key gating (ApprovalOverlayState retained
  for identity matching and auto-allow logic)
- Show approval verb hint in the contextual hint while waiting

Closes #260
mohitranka added a commit that referenced this pull request Aug 21, 2026
- Render single centered block: Forge / <repo>/<branch>/ <status>
- Wrap on overflow, keep status visible on narrow terminals
- Give Editor and Diff empty states identical top padding
- Update affected status-bar and chrome tests

Closes design request for top-bar centralization.
mohitranka added a commit that referenced this pull request Aug 21, 2026
…pt (#262)

Replace the docked approval card with a transcript-native flow: the pending
tool call renders as a full-payload inline item (redacted command, cwd, env
delta, resolution hint), and operators answer it by typing in the composer.

- Add ChatItem::ApprovalPending with command/cwd/env render arm
- Parse typed verbs in the composer: yes|approve|y, remember, always|allow,
  no|deny|n, and no <note> (greedy tail feeds the agent as tool feedback)
- Unrecognized lines keep the operator's text in the input box for editing
- remember persists a session-scoped exact-invocation allow (Direct tools
  only); always persists the suggested allow pattern to the permissions file
- Delete ApprovalCardWidget, approval card key handling, mouse hit regions,
  dock-height shrink, and overlay key gating (ApprovalOverlayState retained
  for identity matching and auto-allow logic)
- Show approval verb hint in the contextual hint while waiting

Closes #260
mohitranka added a commit that referenced this pull request Sep 11, 2026
- Render single centered block: Forge / <repo>/<branch>/ <status>
- Wrap on overflow, keep status visible on narrow terminals
- Give Editor and Diff empty states identical top padding
- Update affected status-bar and chrome tests

Closes design request for top-bar centralization.
mohitranka added a commit that referenced this pull request Sep 11, 2026
…pt (#262)

Replace the docked approval card with a transcript-native flow: the pending
tool call renders as a full-payload inline item (redacted command, cwd, env
delta, resolution hint), and operators answer it by typing in the composer.

- Add ChatItem::ApprovalPending with command/cwd/env render arm
- Parse typed verbs in the composer: yes|approve|y, remember, always|allow,
  no|deny|n, and no <note> (greedy tail feeds the agent as tool feedback)
- Unrecognized lines keep the operator's text in the input box for editing
- remember persists a session-scoped exact-invocation allow (Direct tools
  only); always persists the suggested allow pattern to the permissions file
- Delete ApprovalCardWidget, approval card key handling, mouse hit regions,
  dock-height shrink, and overlay key gating (ApprovalOverlayState retained
  for identity matching and auto-allow logic)
- Show approval verb hint in the contextual hint while waiting

Closes #260
mohitranka added a commit that referenced this pull request Sep 11, 2026
- Render single centered block: Forge / <repo>/<branch>/ <status>
- Wrap on overflow, keep status visible on narrow terminals
- Give Editor and Diff empty states identical top padding
- Update affected status-bar and chrome tests

Closes design request for top-bar centralization.
mohitranka added a commit that referenced this pull request Sep 11, 2026
…pt (#262)

Replace the docked approval card with a transcript-native flow: the pending
tool call renders as a full-payload inline item (redacted command, cwd, env
delta, resolution hint), and operators answer it by typing in the composer.

- Add ChatItem::ApprovalPending with command/cwd/env render arm
- Parse typed verbs in the composer: yes|approve|y, remember, always|allow,
  no|deny|n, and no <note> (greedy tail feeds the agent as tool feedback)
- Unrecognized lines keep the operator's text in the input box for editing
- remember persists a session-scoped exact-invocation allow (Direct tools
  only); always persists the suggested allow pattern to the permissions file
- Delete ApprovalCardWidget, approval card key handling, mouse hit regions,
  dock-height shrink, and overlay key gating (ApprovalOverlayState retained
  for identity matching and auto-allow logic)
- Show approval verb hint in the contextual hint while waiting

Closes #260
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