Sprint 12+13: Tagebuch Day-One-Redesign, Notiz-Feature, Icon-Fixes, SW by-v405
Tagebuch:
- Day-One-Listenansicht: Wochentag + Tageszahl + Meta-Zeile (Zeit/Ort/Wetter)
- 4 Ansichten: Liste, Medien-Mosaik, Kalender (mit Sprungbuttons), Karte (GPS-Marker)
- Detail-Ansicht inline im Content-Bereich (kein Fullscreen-Overlay mehr)
- Hero-Bild vollständig sichtbar (object-fit:contain), Lightbox mit Safe-Area
- 2-Spalten-Layout Desktop: Text + Leaflet-Karte + POI-Liste
- EXIF-GPS-Extraktion bei Foto-Upload, historisches Wetter via Archive-API
- NoteStation-Import: Fotos in diary_media (80 Einträge migriert, 94 Medien)
- Stats-Endpoints: /diary/stats, /diary/calendar, /diary/locations
Notiz-Feature:
- Generische notes-Tabelle (parent_type + parent_id + meta_json)
- 📝-Button in 8 Bereichen, Notizblock-Seite mit KI-Analyse
- KI-Toggle in Einstellungen, notes_ki_enabled in User-Profil
Icons & Design:
- fill:currentColor Fix für welcome/onboarding/friends.js
- --c-icon Variable, --c-text-muted Dark Mode aufgehellt
- 15+ neue Phosphor-Icons aus lokaler Kopie
- CSS Network-First im SW, Cache-Control-Middleware
Infrastruktur:
- Wiki-Anreicherungs-Scheduler-Jobs entfernt (abgeschlossen)
- auth.py: notes_ki_enabled + is_social_media im User-Response
This commit is contained in:
parent
95f91fdc00
commit
553e9e7854
35 changed files with 4558 additions and 370 deletions
|
|
@ -155,9 +155,9 @@ async def import_notestation(
|
|||
(entry_id, dog_id),
|
||||
)
|
||||
|
||||
# Erstes Bild speichern
|
||||
# Anhänge in diary_media speichern (statt veraltetem media_url-Feld)
|
||||
attachments = note.get("attachment") or {}
|
||||
media_url = None
|
||||
first = True
|
||||
for att in attachments.values():
|
||||
md5 = att.get("md5", "")
|
||||
mime = att.get("type", "image/jpeg")
|
||||
|
|
@ -165,13 +165,11 @@ async def import_notestation(
|
|||
continue
|
||||
media_url = _save_image_from_zip(zf, md5, mime)
|
||||
if media_url:
|
||||
break
|
||||
|
||||
if media_url:
|
||||
conn.execute(
|
||||
"UPDATE diary SET media_url=? WHERE id=?",
|
||||
(media_url, entry_id),
|
||||
)
|
||||
conn.execute(
|
||||
"INSERT INTO diary_media (diary_id, url, media_type, sort_order, is_cover) VALUES (?,?,?,?,?)",
|
||||
(entry_id, media_url, "image", 0 if first else 1, 1 if first else 0),
|
||||
)
|
||||
first = False
|
||||
|
||||
imported += 1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue