Keep the In my chats switch and sign in again from cards

Tool tiles keep the caller's own In my chats switch, with the same
visibility and revert-on-failure as before, but without the label text
beside it; screen readers still get its name. A connected tool whose
connection needs signing in again has Sign in again in its menu, and a
paused synced source has Reconnect on its tile, both for the reader's own
connection and in place where the wizard can do it.
This commit is contained in:
arc53-machine committed 2026-09-29 18:56:01 +01:00
1 parent 6728163f2b
commit 54e9e8a335
5 files changed
+303 -67

No files matched your search

+6 -5
View File
@@ -647,11 +647,12 @@ description use a Switch in a SettingRow instead.
### Switch, TimePicker and Calendar (`ui/switch.tsx`, `ui/time-picker.tsx`, `ui/calendar.tsx`)
`Switch` (Radix) is an on/off setting, placed inside a `SettingRow` that names
it. A tool row's own on/off in a connection's drawer ("In my chats") is the
one exception: a `Label text-muted-foreground text-xs font-normal` + `Switch`
pair at the row's end. It is the caller's own preference, never a switch that
turns the tool off for everyone. The Tools page's tiles carry no switch; the
chat's Tools picker is where a tool goes in or out of the caller's chats. The track is `primary` when on and `bg-input` when off, with a white
it. A tool's own "In my chats" on/off is the one exception. On a Tools page
tile it is a bare `Switch` at the tile's bottom-right, named only by its
`aria-label` (no visible label); in a connection's drawer, a tool row ends in
a `Label text-muted-foreground text-xs font-normal` + `Switch` pair. Either way
it is the caller's own preference, never a switch that turns the tool off for
everyone. The track is `primary` when on and `bg-input` when off, with a white
thumb in both themes (see Elevation).
`TimePicker` picks a time of day as two `SelectTrigger`s, hours and minutes,