feat: projekte und suche im backend

Projekte pro Benutzer mit Name und Farbe, Clips optional einem Projekt
zugeordnet. Löschen eines Projekts verschiebt seine Clips nach "ohne
Projekt". Clip-Liste filtert nach Projekt und sucht Teiltexte in Titel
und Inhalt, unabhängig von Groß-/Kleinschreibung (auch Umlaute).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dbildhauerandClaude Opus 5.5 committed 2026-10-25 13:15:05 +01:00
1 parent 848cff35b3
commit ff2860f7be
13 files changed
+711 -9

No files matched your search

+3
View File
@@ -14,6 +14,7 @@ class ClipCreate(BaseModel):
content: str = Field(max_length=_CONTENT_MAX)
language: str | None = Field(default=None, max_length=32)
pinned: bool = False
project_id: int | None = None
class ClipUpdate(BaseModel):
@@ -24,6 +25,7 @@ class ClipUpdate(BaseModel):
content: str | None = Field(default=None, max_length=_CONTENT_MAX)
language: str | None = Field(default=None, max_length=32)
pinned: bool | None = None
project_id: int | None = None
version: int | None = Field(default=None, description="Expected version for conflict check")
@@ -36,6 +38,7 @@ class ClipOut(BaseModel):
content: str
language: str | None
pinned: bool
project_id: int | None
version: int
created_at: datetime
updated_at: datetime