Skip to content

feat(desktop): show a Reconnect button on an account that needs reconnecting - #10197

Merged
AviPeltz merged 1 commit into
mainfrom
add-reconnect-button-1a3252c0
Nov 24, 2026
Merged

AviPeltz merged 1 commit into
mainfrom
add-reconnect-button-1a3252c0

Conversation

@AviPeltz

@AviPeltz AviPeltz commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • On a plugin page, a connected account that says "Reconnect required" now has a Reconnect button on its row, left of the account menu.
  • The Reconnect item is removed from the account menu, because the button replaces it. The menu keeps Rename account and Disconnect.

Why / Context

The row told the user to reconnect, but the action was hidden in the ... menu. The fix for a broken account should be one visible click.

The button calls the same handler the menu item called: it opens the OAuth sign-in, or the connect dialog for a connector that uses an API key. No new strings; "Reconnect" is already in the catalogs.

Testing

  • biome check on the changed file: clean.
  • Manual, in the dev app over CDP, on a plugin whose account needs reconnecting in the dev database:
    • The row shows "Reconnect required" and the Reconnect button.
    • The account menu lists Rename account and Disconnect only.
    • A healthy account row (another plugin) shows no button.
  • Not done: I did not click Reconnect, because it opens the provider's sign-in in the browser. Light theme and a narrow window were not checked.
  • tsc for desktop was not conclusive in this worktree: it fails on missing generated files (route tree, compiled locale catalogs), with no errors in the changed file. CI typecheck is the check to rely on.

Summary by cubic

On a plugin page, an account that needs reconnecting now shows a Reconnect button on its row, so the fix is one visible click instead of being hidden in the account menu. The menu item is removed since the button replaces it; the menu keeps Rename account and Disconnect. The button calls the same handler the menu item called, and no new strings are added.

Written for commit a7d6097. Summary will update on new commits.

View guided diff Turn on auto-fix

Summary by CodeRabbit

  • Updates
    • Connections that need reauthorization now show an inline Reconnect button. Selecting it starts the available authorization or connection flow.
    • The reconnect action is no longer available from the account dropdown menu.

…necting

On a plugin page, a connected account that needs reconnecting only said
"Reconnect required"; the action was hidden in the row's menu. The row now
has a Reconnect button, and the menu item is removed because the button
replaces it.
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

🧹 Preview Cleanup Complete

The following preview resources have been cleaned up:

  • ✅ Neon database branch

Thank you for your contribution! 🎉

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The plugin detail view now shows an inline Reconnect button for connections that need reauthorization. The button opens OAuth when an OAuth method exists; otherwise, it calls onConnect. The account menu no longer contains the Reconnect action.

Changes: Plugin reconnection

Layer / File(s) Summary
Inline reconnect action
apps/desktop/src/renderer/routes/_authenticated/_dashboard/plugins/$pluginName/components/PluginDetail/components/ConnectedAccounts/ConnectedAccounts.tsx
When connection.needsReauth is true, the view displays a Reconnect button. The button opens OAuth when available or calls onConnect. The account-menu action and its LuPlug import are removed.

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

Change: Feature

Possibly related issues

  • ParadevAI/Paradev issue 10143: Both changes provide a Reconnect action for a plugin connection that needs reauthorization. This PR adds the action to the plugin page; the issue describes actions in the chat transcript and /mcp panel.

Suggested reviewers: harshithmullapudi

Merge Risk: Minimal · up to a7d60

Accounts that need reconnecting now show a Reconnect button on the row instead of hiding the action in a menu. The change is small and easy to revert, and no merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "feat(desktop): show a Reconnect button on an account that needs reconnecting" follows conventional commit format and matches the main change. The PR adds an inline Reconnect button to accou…
Description check Passed The description follows the template well. It has a Summary and a Why/Context section that explain the change and the problem it solves, with no linked issue. The Testing section lists the checks run,…
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.
Full details: Title check

Explanation

The title "feat(desktop): show a Reconnect button on an account that needs reconnecting" follows conventional commit format and matches the main change. The PR adds an inline Reconnect button to accounts marked "Reconnect required" and removes the Reconnect item from the account menu. The title is specific and accurate.

Full details: Description check

Explanation

The description follows the template well. It has a Summary and a Why/Context section that explain the change and the problem it solves, with no linked issue. The Testing section lists the checks run, the manual verification over CDP, and what was not verified. The template's checklist is absent, and the description does not include screenshots, which the template strongly prefers for user-visible changes. The template's checklist items (conventional-commit title, lint and typecheck, maintainer edits, CLA) are not confirmed in the description.

Resolution

Optionally add a screenshot of the new Reconnect button row (before and after), since the template strongly prefers screenshots for user-visible changes. Also add the template's Checklist section so the author confirms the conventional-commit title, lint and typecheck status, the CLA, and maintainer edit access.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e3466232-71e6-4039-a923-1aaa24342d31
Commits

Reviewing files that changed from the base of the PR and between eadb98c and a7d6097.

Files selected for processing: 1

  • apps/desktop/src/renderer/routes/_authenticated/_dashboard/plugins/$pluginName/components/PluginDetail/components/ConnectedAccounts/ConnectedAccounts.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@AviPeltz
AviPeltz merged commit c9daa6e into main Nov 24, 2026
20 checks passed

Copy link
Copy Markdown
Contributor

Review verdict: looks good. A small, correct change. It matches the visible Reconnect button that ConnectorSection already has, and it reuses the existing Reconnect message id, so the catalogs do not change.

Findings (nits only):

  • ConnectedAccounts.tsx:101: openOAuth(oauth.type) does not pass the plugin, but ConnectorSection.tsx:104 does. The API uses plugin to send the user back to the plugin page after sign-in (apps/api/src/app/api/connectors/[connector]/connect/route.ts:35-40). The old menu item had the same gap, but this is now the main call to action, so it is worth passing the plugin name through.
  • ConnectedAccounts.tsx:97: variant="outline", while the same action in ConnectorSection.tsx:101 is ghost. Pick one variant if the two surfaces should look the same.

Question: for a user-scoped connector with several accounts, can Reconnect add a second connection instead of repairing the expired one? The OAuth URL carries no connection id. This is pre-existing, but the button makes the path more visible.

CI at a7d6097e is green (Lint, Typecheck, Test, Sherif, Vale, builds, previews). Local biome check on the changed file is clean.
Desktop not verified: the dev desktop was killed by the box memory guard twice (exit 137, about 3 GB RSS on an 8 GB box), so I have no screenshots.

Review page publish failed: superset pages publish returned "Session expired" (retried once), so there is no page link.
Slack post failed: the Slack integration is not connected in this workspace.

This branch was previously deployed

1 inactive deployment
preview — a7d6097e Deployed Nov 24, 2026 by AviPeltz via Cleanup Preview Resources #6004
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.

2 participants