mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-23 13:23:04 +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:
@@ -9,6 +9,7 @@ import { resetAllStores, seedStore } from '../../../tests/helpers/store';
|
||||
import { buildUser } from '../../../tests/helpers/factories';
|
||||
import { ToastContainer } from '../shared/Toast';
|
||||
import PhotoProvidersSection from './PhotoProvidersSection';
|
||||
import { openSettingsCards } from '../../../tests/helpers/settingsCards';
|
||||
|
||||
const fakeProvider = {
|
||||
id: 'immich',
|
||||
@@ -45,6 +46,8 @@ function seedMemoriesEnabled(providers = [fakeProvider]) {
|
||||
}
|
||||
|
||||
beforeEach(() => {
|
||||
// The cards start shut; these tests read into them.
|
||||
openSettingsCards();
|
||||
resetAllStores();
|
||||
vi.clearAllMocks();
|
||||
seedStore(useAuthStore, { user: buildUser(), isAuthenticated: true });
|
||||
|
||||
Reference in New Issue
Block a user