From a1e35e98f3871e872224bc8e94cf284453827dae Mon Sep 17 00:00:00 2001 From: OpenClaw Bot Date: Sat, 21 Mar 2026 15:41:12 +0100 Subject: [PATCH] feat(diarization-ui): restyle library to project-list style table with toolbar filters --- app.py | 59 ++++++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 39 insertions(+), 20 deletions(-) diff --git a/app.py b/app.py index 307aa2f..2c2126e 100644 --- a/app.py +++ b/app.py @@ -517,34 +517,53 @@ def library(project_id: Optional[str] = None, q_title: str = "", q_content: str p_opts = "" + "".join( [f"" for p in projects] ) - items = "".join( + rows = "".join( [ - f"
#{d['id']} [{d['kind']}] {d['title']}
{d['project']} · {d['created_at']}
" - f"
" - f"" + f"" + f"#{d['id']}" + f"{d['title']}" + f"{d['kind']}" + f"{d['project']}" + f"{d['created_at']}" + f"" + f"👁️" f"⬇️" - f"✏️" - f"📁" - f"🗑️" - f"
" + f"✏️" + f"📁" + f"🗑️" + f"" + f"" for d in docs ] ) project_js = json.dumps([{"value": p["id"], "label": p["name"]} for p in projects], ensure_ascii=False) body = f""" -

Datenbank / Dokumente

-
-
- - -
-
- - - -
+ +

Projekte · Dokumente

+
Ansicht im Projektlisten-Stil mit Schnellaktionen.
+ + + + + + +
+ {len(docs)} Treffer
-{items or '

Keine Einträge.

'} +
+ + + {rows or ""} +
IDTitelTypProjektErstelltAktionen
Keine Einträge.
+