feat(desktop): show a Reconnect button on an account that needs reconnecting
Merged
AV
2d ago+11+11+01234567890123456789-11-11-01234567890123456789
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 checkon 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.
tscfor 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.
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.