feat: add admin announcement alert #10

Merged
Mitchell merged 2 commits from feat/9-add-admin-announcement-alert into develop 2026-02-27 12:44:04 +10:30
Owner

Closes #9.

Additionally, there is now an option to display an alert above the creation of shares and share requests, and the uploading of files into share requests. This is useful to remind users to not upload documents that have not been checked in to the records department for organisations if required.

Closes #9. Additionally, there is now an option to display an alert above the creation of shares and share requests, and the uploading of files into share requests. This is useful to remind users to not upload documents that have not been checked in to the records department for organisations if required.
feat(admin/alerts, i18n): add admin-configurable alerts and convert UI strings to locales
Some checks failed
Tests / unit-tests (push) Has been cancelled
Tests / unit-tests (pull_request) Successful in 2m50s
9f5caf2bf5
- Add persisted alert settings model and helpers in `apps/kite/src/lib/server/services/settings.ts`
  - `AlertType`, `AlertBanner`, `AlertSettings`
  - `getAlertSettings()` / `saveAlertSettings()` and sensible defaults
- Add admin API for alert settings at `apps/kite/src/routes/api/v1/admin/alert-settings/+server.ts`
  - GET/PUT handlers with validation and admin auth guard
- Add server tests for the new endpoint in `apps/kite/src/routes/api/v1/admin/alert-settings/server.test.ts`
- Expose `alertSettings` from `apps/kite/src/routes/+layout.server.ts` and render global announcement in `apps/kite/src/routes/+layout.svelte`
- Add admin UI to manage alerts in `apps/kite/src/routes/admin/+page.svelte`
- Render share-flow alert in share/create/upload flows:
  - `apps/kite/src/routes/+page.svelte`
  - `apps/kite/src/routes/share-requests/+page.svelte`
  - `apps/kite/src/routes/r/[code]/+page.svelte`
- Replace hard-coded user-facing strings with locale keys and wire translations (moved strings into existing locale files under `apps/kite/messages/`)
  - Move all readable strings into the i18n locale file.
Mitchell changed title from WIP: feat: add admin announcement alert to feat: add admin announcement alert 2026-02-27 12:31:10 +10:30
style: remove unused build files
Some checks failed
Tests / unit-tests (push) Failing after 27s
Tests / unit-tests (pull_request) Failing after 1m28s
1b822246cb
Mitchell merged commit 189e7ca1f5 into develop 2026-02-27 12:44:04 +10:30
Mitchell deleted branch feat/9-add-admin-announcement-alert 2026-02-27 12:44:04 +10:30
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Mitchell/kite!10
No description provided.