Add a "needs review" flag with a sidebar filter
Links can be bookmarked for a later look via a toggle button on the card (🏷️/🔖), shown with a yellow border while flagged. A new sidebar section "Merkliste" links to /?review=1, filtering to just the flagged links; the count updates live via the existing facets query. Since the project has no migration framework, add a minimal startup check that ALTER TABLEs in the needs_review column for existing SQLite databases (create_all only creates missing tables). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -37,6 +37,7 @@ class Link(Base):
|
||||
tags: Mapped[str] = mapped_column(Text, default="[]") # JSON-Liste
|
||||
embedding: Mapped[str] = mapped_column(Text, default="") # JSON-Liste (Vektor)
|
||||
status: Mapped[str] = mapped_column(String(20), default="ok")
|
||||
needs_review: Mapped[bool] = mapped_column(default=False, index=True)
|
||||
created_at: Mapped[datetime] = mapped_column(DateTime, default=utcnow, index=True)
|
||||
|
||||
user: Mapped["User"] = relationship(back_populates="links")
|
||||
|
||||
Reference in New Issue
Block a user