Automatiska ID, nya registertyper och ID-register

- Löpande ID per bok och typ enligt idöversikten (KI, FI, BI, DI, LI, UI, FD, RI,
  RD, SI, REI, PI, SCI, KD-R_/KD-E_), prefix samlade i src/lib/ids.ts
- Nya typer: Fordon, Skiss, Research, Referens, Appar, Hemsidor (grupp Register)
- Sida med ID-register med sök och filter
- Migration 0003_auto_ids med backfill av befintliga poster
- ID visas i listor, postsidor, kartpanel och scheman
- README och Register/-mallar

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-10-22 22:31:50 +02:00
1 parent 0b65494cf5
commit 8a0e93f559
32 files changed
+664 -48

No files matched your search

+10 -1
View File
@@ -36,7 +36,15 @@ export default async function MapPage({
return (
<>
<PageHeader title={map.name} pretitle={t("map.title")} />
<PageHeader
title={map.name}
pretitle={
<>
{t("map.title")}
{map.code ? <span className="badge ms-2">{map.code}</span> : null}
</>
}
/>
<PageBody>
<MapLoader
bookId={bookId}
@@ -47,6 +55,7 @@ export default async function MapPage({
zoom={map.zoom}
markers={map.markers.map((m) => ({
id: m.id,
code: m.code,
label: m.label,
note: m.note,
color: m.color,