Skip to content

Dashboard: keep unconnected organizations on the dashboard with a truthful preview - #176

Merged
GoddeyUwamari merged 1 commit into
mainfrom
feat/dashboard-soft-entry
Oct 5, 2026
Merged

GoddeyUwamari merged 1 commit into
mainfrom
feat/dashboard-soft-entry

Conversation

@GoddeyUwamari

Copy link
Copy Markdown
Owner

Removes the dashboard's hard redirect to /connect-aws. Connection state is now explicit (connected / unconnected / unknown / loading); a failed accounts request is 'unknown', never 'not connected'. Unconnected organizations see a capability preview with no metrics, one Connect AWS action for owners (non-owners are told to ask their owner), and a short how-connecting-works strip. The AI summary only runs for connected organizations, avoiding model calls for orgs with no data. Frontend only.

…thful preview

An organization with no AWS account was redirected from /dashboard to
/connect-aws by a client-side effect, so it could never see the dashboard,
and a non-owner, who cannot connect AWS, landed on a page they could not
use. The redirect is gone.

The connection is now one of four states (computeAwsConnectionState):
connected, unconnected, unknown, loading. The accounts request checks
res.ok and the response shape and retries once, so a failed request is
"unknown" ("Couldn't check your AWS connection. Refresh to try again."),
never "not connected". The legacy stats fallback still means connected,
as before, and the connected dashboard is unchanged.

Unconnected shows what the main cards will show and how connecting works,
in words only: no figure, score, bar or chart. Only an owner gets the
"Connect AWS" button and the hero pill as a link; anyone else is told to
ask their owner and sees "AWS not connected" as plain text.

The AI summary is requested only when connected: the backend calls the
model even when every source is unavailable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
devcontrol Ready Ready Preview Oct 5, 2026 11:23pm UTC

@GoddeyUwamari
GoddeyUwamari merged commit 7b44493 into main Oct 5, 2026
6 checks passed

This branch was successfully deployed

1 active deployment
Preview — b1be42db Deployed Oct 5, 2026 by vercel[bot]
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