Skip to content

Move the import hint below the activity graph and scale the wordmark - #1103

Merged
arul28 merged 1 commit into
mainfrom
ade/activity-panel-layout
Aug 17, 2026
Merged

Move the import hint below the activity graph and scale the wordmark#1103
arul28 merged 1 commit into
mainfrom
ade/activity-panel-layout

Conversation

@arul28

@arul28 arul28 commented Aug 17, 2026

Copy link
Copy Markdown
Owner

Two fixes to the Work draft (new-chat) column. Both live in the shared renderer, so they land on the desktop app and the hosted web client at once.

Import hint overlapped the launch shelf

The "Import your chats from outside ADE" pill rendered between the composer and the launch shelf, where it took the shelf's row and overlapped it. It is now the last row of the column, below the activity graph — a hint sitting under everything it can act on, rather than a band cutting the stack in two.

Moving it also un-breaks an existing CSS rule: [data-chat-composer-wrapper]:has(+ .ade-chat-launch-shelf) suppresses the composer's drop shadow so it doesn't paint over the shelf, and the badge sitting between them made that adjacent-sibling selector fail whenever the hint was visible.

Wordmark cropped instead of scaling

The logo was sized h-auto max-h-full, which left the image at its natural height once its box shrank, so a height-constrained window cropped the wordmark against the enclosing overflow-hidden wrapper. h-full w-full object-contain fills the aspect-ratio box and letterboxes inside it, so the shrink is proportional.

The logo is 1012x493 against a 560/300 box, so it is width-constrained at rest — rendering is pixel-identical when there is room, and the change only bites on the shrink path.

Zero-node when retired

ImportFloatingBadge carries shrink-0 on its own root rather than a wrapper in the caller. It returns null once dismissed or when there is no project, and the column is a gap-3 flex stack, so a wrapper would have spent 12px on a hint that is no longer there. Both null branches are now pinned by tests.

Verification

  • importSessions suite: 40 passed
  • Renderer shard 3/8: 87 files, 1369 passed
  • Docs validator: 232 files passed
  • Windows parity: N/A by inspection — Tailwind classes, JSX order, and prose only; no path, process, IPC, or native surface

Not visually verified: Playwright browsers are not installed on the dev machine and Safari was wedged under memory pressure. The CSS reasoning was independently checked against the real image and box dimensions.

Summary by CodeRabbit

  • Bug Fixes
    • Improved the empty chat layout so the ADE logo scales proportionally, including in shorter windows.
    • Prevented the import-session badge from being compressed in constrained layouts.
    • Import-session information now appears at the bottom of the empty chat view for improved layout consistency.
    • Dismissing the badge now fully removes it from view.
    • Projects without an eligible import location no longer display unnecessary badge rows, hints, or dismissal controls.

The 'Import your chats from outside ADE' pill sat between the composer and
the launch shelf, where it took the shelf's row and overlapped it. It is now
the last row of the draft column, below the activity graph.

The wordmark was sized h-auto + max-h-full, which left the image at its
natural height once the box shrank, so a short window cropped it against the
enclosing overflow-hidden wrapper instead of scaling it. h-full + object-contain
fills the aspect-ratio box and letterboxes inside it.

ImportFloatingBadge carries shrink-0 on its own root rather than a wrapper in
the caller, so a retired hint renders zero nodes and spends none of the
column's gap.
@vercel

vercel Bot commented Aug 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
ade Ignored Ignored Aug 17, 2026 3:57am

@arul28 arul28 changed the title Activity Panel Layout -> main Move the import hint below the activity graph and scale the wordmark Aug 17, 2026
@arul28

arul28 commented Aug 17, 2026

Copy link
Copy Markdown
Owner Author

@cursor review

@cursor

cursor Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Skipping Bugbot: Bugbot is disabled for this repository. Visit the Bugbot dashboard to update your settings.

@coderabbitai

coderabbitai Bot commented Aug 17, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 5035d6f8-dda2-43ed-8820-030b5ab14b71

📥 Commits

Reviewing files that changed from the base of the PR and between 6942eae and e9e7835.

⛔ Files ignored due to path filters (2)
  • docs/features/chat/composer-and-ui.md is excluded by !docs/**
  • docs/features/terminals-and-sessions/external-session-import.md is excluded by !docs/**
📒 Files selected for processing (3)
  • apps/desktop/src/renderer/components/chat/AgentChatPane.tsx
  • apps/desktop/src/renderer/components/terminals/importSessions/ImportFloatingBadge.test.tsx
  • apps/desktop/src/renderer/components/terminals/importSessions/ImportFloatingBadge.tsx

Included review availability: Your plan includes up to 1 review per rolling hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The empty chat state now scales the ADE logo proportionally and places the import-session badge at the bottom of the empty-state column. The badge cannot shrink in the flex layout. Tests cover dismissal and projects without an opted-in root.

Changes

Empty-state layout

Layer / File(s) Summary
Import badge layout and rendering
apps/desktop/src/renderer/components/terminals/importSessions/ImportFloatingBadge.tsx, apps/desktop/src/renderer/components/terminals/importSessions/ImportFloatingBadge.test.tsx
The badge uses shrink-0. Tests verify that dismissal removes all DOM nodes and that no badge layout renders without a project root.
Empty-state logo and badge placement
apps/desktop/src/renderer/components/chat/AgentChatPane.tsx
The logo uses proportional containment within its container. The import-session badge moves below the work activity module.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to e9e78

The PR makes localized layout and documentation updates, with no actionable merge-blocking risk remaining.

Possibly related PRs

  • arul28/ADE#906: Both changes update empty-state logo sizing and flex layout in AgentChatPane.tsx.
  • arul28/ADE#1092: Both changes modify import-session badge behavior and placement.

Suggested labels: desktop, docs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the two main changes: moving the import hint and scaling the wordmark.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ade/activity-panel-layout

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

Comment @coderabbitai help to get the list of available commands.

@arul28
arul28 merged commit fd8be78 into main Aug 17, 2026
36 checks passed
@arul28
arul28 deleted the ade/activity-panel-layout branch August 17, 2026 04:11
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