Skip to content

fix(cloud-tests): scroll connection-settings account tabs when they overflow - #3058

Merged
tofikwest merged 1 commit into
mainfrom
tofik/cloud-tests-connection-settings-overflow
Jun 8, 2026
Merged

tofikwest merged 1 commit into
mainfrom
tofik/cloud-tests-connection-settings-overflow

Conversation

@tofikwest

@tofikwest tofikwest commented Jun 8, 2026 •

Copy link
Copy Markdown
Contributor

Problem

In the Cloud Tests Connection Settings modal, each connected account is a tab. With more than ~3 accounts the tab strip grows wider than the dialog and gets clipped (the modal is overflow-hidden), so the extra accounts are unreachable — a customer with 6 AWS accounts could only see/select the first few.

Cause

The account strip uses the design-system <TabsList>, which is inline-flex w-fit. It already carries overflow-x-auto, but that never kicks in: w-fit sizes it to its content, so it overflows its parent (the dialog) instead of scrolling within itself. And TabsList doesn't accept className, so it can't be constrained directly.

Fix

Wrap <TabsList> in a width-constrained scroll container (<div className="w-full overflow-x-auto">) so the strip scrolls horizontally and every account stays reachable. Purely presentational — no DS internals or imports changed.

 <Tabs value={activeProvider} onValueChange={setActiveProvider}>
-  <TabsList variant="default">
-    {connectedProviders.map((p) => (...))}
-  </TabsList>
+  <div className="w-full overflow-x-auto">
+    <TabsList variant="default">
+      {connectedProviders.map((p) => (...))}
+    </TabsList>
+  </div>
 </Tabs>

Verification

  • CloudSettingsModal.tsx typechecks clean (the only app-typecheck failures are pre-existing/unrelated: a better-auth nested-node_modules artifact + two unrelated test files).
  • DS migration audit: change adds no @trycompai/ui / lucide-react imports. (The file's pre-existing @trycompai/ui/dialog import is left as-is — out of scope for this fix.)
  • Behavior: with many accounts the tab strip now scrolls horizontally; all accounts selectable. Single/few-account layout unchanged.

🤖 Generated with Claude Code


Summary by cubic

Make the Connection Settings account tabs scroll horizontally when they overflow, so all connected accounts remain selectable in the Cloud Tests modal. Fixes clipped tabs when there are many accounts.

  • Bug Fixes
    • Wrap the tab list in a div with w-full overflow-x-auto to constrain width and enable horizontal scrolling, avoiding clipping from the dialog’s overflow-hidden. Presentational change only; behavior for few accounts is unchanged.

Written for commit 75f8360. Summary will update on new commits.

Review in cubic

…verflow

The Connection Settings modal renders one tab per connected account via the
design-system TabsList, which is `inline-flex w-fit`. With more than ~3 accounts
the strip grows wider than the dialog and gets clipped by DialogContent's
`overflow-hidden`, leaving the extra accounts unreachable (a customer with 6 AWS
accounts could only see/select the first few).

TabsList already has `overflow-x-auto` but it never triggers because `w-fit`
sizes it to its content, so it overflows its parent instead of scrolling within
itself — and TabsList doesn't accept `className`. Wrap it in a width-constrained
`overflow-x-auto` container so the strip scrolls horizontally and every account
stays reachable. Pure presentational change; no DS internals or imports touched.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 8, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
app Building Building Preview, Comment Jun 8, 2026 9:01pm
comp-framework-editor Ready Ready Preview, Comment Jun 8, 2026 9:01pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
portal Skipped Skipped Jun 8, 2026 9:01pm

Request Review

@tofikwest
tofikwest merged commit bb4f8a0 into main Jun 8, 2026
10 of 11 checks passed
@tofikwest
tofikwest deleted the tofik/cloud-tests-connection-settings-overflow branch June 8, 2026 21:02

@cubic-dev-ai cubic-dev-ai 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.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@claudfuen

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 3.73.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

This branch was successfully deployed

2 active and 1 inactive deployments
Preview – app — 75f83600 Deployed Jun 8, 2026 by vercel[bot]
Preview – comp-framework-editor — 75f83600 Deployed Jun 8, 2026 by vercel[bot]
Preview – portal — 75f83600 Deployed Jun 8, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants