CHORE: updated TODOs

This commit is contained in:
Simon Martens
2026-01-23 10:27:13 +01:00
parent e0339205cb
commit b08f0d6dab
7 changed files with 198 additions and 20 deletions

View File

@@ -1,24 +1,16 @@
TODO danach:
- MO Input:
TODO:
- Input:
- Titelauflage von/ hat TA
- Zeilenumbrüche in Reihen-Annotationen (EVTL. fix in TinyMCE)
- Status: Auopsiert, Erfasst etc.
- \) parse on input
- SO Hilfe-Texte für Felder
- MO Lösch-Links in Liste, Übersicht u.s.w. (? CSRF-Token fehlt)
Features:
- NÄCHSTE WOCHE Datenbank-Hygiene
- DI Extra-DB für FTS5: ist eigentlich nichtTeil der Haupt-DB, sondern nur Suchindex
- Suchindex beim Start erstellen, anstatt dauerhaft zu speichern
- text person groß bei Inhalten
- Inhlts-Typ anzeigen bei Liste v. Inhalten im Edit-Scrren
- Hilfe-Texte für Felder
- Seiteneditor: Bilder für die Startseite.
- Datei-Upload-Manager
BUGS:
- DI: Schriftgröße edit-Screen
- MO: doppelte Einträge Reihen-Liste
- S. Abendstunden
- Löschen v. Personen syncronisiert nicht den Suchindex
- Index images become a part of the more generic images table (their index starts with index-) so we can find them quickly
- All the text for the websites will be mmoved to the HTML table with the keys being the names.
- Schriftgröße Edit-Screens
- doppelte Einträge Reihen-Liste, Endpoint /reihen (siehe Abendstunden)
Features:
- Extra-DB für FTS5: ist eigentlich nichtTeil der Haupt-DB, sondern nur Suchindex
- Suchindex beim Start erstellen, anstatt dauerhaft zu speichern

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{{ template "_contents_detail" . }}

View File

@@ -0,0 +1 @@
{{ template "_contents_list" . }}

View File

@@ -0,0 +1,94 @@
{{- $content := index . "content" -}}
{{- $entry := index . "entry" -}}
{{- $csrf := index . "csrf_token" -}}
{{- $agents := index . "agents" -}}
{{- $contentAgents := index . "content_agents" -}}
{{- $isNew := index . "is_new" -}}
<div class="flex flex-col gap-3 px-3 py-2 md:flex-row md:items-start">
<div class="grid flex-1 gap-2 grid-cols-[8rem_1fr] items-baseline">
{{- if or $content.Extent $content.MusenalmPagination -}}
<div class="text-sm font-bold text-gray-700">Seite</div>
<div class="text-base">
{{ if $content.Extent }}{{ $content.Extent }}{{ end }}{{ if and $content.Extent $content.MusenalmPagination }}, {{ end }}{{ if $content.MusenalmPagination }}{{ $content.MusenalmPagination }}{{ end }}
</div>
{{- end -}}
{{- if $content.TitleStmt -}}
<div class="text-sm font-bold text-gray-700">Titel</div>
<div class="text-base italic">{{- $content.TitleStmt -}}</div>
{{- end -}}
{{- if $content.SubtitleStmt -}}
<div class="text-sm font-bold text-gray-700">Untertitel</div>
<div class="text-base italic">{{- $content.SubtitleStmt -}}</div>
{{- end -}}
{{- if $content.ParallelTitle -}}
<div class="text-sm font-bold text-gray-700">Paralleltitel</div>
<div class="text-base italic">{{- $content.ParallelTitle -}}</div>
{{- end -}}
{{- if $content.VariantTitle -}}
<div class="text-sm font-bold text-gray-700">Titelvarianten</div>
<div class="text-base italic">{{- $content.VariantTitle -}}</div>
{{- end -}}
{{- if $content.PlaceStmt -}}
<div class="text-sm font-bold text-gray-700">Ortsangabe</div>
<div class="text-base italic">{{- $content.PlaceStmt -}}</div>
{{- end -}}
{{- if gt (len $content.Language) 0 -}}
<div class="text-sm font-bold text-gray-700">Sprache</div>
<div class="text-base">
{{- range $i, $lang := $content.Language -}}{{- if $i }}, {{ end -}}{{- $lang -}}{{- end -}}
</div>
{{- end -}}
{{- if gt (len $content.ContentType) 0 -}}
<div class="text-sm font-bold text-gray-700">Beitragstyp</div>
<div class="text-base">
{{- range $i, $t := $content.ContentType -}}{{- if $i }}, {{ end -}}{{- $t -}}{{- end -}}
</div>
{{- end -}}
{{- if $content.IncipitStmt -}}
<div class="text-sm font-bold text-gray-700">Incipit</div>
<div class="text-base italic">{{ $content.IncipitStmt }}…</div>
{{- end -}}
{{- if $content.ResponsibilityStmt -}}
<div class="text-sm font-bold text-gray-700">Autorangabe</div>
<div class="text-base italic">{{- $content.ResponsibilityStmt -}}</div>
{{- end -}}
{{- if $content.Comment -}}
<div class="text-sm font-bold text-gray-700">Kommentar</div>
<div class="text-base italic">{{- $content.Comment -}}</div>
{{- end -}}
{{- if $contentAgents -}}
<div class="text-sm font-bold text-gray-700">Personen</div>
<div class="text-base">
<div class="flex flex-col">
{{- range $_, $rel := $contentAgents -}}
{{- $agent := index $agents $rel.Agent -}}
{{- if $agent -}}
<div class="font-sans w-max">
<a href="/person/{{- $agent.Id -}}" class="no-underline hover:text-slate-900">
{{- $agent.Name -}}
</a>
{{- if $agent.BiographicalData -}}
<span> ({{ $agent.BiographicalData }})</span>
{{- end -}}
</div>
{{- end -}}
{{- end -}}
</div>
</div>
{{- end -}}
{{- if $content.Annotation -}}
{{- $link := printf "%s%s" "/almanach/" $entry.MusenalmIDString -}}
<div class="text-sm font-bold text-gray-700">Anmerkung</div>
<div class="text-base">
{{- Safe (LinksAnnotation (ReplaceSlashParen $content.Annotation) $link) -}}
</div>
{{- end -}}
</div>
{{- template "_content_images_panel" (Dict
"content" $content
"entry" $entry
"csrf_token" $csrf
"is_new" $isNew
) -}}
</div>

View File

@@ -0,0 +1,58 @@
{{- $content := index . "content" -}}
{{- $entry := index . "entry" -}}
{{- $csrf := index . "csrf_token" -}}
{{- $contentTypes := index . "content_types" -}}
{{- $musenalmTypes := index . "musenalm_types" -}}
{{- $paginationValues := index . "pagination_values" -}}
{{- $agents := index . "agents" -}}
{{- $contentAgents := index . "content_agents" -}}
{{- $agentRelations := index . "agent_relations" -}}
{{- $editMode := index . "edit_mode" -}}
{{- $displayTitle := $content.PreferredTitle -}}
{{- if not $displayTitle -}}
{{- $displayTitle = $content.TitleStmt -}}
{{- end -}}
{{- if not $displayTitle -}}
{{- $displayTitle = (printf "Beitrag %d" $content.MusenalmID) -}}
{{- end -}}
<div class="mt-4" data-role="contents-detail-panel" data-edit-mode="{{ if $editMode }}1{{ else }}0{{ end }}" data-content-id="{{ $content.Id }}">
<div class="flex items-center justify-between gap-3 rounded-xs border border-slate-200 bg-stone-50 px-3 py-2">
<div class="text-sm font-semibold text-gray-800">
<span class="text-gray-500">{{ if $editMode }}Bearbeiten:{{ else }}Details:{{ end }}</span>
<span>{{ $displayTitle }}</span>
</div>
<button type="button" class="resetbutton w-auto px-3 py-1.5 text-sm" data-role="contents-detail-close">
<i class="ri-close-line"></i>
<span>Schliessen</span>
</button>
</div>
<div class="mt-2" data-role="contents-detail-body">
{{- if $editMode -}}
{{- template "_content_edit_form" (Dict
"content" $content
"content_id" $content.Id
"entry" $entry
"csrf_token" $csrf
"content_types" $contentTypes
"musenalm_types" $musenalmTypes
"pagination_values" $paginationValues
"agents" $agents
"content_agents" $contentAgents
"agent_relations" $agentRelations
"detail_target" "[data-role='contents-detail-target']"
"detail_mode" true
) -}}
{{- else -}}
{{- template "_content_view_body" (Dict
"content" $content
"entry" $entry
"csrf_token" $csrf
"agents" $agents
"content_agents" $contentAgents
"is_new" false
) -}}
{{- end -}}
</div>
</div>

View File

@@ -0,0 +1,32 @@
{{- $entry := index . "entry" -}}
{{- $contents := index . "contents" -}}
{{- $csrf := index . "csrf_token" -}}
{{- $contentTypes := index . "content_types" -}}
{{- $musenalmTypes := index . "musenalm_types" -}}
{{- $paginationValues := index . "pagination_values" -}}
{{- $agents := index . "agents" -}}
{{- $contentAgents := index . "content_agents" -}}
{{- $agentRelations := index . "agent_relations" -}}
<div class="flex flex-col gap-0.5"
data-role="contents-list"
data-insert-endpoint="/almanach/{{ $entry.MusenalmID }}/contents/insert"
data-edit-endpoint="/almanach/{{ $entry.MusenalmID }}/contents/edit/form"
data-detail-endpoint="/almanach/{{ $entry.MusenalmID }}/contents/detail"
data-order-endpoint="/almanach/{{ $entry.MusenalmID }}/contents/edit">
{{- range $_, $content := $contents -}}
{{- template "_content_item" (Dict
"content" $content
"entry" $entry
"csrf_token" $csrf
"content_types" $contentTypes
"musenalm_types" $musenalmTypes
"pagination_values" $paginationValues
"agents" $agents
"content_agents" (index $contentAgents $content.Id)
"agent_relations" $agentRelations
"open_edit" false
"is_new" false
) -}}
{{- end -}}
</div>