1340 Commits
Author SHA1 Message Date
charles-gauthereau 1fbbc935c1 fix: add cdn.jsdelivr.net to style-src CSP for Swagger UI 2026-05-28 11:20:04 +02:00
charles-gauthereau ad0e6be10d fix: pin swagger-ui CDN assets with SRI and add document-level security default 2026-05-28 11:15:04 +02:00
charles-gauthereau 5735d47889 feat: serve Swagger UI at GET /api/v1/docs 2026-05-28 11:00:47 +02:00
charles-gauthereau 294bdfa296 feat: serve OpenAPI spec JSON at GET /api/v1/openapi 2026-05-28 11:00:04 +02:00
charles-gauthereau 83eb012cb5 feat: add buildSpec() to assemble /api/v1 OpenAPI document 2026-05-28 10:59:25 +02:00
charles-gauthereau 51d165fe84 feat: register database routes in OpenAPI spec 2026-05-28 10:58:26 +02:00
charles-gauthereau 3b7eb6c606 feat: register agent routes in OpenAPI spec 2026-05-28 10:56:29 +02:00
charles-gauthereau 333146c590 feat: register apiKeyAuth security scheme for OpenAPI spec 2026-05-28 10:55:17 +02:00
charles-gauthereau 6adb310f0c feat: add zod-to-openapi bootstrap for /api/v1 OpenAPI spec 2026-05-28 10:53:39 +02:00
charles-gauthereau a64fe1c08c chore: add @asteasolutions/zod-to-openapi for OpenAPI spec generation 2026-05-28 10:51:58 +02:00
charles-gauthereau 40cdb3d0ab fix: some security issues 2026-05-28 10:18:28 +02:00
charles-gauthereau 7a97721abf fix: agent route to add json parser 2026-05-28 08:16:34 +02:00
charles-gauthereau c1b71e7772 fix: endpoints 2026-05-27 22:02:22 +02:00
charles-gauthereau 56517226b6 fix: endpoints 2026-05-25 18:31:00 +02:00
charles-gauthereau 337d270ba6 fix: correct rate-limit response shape in withApiKey middleware 2026-05-25 16:17:18 +02:00
charles-gauthereau 373ab315a3 feat: register api/v1 routes in proxy route guard 2026-05-25 15:36:33 +02:00
charles-gauthereau 685e1fc300 fix: apply soft-delete filters consistently across api/v1 routes
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
2026-05-25 15:29:33 +02:00
charles-gauthereau 274aded8fd fix(api-v1): add soft-delete filters and remove any types in database operation routes 2026-05-25 15:18:55 +02:00
charles-gauthereau 39b6b5e116 feat(api-v1): add GET /databases/:id/status 2026-05-25 15:14:41 +02:00
charles-gauthereau 3f52d8c76e feat(api-v1): add POST /databases/:id/restore 2026-05-25 15:14:39 +02:00
charles-gauthereau 11f814777b feat(api-v1): add GET /databases/:id/backup/:backupId 2026-05-25 15:14:38 +02:00
charles-gauthereau dd66ecdb78 feat(api-v1): add GET and POST /databases/:id/backup 2026-05-25 15:14:36 +02:00
charles-gauthereau ec90a34262 fix(api-v1): return 404 for archived agents in resolveAgentAccess 2026-05-25 15:12:45 +02:00
charles-gauthereau 5a2ce4968d feat(api-v1): add GET /databases/:id 2026-05-25 15:09:44 +02:00
charles-gauthereau 03659b4a15 feat(api-v1): add GET /databases 2026-05-25 15:09:32 +02:00
charles-gauthereau b032c96a7c feat(api-v1): add GET /agents/:id and DELETE /agents/:id 2026-05-25 15:09:26 +02:00
charles-gauthereau d887d44bd4 fix(api-v1): transaction safety and isArchived consistency in agents route 2026-05-25 15:08:11 +02:00
charles-gauthereau 7115ce8484 feat(api-v1): add GET /agents and POST /agents 2026-05-25 15:03:21 +02:00
charles-gauthereau 96cc9822d0 fix(api-v1): handle agent.organizationId FK path and nullable isArchived in ACL helpers 2026-05-25 15:01:25 +02:00
charles-gauthereau 68fb74f441 feat(api-v1): add ACL helpers 2026-05-25 14:57:20 +02:00
charles-gauthereau 06ed4f3517 fix(api-v1): strengthen middleware type safety and remove redundant import 2026-05-25 14:55:53 +02:00
charles-gauthereau 3a4dd10b4c feat(api-v1): add withApiKey middleware 2026-05-25 14:46:20 +02:00
charles-gauthereau 0316fdc0a3 feat: added the api key list, delete, create in profile modal. 2026-05-25 13:04:42 +02:00
charles-gauthereau 72ecd7f054 feat: added the api key list, delete, create in profile modal. 2026-05-25 11:39:30 +02:00
Charles GTE 8db995010f Merge branch 'main' into dev 2026-05-24 17:13:16 +02:00
github-actions[bot] 539fec4dbc chore: release 1.15.5 1.15.5 2026-05-24 15:09:58 +00:00
Charles GTEandGitHub 3fa0f9b76d fix: feature-base-refactoring (#297)
* 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
2026-05-24 17:09:12 +02:00
Charles GTE 41d8b2c375 Merge branch 'main' into dev 2026-05-23 18:42:07 +02:00
github-actions[bot] 4fadfcfaf2 chore: release 1.15.4 1.15.4 2026-05-21 17:46:00 +00:00
af3df7f72a fix: multiple-webhook-headers and nextcloud talk provider (#296)
* feat(webhook): replace single secret header pair with webhookHeaders array schema

* feat(webhook): iterate webhookHeaders array; keep backward compat for legacy secret fields

* feat(webhook): replace single header pair with dynamic useFieldArray header list

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(webhook): add field labels to header key/value inputs

* fix(webhook): guard reserved headers; align delete button with inputs

* feat(nextcloud): add nextcloud to provider_kind enum

* feat(nextcloud): add ProviderKind entry and HMAC-signed provider

* feat(nextcloud): add Zod schema and form component

* feat(nextcloud): wire nextcloud into form registry and UI provider list

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* feat(nextcloud): register sendNextcloud in provider dispatch map

* fix: multiple webhook headers and nextcloud talk notification provider

* test(webhook): update e2e to use Add Header button and Header Value label

* fix: webhook.ts

---------

Co-authored-by: charles-gauthereau <charles.gauthereau@soluce-technologies.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-21 19:45:08 +02:00
Charles GTE 3b8fb93fb2 Merge branch 'main' into dev 2026-05-21 19:28:57 +02:00
github-actions[bot] 2cd5bda416 chore: release 1.15.3 1.15.3 2026-05-21 05:51:50 +00:00
965b215224 fix: replace integer column with bigint for size (#295)
Co-authored-by: charles-gauthereau <charles.gauthereau@soluce-technologies.com>
2026-05-21 07:51:08 +02:00
github-actions[bot] 27f6b746e0 chore: release 1.15.2 1.15.2 2026-05-21 05:28:56 +00:00
7d463d7da8 fix: default user from init .env variables (#293)
* fix: default user from init en .env variables

* fix: .env.example

---------

Co-authored-by: charles-gauthereau <charles.gauthereau@soluce-technologies.com>
2026-05-21 07:28:05 +02:00
killian-larcher 55be9374e1 Revert "docs: add OIDC E2E design spec"
This reverts commit b28bb44f97.
2026-05-20 21:45:46 +02:00
killian-larcher ce1bade773 Merge remote-tracking branch 'origin/dev' into dev 2026-05-17 10:46:53 +02:00
github-actions[bot] 332540488d chore: release 1.15.1 1.15.1 2026-05-17 08:42:07 +00:00
ab52ef6c27 fix: logger.ts (#288)
* fix: release.yml

* fix: S3ChannelConfigSchema type port mismatch

* chore: package.json

* fix: refactoring logs and adding pino logger for production and dev.

* fix: trusted url error due to better auth update.

* fix: logger.ts

---------

Co-authored-by: charlesgauthereau <charles.gauthereau@soluce-technologies.com>
Co-authored-by: killianlarcher <killian.larcher@soluce-technologies.com>
2026-05-17 10:41:36 +02:00
Charles GTE 9fe046617c fix: logger.ts 2026-05-17 10:34:54 +02:00