logaritmisk
0c9db7bcdb
feat(web): highlight the offending field on a set_fields 422 ( #28 )
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-05 15:39:49 +02:00
logaritmisk
d6dc1c9b57
feat(api): field-level set_fields 422 body ( #28 ); enum-type SearchHitView.visibility ( #38 )
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-05 15:32:48 +02:00
logaritmisk
cd3606c0e9
docs(plans): follow-ups batch ( #38 #28 #41 #26 )
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-05 15:29:35 +02:00
logaritmisk
260eac903e
merge: instance locale (env) + single-language content authoring
...
CI / web (push) Has been cancelled
DEFAULT_LANGUAGE/DEFAULT_TIMEZONE env config surfaced via public GET /api/config;
SPA config provider defaults the UI language from the instance (overridable per
browser). Content authoring collapsed to a single language (LabelEditor +
localized_text) at the instance default. The multilingual content SCHEMA is left
completely untouched (dormant) — re-enabling is UI-only, zero migration. Storage
stays UTC; timezone exposed for future display/PDF use.
81 web tests; full backend green; bundle 145.7 KB gz; en/sv parity 106/106.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-05 15:16:12 +02:00
logaritmisk
9d0475e8ec
feat(web): single-language content authoring (LabelEditor + localized_text at default lang)
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-05 15:05:20 +02:00
logaritmisk
04e9c95c52
refactor(web): split config hook/context (.ts) from provider (.tsx) to clear react-refresh lint
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-05 15:01:33 +02:00
logaritmisk
de11292203
feat(web): config provider — fetch /api/config, default UI language from instance
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-05 14:58:01 +02:00
logaritmisk
825b23adec
test(server): assert default_language/default_timezone config defaults
2026-06-05 14:55:37 +02:00
logaritmisk
2460a1368d
feat: DEFAULT_LANGUAGE/DEFAULT_TIMEZONE config + public GET /api/config
2026-06-05 14:52:09 +02:00
logaritmisk
4a76d6043a
docs(plans): instance locale + single-language content authoring (4 tasks)
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-05 14:29:40 +02:00
logaritmisk
0f43c75b24
docs(specs): instance locale (env) + single-language content authoring
...
Keep the multilingual content schema (dormant); simplify authoring inputs to one
language. Default language + timezone via env vars (no settings table). Public
/api/config endpoint surfaces them to the SPA. Per-account UI language deferred.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-05 14:23:32 +02:00
logaritmisk
3c6a41a80a
merge: tier 4 hardening batch 1 ( #1 #2 #21 )
...
#1 graceful shutdown on SIGINT/SIGTERM (axum with_graceful_shutdown).
#2 configurable DB pool size (--db-max-connections / DB_MAX_CONNECTIONS, default 5).
#21 audit vocabulary/term/authority creation atomically, attributing the acting
user; ~15 call sites threaded an AuditActor.
173 workspace tests; clippy + fmt clean.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-04 22:10:13 +02:00
logaritmisk
146e0164e7
refactor(db): name audit entity_type constants for vocab/term/authority ( #21 )
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-04 22:05:06 +02:00
logaritmisk
984be697ac
feat: audit vocabulary/term/authority creation, attributing the acting user ( #21 )
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-04 21:54:50 +02:00
logaritmisk
7181437625
feat(server): configurable DB pool size via --db-max-connections/DB_MAX_CONNECTIONS ( #2 )
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-04 21:46:41 +02:00
logaritmisk
7e235ffd3e
feat(server): graceful shutdown on SIGINT/SIGTERM ( #1 )
2026-06-04 21:42:55 +02:00
logaritmisk
b0d2c247df
docs(plans): tier 4 hardening batch 1 ( #1 #2 #21 )
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-04 21:41:29 +02:00
logaritmisk
e9a5a10524
chore: sync Cargo.lock — domain gains utoipa (tier 3 #3 )
...
CI / web (push) Has been cancelled
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-04 20:26:21 +02:00
logaritmisk
df113bd7ac
merge: tier 3 typed-client ( #3 #24 #29 )
...
Decision #3 = Option A (utoipa::ToSchema allowed in domain, no I/O deps).
domain: ToSchema on Visibility/AuthorityKind + new DataType enum.
api: open-map fields (#24 ); enum value_types for visibility/data_type/kind (#29 );
domain enums registered in OpenAPI; client regenerated. Frontend: dropped the
now-redundant fields/visibility casts. Wire format unchanged; schema diff additive.
domain 26 + api 41 + web 78 tests; bundle 145.5 KB gz.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-04 20:25:54 +02:00
logaritmisk
0ee3b970cb
refactor(web): drop redundant fields/visibility casts now the client is typed ( #24 #29 )
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-04 20:20:13 +02:00
logaritmisk
5a72f85989
feat(api): enum-typed visibility/data_type/kind + open-map fields in OpenAPI ( #24 #29 )
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-04 20:14:30 +02:00
logaritmisk
d3c33a6c5d
feat(domain): derive ToSchema on Visibility/AuthorityKind; add DataType enum ( #3 Option A)
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-04 20:08:41 +02:00
logaritmisk
331a6d7f34
docs(plans): tier 3 typed-client ( #3 Option A, #24 , #29 )
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-04 20:06:27 +02:00
logaritmisk
0d971cda15
merge: tier 2 papercuts ( #22 #18 #9 #4 #34 #31 #32 #37 )
...
CI / web (push) Has been cancelled
Backend: add_term FK→404 (#22 ); log discarded errors on public 500 paths (#18 );
enum↔CHECK cross-ref comments (#9 ); drop dead clone + harden serve smoke test (#4 ).
Frontend: search 503 'unavailable' vs generic error (#34 ); loading/error states on
terms & authorities lists (#31 ); authority kind-tab ARIA + dead i18n key removal
(#32 ); authority-kind reveal test (#37 ).
78 web tests; 72 backend tests; bundle 145.5 KB gz.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-04 17:39:35 +02:00
logaritmisk
914527edc6
fix(web): place aria-selected on the role=tab element ( #32 ) + assert it
...
Per WAI-ARIA, aria-selected must be on the same element carrying role="tab".
The previous impl placed it on an inner <span> via the render-prop, making it
invisible to assistive technology. Move both role="tab" and aria-selected to
the NavLink, compute currentKind once from useParams, drop the render-prop.
Add a Vitest assertion that the selected tab has aria-selected="true" and an
unselected tab has aria-selected="false".
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-04 17:32:18 +02:00
logaritmisk
ff513e1712
fix(web): search 503 vs error ( #34 ); terms/authorities list error states ( #31 ); authority-tab a11y + dead keys ( #32 ); authority-kind test ( #37 )
2026-06-04 17:28:01 +02:00
logaritmisk
1a91b8a242
chore: cross-ref enum/CHECK constraints ( #9 ); drop dead clone + harden smoke test ( #4 )
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-04 17:21:33 +02:00
logaritmisk
2bce469ed2
fix(api): 404 when adding a term to a missing vocabulary ( #22 ); log public 500s ( #18 )
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-04 17:17:35 +02:00
logaritmisk
fbb7a297a6
docs(plans): tier 2 papercuts — #22/#18/#9/#4/#34/#31/#32/#37
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-04 17:14:39 +02:00
logaritmisk
8442afbf02
chore: gitignore local docker-compose.override.yml
CI / web (push) Has been cancelled
2026-06-04 14:56:21 +02:00
logaritmisk
869a2c6e50
docs(dev): Running locally + tests README; add Meilisearch to compose; env defaults
...
Single docker compose (Postgres + Meilisearch) for dev and tests. .env.example
now works out-of-the-box (SESSION_COOKIE_SECURE=false for http://localhost login;
MEILI_* matching compose).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-04 14:52:34 +02:00
logaritmisk
126f84962a
merge: fields management — create field definitions (endpoint + /fields UI)
...
CI / web (push) Has been cancelled
POST /api/admin/field-definitions (EditCatalogue) over the existing db layer,
validated through FieldType::from_parts (422 on inconsistent type/binding),
dup key -> 409, nonexistent vocabulary / empty key -> 422. /fields two-pane
screen: grouped list + create form with conditional vocabulary/authority-kind
selects, reused LabelEditor; creating a field invalidates the shared
[field-definitions] cache so it appears in the object editor too. Fields nav
enabled — no disabled nav stubs remain.
api tests green (8 admin_fields + suite); web 72 tests; bundle 145.4 KB gz.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-04 14:36:14 +02:00
logaritmisk
daad9438ba
fix(api): map CHECK-constraint violation (empty key) to 422
2026-06-04 14:35:56 +02:00
logaritmisk
fd1c22191b
polish(web): fields form resets error, shared labelText, drop dead nav.soon, a11y required marker, Other group last
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-04 14:29:25 +02:00
logaritmisk
37c80121ed
feat(web): /fields two-pane screen (grouped list + create form) + nav (no stubs left)
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-04 14:22:57 +02:00
logaritmisk
6ad1304efd
feat(web): useCreateFieldDefinition mutation + MSW handler
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-04 14:16:55 +02:00
logaritmisk
df8f31d14d
fix(api): map nonexistent-vocabulary FK violation to 422; cover term/authority create paths
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-04 14:15:19 +02:00
logaritmisk
b508273a52
feat(api): POST /api/admin/field-definitions (create field definition)
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-04 14:09:08 +02:00
logaritmisk
b490db13b1
docs(plans): fields management — POST endpoint + /fields UI, 4 tasks
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-04 13:50:30 +02:00
logaritmisk
19408f6282
docs(specs): fields management — POST field-definitions + /fields two-pane UI
...
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-04 13:35:18 +02:00
logaritmisk
2d0b76ab34
merge: frontend M5 — full-text search (endpoint + /search UI)
...
CI / web (push) Has been cancelled
GET /api/admin/search backed by Meilisearch (highlighted hits, visibility
filter, offset/limit, estimated total; 503 when search unconfigured). /search
two-pane screen: debounced query, visibility pills, URL-synced + bookmarkable,
infinite 'Load more', XSS-safe sentinel highlighting, ObjectDetail reuse for
the detail pane. Search nav enabled (only Fields remains stubbed).
Backend search+api tests green; web 68 tests; bundle 145.1 KB gz.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-04 12:54:12 +02:00
logaritmisk
4dd00362b8
polish(web): search pill aria-pressed, keepPreviousData, plural result count, URL-hydration test
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-04 12:47:38 +02:00
logaritmisk
358d793e44
feat(web): /search two-pane screen (debounced query, visibility filter, load more) + nav
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-04 12:40:46 +02:00
logaritmisk
ee65b27595
feat(web): Highlight (XSS-safe) + SearchResultRow components
2026-06-04 12:34:27 +02:00
logaritmisk
de830999d4
test(web): embed highlight sentinels in search fixture snippet
2026-06-04 12:32:23 +02:00
logaritmisk
18ed9bd947
feat(web): useSearch infinite query + useDebouncedValue + MSW search handler
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-04 12:29:11 +02:00
logaritmisk
90a1539090
test(api): cover search visibility-filter narrowing; note pagination cap rationale
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-04 12:26:38 +02:00
logaritmisk
a87501b902
feat(api): GET /api/admin/search endpoint + regenerated client types
...
Expose full-text search over catalogue objects via a new admin endpoint
backed by the Meilisearch SearchClient. Validates visibility filter values,
short-circuits on empty queries, clamps pagination, and returns 503 when
search is not configured. Registered in OpenAPI; schema.d.ts regenerated.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-04 11:48:32 +02:00
logaritmisk
9b1771d584
refactor(search): document+guard visibility filter precondition; drop redundant dev-dep
...
- Remove serde_json from [dev-dependencies] (already in [dependencies])
- Add debug_assert! in search_objects visibility filter as defense-in-depth
- Extend search_objects doc-comment with visibility precondition
- Clarify estimated_total_hits.unwrap_or(0) is safe under offset/limit pagination
- Add brief comment on with_crop_length(20) explaining ~20-word context window
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-04 11:19:46 +02:00
logaritmisk
84c4c2807b
feat(search): search_objects returns highlighted hits + estimated total
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-04 10:46:54 +02:00