mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-22 03:50:30 +00:00
feat(settings): collapsible settings cards, first on the integrations tab
The settings pages list everything at once, so they read as a wall of
forms. SettingsCard and Section take 'collapsible': the card starts shut
and its badge says its state ('Connected', 'Not set up'); its title is the
button, stretched over the head, the head's action stays its own button.
The body stays mounted while shut. A link to #id opens the card and
scrolls to it; the browser remembers a card left open.
Every integrations card is collapsible now; AI parsing shows its saved
model and MCP the apps signed in. The assistant's settings link opens the
AI connection card. Tests that read into a card open it first
(tests/helpers/settingsCards.ts).
This commit is contained in:
@@ -28,7 +28,8 @@ import type { CardEntry } from './cards/cardTypes';
|
||||
*/
|
||||
|
||||
/** Where the settings card for the user's own AI connection lives. */
|
||||
export const AI_SETTINGS_PATH = '/settings?tab=integrations';
|
||||
/** The AI connection card itself: the anchor opens it, shut as it otherwise starts. */
|
||||
export const AI_SETTINGS_PATH = '/settings?tab=integrations#ai-connection';
|
||||
|
||||
type ToolCallPart = Extract<AssistantMessagePart, { type: 'tool-call' }>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user