Skip to content

Sidebar: dismiss "Action needed" connection prompts#165

Merged
ryw merged 1 commit into
mainfrom
sidebar-dismiss-action-needed
Jun 16, 2026
Merged

Sidebar: dismiss "Action needed" connection prompts#165
ryw merged 1 commit into
mainfrom
sidebar-dismiss-action-needed

Conversation

@ryw

@ryw ryw commented Jun 16, 2026

Copy link
Copy Markdown
Member

Ask: let me dismiss an "Action needed" connection prompt in the sidebar if I don't want to do that connection — a smaller text link next to "Connect".

Adds a small "Dismiss" text link next to each Connect/Set button in the sidebar's "Action needed" list. Dismissing hides that prompt, persisted per-user in localStorage (keyed by the connection's source:toolkit:name, matching the existing sidebar-nav / docs-nav persistence). A genuinely new missing connection still surfaces (different key).

Extracts the missing-connection cards from the server-rendered app-shell into a small client MissingConnectionCards component; the LLM-key and failing-agent alerts are unchanged.

tsc + eslint clean, 101 tests pass, full next build green.

🤖 Generated with Claude Code

A member who doesn't intend to wire up a given connection had no way to quiet
its sidebar nag. Add a small "Dismiss" text link next to each Connect/Set
button; dismissing hides that prompt, persisted per-user in localStorage (keyed
by the connection's source:toolkit:name, matching the sidebar-nav/docs-nav
persistence pattern). A genuinely new missing connection still surfaces.

Extracts the missing-connection cards from the server-rendered app-shell into a
client MissingConnectionCards component; the LLM-key and failing-agent alerts
stay as-is.

tsc + eslint clean, 101 tests pass, full build green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
}

if (!ready) return null;
const visible = items.filter((it) => !dismissed.has(it.key));

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.

When visible becomes empty after dismissing the last missing-connection card, the parent app-shell still renders the Action needed wrapper because it only checks missingConnections.length. That leaves a blank section/header in the sidebar when these were the only alerts. Consider moving the section/header visibility into this client component, or otherwise hiding the parent wrapper once there are no visible cards.

@ryw ryw merged commit b2b5ad5 into main Jun 16, 2026
9 of 10 checks passed
@ryw ryw deleted the sidebar-dismiss-action-needed branch June 16, 2026 18:48
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