From bd818f5228d333812d4c2c1e694c75b9c02751f2 Mon Sep 17 00:00:00 2001 From: team 1 Date: Sun, 5 Apr 2026 19:37:50 +0200 Subject: [PATCH] optimize ux --- public/assets/styles/base.css | 15 ++- public/index.html | 2 +- src/Agent/PromptBuilder.php | 3 +- templates/admin/base.html.twig | 16 +-- templates/admin/dashboard/index.html.twig | 18 +-- templates/admin/document/index.html.twig | 4 +- .../admin/document/new_version.html.twig | 2 +- templates/admin/document/show.html.twig | 4 +- templates/admin/document_tags/edit.html.twig | 12 +- templates/admin/ingest_profile/list.html.twig | 100 +++++++------- templates/admin/model_config/list.html.twig | 81 ++++++------ .../admin/system/agent_overview.html.twig | 29 +++-- templates/admin/system/prompt.html.twig | 73 ++++++----- templates/admin/tag/assign.html.twig | 113 +++++++++------- templates/admin/tag/index.html.twig | 122 +++++++++--------- 15 files changed, 323 insertions(+), 271 deletions(-) diff --git a/public/assets/styles/base.css b/public/assets/styles/base.css index 7d2ef53..16b5b4a 100644 --- a/public/assets/styles/base.css +++ b/public/assets/styles/base.css @@ -39,6 +39,12 @@ form, input, button, textarea { font-size: 0.85rem !important; } +input, textarea,select { + background-color: #121a25 !important; + color: #fff !important; + border-color: #020617 !important; +} + .container { max-width: 900px; margin: 0 auto; @@ -47,6 +53,11 @@ form, input, button, textarea { height: calc(100vh - 4rem); } +::placeholder { + color: #556070 !important; + opacity: .5; /* wichtig v. a. für Firefox */ + } + .header { display: flex; align-items: center; @@ -62,7 +73,7 @@ form, input, button, textarea { flex: 1; overflow-y: auto; padding: 1rem; - background: var(--panel); + background: #121a25; border: 1px solid var(--border); border-radius: 6px; } @@ -81,7 +92,7 @@ form, input, button, textarea { } .message.assistant .bubble { - background: var(--assistant); + background: #16202f; border: 1px solid var(--border); } diff --git a/public/index.html b/public/index.html index fd2fc0a..eea4df2 100644 --- a/public/index.html +++ b/public/index.html @@ -14,7 +14,7 @@ - +
diff --git a/src/Agent/PromptBuilder.php b/src/Agent/PromptBuilder.php index e303c0a..8029020 100644 --- a/src/Agent/PromptBuilder.php +++ b/src/Agent/PromptBuilder.php @@ -47,7 +47,8 @@ final readonly class PromptBuilder throw new \RuntimeException('No active system prompt configured.'); } - $activeSystemPrompt = str_replace('{%now%}', $now, $activePrompt->getContent()); + $activeSystemPrompt = str_replace('{% now %}', $now, $activePrompt->getContent()); + $systemBlock = "SYSTEM:\n" . $activeSystemPrompt; // ------------------------------------------------------------ diff --git a/templates/admin/base.html.twig b/templates/admin/base.html.twig index e378f67..25eb978 100644 --- a/templates/admin/base.html.twig +++ b/templates/admin/base.html.twig @@ -57,7 +57,7 @@ - Dashboard + Systemübersicht
@@ -81,7 +81,7 @@ - Wissensbasis (Chunk-Index) + Wissensbasis (Chunk-Index)
@@ -97,7 +97,7 @@ - Indexierungsprofile (Ingest) + Indexierungsprofile (Ingest)
@@ -108,7 +108,7 @@ - LLM-Setup (Parameter) + LLM-Setup (Parameter)
@@ -117,7 +117,7 @@ - How-To & Leitfäden + How-To & Leitfäden
@@ -125,15 +125,15 @@
- Indexierungs-Log (Ingest Jobs) + Indexierungs-Log (Ingest Jobs) - Vector-Log Python + Vector-Log Python - System-Logs + System-Logs diff --git a/templates/admin/dashboard/index.html.twig b/templates/admin/dashboard/index.html.twig index 8ab374c..ae37501 100644 --- a/templates/admin/dashboard/index.html.twig +++ b/templates/admin/dashboard/index.html.twig @@ -10,7 +10,7 @@
-

Systemübersicht

+

Systemübersicht

RAG Enterprise
@@ -34,7 +34,7 @@
-
Chunk-Vektor
+
Chunk-Vektor
{% if vectorHealth is defined %}

@@ -65,7 +65,7 @@
-
Tag-Vektor
+
Tag-Vektor
{% if tagVectorHealth is defined %}

@@ -88,7 +88,7 @@
-
Wissenskapazität
+
Wissenskapazität

{{ chunkCount|number_format(0, ',', '.') }} @@ -121,7 +121,7 @@
-
System-Governance
+
System-Governance
Benutzer
@@ -148,7 +148,7 @@
-
Chunk-Vektor-Details
+
Chunk-Vektor-Details
NDJSON-Chunks
@@ -168,7 +168,7 @@
-
Tag-Vektor-Details
+
Tag-Vektor-Details
NDJSON-Tags
@@ -188,7 +188,7 @@
-
Indexierung (Ingest Jobs)
+
Indexierung (Ingest Jobs)
Erstellt den kompletten Wissensindex neu. @@ -216,7 +216,7 @@
-
Kritische Systemoperationen
+
Kritische Systemoperationen
Entfernt alle Dokumente, Versionen, Indizes und Jobs. diff --git a/templates/admin/document/index.html.twig b/templates/admin/document/index.html.twig index d37dd40..d9999f0 100644 --- a/templates/admin/document/index.html.twig +++ b/templates/admin/document/index.html.twig @@ -5,7 +5,7 @@ {% block body %} -
+
diff --git a/templates/admin/document/show.html.twig b/templates/admin/document/show.html.twig index 5ca7314..086b8c2 100644 --- a/templates/admin/document/show.html.twig +++ b/templates/admin/document/show.html.twig @@ -19,7 +19,7 @@ {# Dokument-Meta #} {# ============================= #} -
+
@@ -79,7 +79,7 @@ {% else %}
-
+
diff --git a/templates/admin/document_tags/edit.html.twig b/templates/admin/document_tags/edit.html.twig index 0c8ecbb..b42b849 100644 --- a/templates/admin/document_tags/edit.html.twig +++ b/templates/admin/document_tags/edit.html.twig @@ -8,7 +8,7 @@ {# Tag-Rebuild Status (Echte Live-Anzeige) #} {# ============================================= #} -
+