* feat(onboarding): add cookie helper, types and mock data
* feat(onboarding): add stepper, contextual preview and shell
* feat(onboarding): add sso-gate step
* feat(onboarding): add account-info step with real signup
* feat(onboarding): add security step
* feat(onboarding): add preferences step
* fix(onboarding): validate avatar upload size/type and handle FileReader errors
* feat(onboarding): add org-create step
* feat(onboarding): add invite-members step
* feat(onboarding): add notifier step reusing real provider list
* feat(onboarding): add storage step reusing real provider list
* feat(onboarding): add defaults step
* feat(onboarding): add agent-create step
* feat(onboarding): add agent-waiting step with simulated ping
* feat(onboarding): add project-create step
* feat(onboarding): add db-settings step with per-db repeat
* feat(onboarding): add finish step with confetti
* feat(onboarding): wire full step graph
* feat(onboarding): add /welcome route
* feat(onboarding): gate landing, auth and dashboard routes behind onboarding cookie
* fix(onboarding): call next() in finish step so onFlowComplete fires and cookie is written
* docs: add onboarding channel config + style refactor spec
* docs: add conditional step skip when no agents to spec
* docs(onboarding): add implementation plan for channel config flow and style refactor
* feat(onboarding): extend OnboardingChannel with name and config fields
* feat(onboarding): add two-phase config flow and org-combobox style to notifier step
* fix(onboarding): prevent duplicate notifier providers and guard Continue button
* feat(onboarding): add two-phase config flow and org-combobox style to storage step
* style(onboarding): restyle sso-gate provider buttons to org-combobox card style
* style(onboarding): restyle security method choice to org-combobox card style
* style(onboarding): restyle theme toggles in preferences step to org-combobox card style
* style(onboarding): restyle DB toggle buttons in project-create step to org-combobox card style
* feat(onboarding): skip agent-waiting/project-create/db-settings when no agents created
* feat(onboarding): update type system — meta, firstName/lastName, org.id, databases
* feat(onboarding): add settings.onboarding column + markOnboardingDoneAction
* feat(onboarding): add resolveOnboardingState server function
* fix(onboarding): remove unused imports from onboarding-state.ts
* style(onboarding): add branding to shell, fix progress bar full width
* feat(onboarding): replace preview panel with stepper checklist
* feat(onboarding): add step-login replacing sso-gate
* fix(onboarding): step-login — conform to global mutation pattern, handle SSO errors
* feat(onboarding): step-account-info — firstName/lastName, conditional password, findOrCreate
* feat(onboarding): avatar API route (next/og) + AvatarPicker in preferences step
* feat(onboarding): step-security reads passkeyEnabled from flowData.meta
* feat(onboarding): step-org-create calls real createOrganizationAction
* fix(onboarding): step-org-create — simplify error handling, throw on empty name
* feat(onboarding): notifier + storage steps call real actions + findOrCreate on back
* feat(onboarding): step-agent-create calls real createAgentAction + findOrCreate
* feat(onboarding): step-agent-waiting polls real agent lastContact via useQuery
* feat(onboarding): add step-agent-key with edgeKey generation via server action
* feat(onboarding): step-project-create uses real action + real DBs from flowData
* feat(onboarding): wire steps — add login + agent-key, remove sso-gate
* feat(onboarding): page.tsx uses resolveOnboardingState — server-driven resume
* chore(onboarding): delete mock/cookie/preview/sso-gate files — replaced by real implementation
* feat(onboarding): add emailPasswordEnabled to meta, remove logoDataUrl from org
* feat(onboarding): DB-driven resume — query notifiers/storages, check agent lastContact
* feat(onboarding): agent-waiting step is now skippable
* feat(onboarding): login — auto-advance if session, callbackURL on SSO, hide email/pw when disabled, empty state
* fix(onboarding): step-login — add next to useEffect deps, default emailPasswordEnabled to false
* fix(onboarding): verify session after passkey registration, fallback to signIn.passkey()
* feat(onboarding): theme applied dynamically via setTheme, avatar saved to user.image
* feat(onboarding): remove org logo upload — orgs have no logo
* feat(onboarding): show Next button in shell when navigating backwards
* docs: add onboarding refactor design spec
* docs: add onboarding refactor implementation plan
* refactor(onboarding): extract useCreateAgent and useDeleteAgent hooks
* refactor(onboarding): extract useCreateOrg and useCreateProject hooks
* fix(onboarding): trim project name, standardize error narrowing in org/project hooks
* fix(onboarding): use narrowed createData.value in use-create-org
* refactor(onboarding): extract useUpdateAccount hook
* refactor(onboarding): extract useAddNotifier and useRemoveNotifier hooks
* refactor(onboarding): extract useAddStorage and useRemoveStorage hooks
* refactor(onboarding): extract useAgentStatus and useGenerateEdgeKey hooks
* refactor(onboarding): extract useMarkOnboardingDone hook, remove .gitkeep files
* docs: add onboarding theme persistence & progress bar fix spec
* docs: add onboarding theme & progress bar implementation plan
* fix(onboarding): persist theme to db on selection in StepPreferences
* fix(onboarding): recalculate progress bar from full STEP_ORDER position
* fix(theme): sync user theme from DB on all routes, not only dashboard
* fix(theme): use current theme as fallback in preferences, prevent session override of localStorage
* fix(onboarding): correct resume steps and skip agent-waiting flash when agent is connected
* fix(onboarding): properly resolve onboarding state, remove redirect trap in step-defaults, block waiting flash
* fix(onboarding): resume at db-settings instead of finish if no database exists for the project
* fix(onboarding): redirect to agent-create if project exists but no agent is found
* fix(onboarding): allow going from agent-create to project-create if a project already exists
* fix(onboarding): skip intermediate agent steps when going back from project-create to agent-create
* fix(onboarding): skip default step when going back from agent-create if no notifiers and storages exist
* feat(onboarding): allow user to choose between passkey and password during registration if both are enabled
* feat(onboarding): replace tabs with single form and multiple buttons for auth choice
* style(onboarding): improve empty auth state UI with lucide icon and better layout
* fix(onboarding): completely hide back button on the first step instead of disabling it
* fix(onboarding): skip default step if no notifiers and storages exist when advancing from storage step
* fix(onboarding): correctly show select placeholder when default value does not exist in the list
* refactor(onboarding): remove duplicate generate-edge-key action and use core utility directly
* feat(onboarding): compute edgeKey directly on the server side to avoid lazy loading
* fix(onboarding): skip db-settings step if no database is found on the agent
* fix(onboarding): do not skip db settings if agent is connected but no databases found
* refactor(onboarding): skip db settings entirely if no database is selected in project create
* feat(onboarding): auto-save database selections on project create instantly
* style(onboarding): replace button opacity flash with specific spinner animation on db select
* feat(onboarding): extend OnboardingDbSettings with retention, schedule, and policy fields
* feat(onboarding): add applyOnboardingDbSettingsAction server action
* feat(onboarding): add BackupScheduleSelector component
* feat(onboarding): rewrite step-db-settings with three-level phase navigation and full policy persistence
* fix(onboarding): wire applyMutation.mutateAsync everywhere and stabilize list keys
* docs(sdd): append hotfix summary for applyMutation and list keys
* fix(onboarding): address final review findings - atomicity, scheduling guard, apply-all recovery, client validation
* add: onboarding
* fix(migration): merge
* fix(migration): apply for onboarding
* fix(settings): make avatar selector, dicebear picker and tab bar responsive
* chore: checkpoint before features reorganization
* Task 2: Add migration script for features directory reorganization
* refactor(agents): reorganize into actions/components/schemas/hooks
* refactor(auth): reorganize into actions/components/schemas
* refactor(channel): reorganize into components/schemas, nest notifications+storages under components
* refactor(database): reorganize into actions/components/schemas
* refactor(layout): move all components to components/
* refactor(logs): reorganize into components/types
* refactor(migration): reorganize into actions/components
* refactor(notifications): reorganize into components/types/utils
* refactor(organizations): reorganize into actions/components/schemas/hooks/utils
* refactor(profile): reorganize into actions/components/schemas
* refactor(projects): reorganize into actions/components/schemas
* refactor(settings): reorganize into actions/components/schemas/hooks
* refactor(statistics): reorganize into components/utils
* refactor(storages): reorganize into types/utils
* refactor(theme): move all components to components/
* refactor(updates): reorganize into components/hooks
* refactor(upload): move action to actions/
* refactor(users): reorganize into actions/components/schemas
* fix: update broken imports after features reorganization (double-quote relative imports, channel subdir absolute paths)
* fix: .gitignore
* fix: onboarding
* fix: removed dead files
* feat: backfill onboarding flag for instances with existing data
* fix: persist onboarding=true on boot when SKIP_ONBOARDING is set
* feat: remove avatarMode/dicebearStyle from DB schema and types
* feat: simplify resolveAvatarUrl — custom image first, gravatar fallback
* feat: allow avatar upload regardless of mode
* feat: remove avatarMode from layout and profile prop chains
* feat: remove avatar mode admin tab and supporting files
* feat: remove avatar mode selector from onboarding defaults step
* fix: remove preferences onboarding step and fix routing
* fix: remove stale preferences entry from onboarding checklist
* feat: add avatar reset button and explanatory tooltip on profile page
* fix: move avatar tooltip to top-right badge overlay on avatar
* fix: use small destructive button for avatar removal
* fix
* Update step-defaults.tsx
* fix: default dev password for keycloak refer to env
* fix
* fix(migration): refactoring
* fix: api agent helpers.ts
* Update .env.example
---------
Co-authored-by: Théo LAGACHE <theo.lagache@soluce-technologies.com>
Co-authored-by: charles-gauthereau <charles.gauthereau@soluce-technologies.com>
* feat: added the mcp server
* feat: added the mcp server
* fix: api for database not linked to any projects
* fix: added variable to disable MCP
* chore: refactoring
Four missed cases where deleted/archived resources could leak through:
- acl.ts: exclude deleted databases from getAccessibleDatabaseIds
- databases/route.ts: exclude deleted databases in list endpoint
- agents/route.ts: re-apply isArchived guard on final fetch (ACL ids stale)
- databases/[id]/status/route.ts: exclude deleted restorations
* docs: add AGENTS.md with feature-based architecture conventions
Defines the target src/ structure, feature list, naming conventions
(kebab-case, file type patterns), import direction rules, and
feature boundary guidelines for the planned big-bang refactor.
* docs: add features/channel/ to architecture conventions
Generic channel UI (card, modal, form) goes to features/channel/.
Provider-specific sub-folders: channel/notifications/ and channel/storages/.
* refactor: move event emitter to lib/, project service to db/services/, dedup use-mobile hook
* fix: remove unused auth import in db/services/project.ts
* refactor: migrate wrappers/common to components/common (flat)
* fix: remove dead commented-out code from button-with-loading.tsx
* refactor: merge features/browser into features/theme, flatten upload/updates, migrate statistics
* refactor: migrate wrappers/auth to features/auth
Move all auth components and forms from src/components/wrappers/auth/
into src/features/auth/ with flat kebab-case naming. Handle extra
reset-password-form.tsx and differing reset-password-schema.ts by
copying them as reset-password-page-form.tsx and reset-password-page.schema.ts.
* refactor: remove dead auth files and fix zPassword schema
Delete reset-password-section.tsx and reset-password-page-form.tsx (zero consumers).
Fix reset-password-page.schema.ts to import zPassword from @/lib/zod.
* refactor: migrate wrappers/dashboard/common to features/layout, rename Header.tsx to header.tsx
* fix: decouple layout from theme/updates cross-feature imports
Use slot props (actions, updateNotification) so app/ composes
ModeToggle and UpdateNotification into Header and AppSidebar.
Delete dead side-bar-logo.tsx (zero consumers).
* refactor: merge features/keys into features/agents, flatten sub-dirs, migrate agent wrappers
- Merge src/features/keys/keys.action.ts into src/features/agents/
- Flatten src/features/agents/components/ and hooks/ into feature root
- Migrate all src/components/wrappers/dashboard/agent/ files into src/features/agents/
- Update all import paths across app/ and src/ accordingly
- Fix broken code-snippet import in agent-key-modal.tsx (was pointing to non-existent wrappers path)
* fix: move github-releases to lib/, remove dead code and unused imports
Move GitHub release fetch logic from features/updates/github.ts to
lib/github-releases.ts so both features/updates and features/agents
can import it without cross-feature imports.
Remove commented-out impersonation block from agent-database-card.tsx.
Remove unused imports (CopyButton, Terminal, Key, Info).
* refactor: flatten features/projects/components, migrate project wrappers
Move project.dialog/form out of sub-dir, migrate project-card, project-database-card, and delete-project button/action from wrappers into features/projects/. Update all import paths across src/ and app/. Leave wrappers/dashboard/projects/database/ untouched for Task 10.
* fix: extract DatabaseCard to components/common, remove cross-feature import
DatabaseCard was imported by both features/projects and features/agents,
violating the no-cross-feature-import rule. Extract to components/common/
database-card.tsx so both features import from the shared layer.
Also tighten extendedProps type and remove commented-out maxCount prop.
* refactor: migrate all database/backup/restore/health UI to features/database
Consolidates ~40 files from 5 source locations (features/dashboard/backup,
features/dashboard/restore, wrappers/dashboard/backup, wrappers/dashboard/database,
wrappers/dashboard/health, wrappers/dashboard/projects/database) into the new
flat features/database directory with kebab-case filenames and updated @/ imports.
* fix: remove dead restore-form files and console.log from health-grid
Delete restore-form.tsx (186 lines all commented-out, zero consumers)
and restore-form.schema.ts (only a commented import).
Remove console.log(logs) from getOldestLog helper in health-grid.tsx.
Cross-feature imports (database→storages for dispatchStorage/storeBackupFiles)
are accepted as known architectural coupling — storage dispatch is called from
database server actions at runtime and cannot route through app/ props.
* refactor: migrate wrappers/admin/users to features/users, fix table-colums typo
* fix: fix relative imports, string interpolation, and console.error in users feature
Replace relative imports with @/ aliases in user-actions-cell.tsx and
admin-user-edit-modal.tsx. Fix string interpolation bug in dialog title
(was regular string, now template literal). Remove console.error from
admin-user-change-role-modal.tsx.
* refactor: migrate wrappers/profile to features/profile, fix profile-apperance typo
* fix: remove console.error calls and ts-ignore in profile feature
Remove console.error from profile-account.tsx, 2fa-form.tsx (x2).
Replace @ts-ignore on fileInput.onchange with typed cast in avatar-with-upload.tsx.
* refactor: rename features/organization to features/organizations, migrate all org wrappers
Moves 37 org-related files from features/organization/, features/dashboard/,
hooks/, wrappers/admin/organizations/, wrappers/admin/channels/organization/,
and wrappers/dashboard/organization/ into a flat features/organizations/ feature
directory. Updates all import paths codebase-wide. Fixes @ts-ignore and removes
unused @better-fetch/fetch import in admin-organization-form.
* fix: remove console.error, @ts-ignore, and unused destructures in features/organizations
* refactor: migrate wrappers/organization/migration to features/migration
Move all 5 migration files to src/features/migration/, update internal
imports to @/features/migration/ absolute paths, remove console.log,
and delete src/components/wrappers/dashboard/organization/ entirely.
* refactor: migrate wrappers/admin/settings to features/settings
Move all 14 settings files (email, notification, storage, s3) from
wrappers/dashboard/admin/settings/ into features/settings/, rewriting
imports, replacing @ts-ignore with @ts-expect-error, and renaming error
params to _error where applicable.
* refactor: rename notifications files to kebab convention, migrate notification logs
- Rename dispatch.ts/helpers.ts/types.ts to notifications.*.ts
- Migrate notification logs components from wrappers/dashboard/admin/notifications/logs/ to features/notifications/
- Fix all import paths across codebase and in providers/
- Remove unused useRouter import, replace @ts-ignore with @ts-expect-error
- Delete src/components/wrappers/dashboard/admin/notifications/
* refactor: rename storages dispatch/helpers/types to kebab convention
- Rename dispatch.ts/helpers.ts/types.ts to storages.*.ts
- Fix all import paths across codebase and in providers/
- Fix relative ../types and ../../types imports in all storage providers to absolute @/ paths
- Replace @ts-ignore with @ts-expect-error, remove console.debug/console.error
* refactor: create features/channel with generic UI and notifications/storages provider sub-folders
Consolidates 4 source locations into src/features/channel/:
- components/wrappers/dashboard/admin/channels/ → features/channel/ (11 generic UI files)
- features/notifications/providers/ → features/channel/notifications/ (9 backend + 18 form files)
- features/storages/providers/ → features/channel/storages/ (backend + forms)
The two conflicting google-drive/helpers.ts files (client helpers vs OAuth action)
are kept separate: helpers.ts and google-drive-refresh.action.ts.
Rewrites all imports codebase-wide to point to new locations.
Removes console.log/console.error calls, upgrades @ts-ignore to @ts-expect-error.
* fix: remove console.error from local storage provider
* fix: multi-select.tsx scroll issue
* fix: multi-select.tsx scroll issue
* fix: add page size selector to CardsWithPagination
Add an optional pageSizeOptions prop to CardsWithPagination that renders
a "Cards per page" dropdown selector, consistent with the existing
TablePaginationSize pattern used in DataTable.
- New PaginationSize component (standalone, no TanStack Table dependency)
- CardsWithPagination: manage pageSize as state, reset to page 1 on change
- Project databases page: increase default from 6 to 20, add selector [10, 20, 50]
- Projects list page: increase default from 9 to 12, add selector [12, 24, 48]
- Fully backward compatible: without pageSizeOptions, behavior is unchanged
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: address CodeRabbit review feedback
- Validate pageSize in handlePageSizeChange (reject 0/negative/NaN)
- Guard empty pageSizeOptions array from rendering empty selector
- Restore className on PaginationNavigation for backward compatibility
- Add aria-label to SelectTrigger for accessibility on small screens
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(pagination-size): fallback to pageSizeOptions[0] when pageSize not in options
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix(pagination-size): fix pageSize is not defined (placeholder ref)
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>