From 6c8c33d296f9ed180875b8ca87333aa7d2ba4c8c Mon Sep 17 00:00:00 2001 From: Josako Date: Thu, 27 Mar 2025 09:13:37 +0100 Subject: [PATCH] - Added 'Register ...' functionality to overviews. ==> No more separate menu items... --- config/agents/RAG_AGENT/1.0.0.yaml | 2 +- eveai_app/templates/document/catalogs.html | 11 +++-- .../document/document_versions_list_view.html | 10 ++-- eveai_app/templates/document/documents.html | 12 +++-- eveai_app/templates/document/processors.html | 9 ++-- eveai_app/templates/document/retrievers.html | 9 ++-- .../entitlements/view_license_tiers.html | 11 +++-- .../templates/entitlements/view_licenses.html | 8 ++-- .../templates/interaction/chat_sessions.html | 10 ++-- .../templates/interaction/specialists.html | 9 ++-- eveai_app/templates/macros.html | 2 - eveai_app/templates/navbar.html | 29 ++++------- eveai_app/templates/scripts.html | 13 ++++- eveai_app/templates/user/select_tenant.html | 2 +- eveai_app/templates/user/tenant_projects.html | 13 +++-- .../templates/user/view_tenant_domains.html | 36 +++----------- eveai_app/templates/user/view_users.html | 48 ++++--------------- eveai_app/views/document_views.py | 12 +++-- eveai_app/views/entitlements_views.py | 6 ++- eveai_app/views/interaction_views.py | 5 +- eveai_app/views/user_views.py | 20 ++++++-- nginx/static/assets/css/eveai.css | 6 +++ 22 files changed, 141 insertions(+), 142 deletions(-) diff --git a/config/agents/RAG_AGENT/1.0.0.yaml b/config/agents/RAG_AGENT/1.0.0.yaml index 37591c8..f979b7e 100644 --- a/config/agents/RAG_AGENT/1.0.0.yaml +++ b/config/agents/RAG_AGENT/1.0.0.yaml @@ -13,7 +13,7 @@ backstory: > language the context provided to you is in. You are participating in a conversation, not writing e.g. an email. Do not include a salutation or closing greeting in your answer. {custom_backstory} -full_model_name: "mistral.mistral-large-latest" +full_model_name: "mistral.mistral-small-latest" temperature: 0.3 metadata: author: "Josako" diff --git a/eveai_app/templates/document/catalogs.html b/eveai_app/templates/document/catalogs.html index 5827e43..f7ad3df 100644 --- a/eveai_app/templates/document/catalogs.html +++ b/eveai_app/templates/document/catalogs.html @@ -9,11 +9,14 @@ {% block content %}
-
+ {{ render_selectable_table(headers=["Catalog ID", "Name", "Type"], rows=rows, selectable=True, id="catalogsTable") }} -
- - +
+
+ + +
+
diff --git a/eveai_app/templates/document/document_versions_list_view.html b/eveai_app/templates/document/document_versions_list_view.html index 149bafe..7359736 100644 --- a/eveai_app/templates/document/document_versions_list_view.html +++ b/eveai_app/templates/document/document_versions_list_view.html @@ -24,7 +24,7 @@ {{ render_collapsible_section('Filter', 'Filter Options', filter_form) }}
-
+ {{ render_selectable_sortable_table( headers=["ID", "File Type", "Processing", "Processing Start", "Processing Finish", "Processing Error"], @@ -34,9 +34,11 @@ sort_by=sort_by, sort_order=sort_order ) }} -
- - +
+
+ + +
diff --git a/eveai_app/templates/document/documents.html b/eveai_app/templates/document/documents.html index ed11e6b..8dcc1dc 100644 --- a/eveai_app/templates/document/documents.html +++ b/eveai_app/templates/document/documents.html @@ -21,7 +21,7 @@ {{ render_collapsible_section('Filter', 'Filter Options', filter_form) }}
-
+ {{ render_selectable_sortable_table_with_dict_headers( headers=[ @@ -37,10 +37,12 @@ sort_by=sort_by, sort_order=sort_order ) }} -
- - - +
+
+ + + +
diff --git a/eveai_app/templates/document/processors.html b/eveai_app/templates/document/processors.html index 38b7598..a2dfeea 100644 --- a/eveai_app/templates/document/processors.html +++ b/eveai_app/templates/document/processors.html @@ -9,10 +9,13 @@ {% block content %}
-
+ {{ render_selectable_table(headers=["Processor ID", "Name", "Type", "Catalog ID"], rows=rows, selectable=True, id="retrieversTable") }} -
- +
+
+ +
+
diff --git a/eveai_app/templates/document/retrievers.html b/eveai_app/templates/document/retrievers.html index 3490552..73fadac 100644 --- a/eveai_app/templates/document/retrievers.html +++ b/eveai_app/templates/document/retrievers.html @@ -9,10 +9,13 @@ {% block content %}
-
+ {{ render_selectable_table(headers=["Retriever ID", "Name", "Type", "Catalog ID"], rows=rows, selectable=True, id="retrieversTable") }} -
- +
+
+ +
+
diff --git a/eveai_app/templates/entitlements/view_license_tiers.html b/eveai_app/templates/entitlements/view_license_tiers.html index ea922f6..503ec75 100644 --- a/eveai_app/templates/entitlements/view_license_tiers.html +++ b/eveai_app/templates/entitlements/view_license_tiers.html @@ -6,11 +6,14 @@ {% block content %} -
+ {{ render_selectable_table(headers=["ID", "Name", "Version", "Start Date", "End Date"], rows=rows, selectable=True, id="licenseTierTable") }} -
- - +
+
+ + +
+
diff --git a/eveai_app/templates/entitlements/view_licenses.html b/eveai_app/templates/entitlements/view_licenses.html index 3beda2f..1aa8c5c 100644 --- a/eveai_app/templates/entitlements/view_licenses.html +++ b/eveai_app/templates/entitlements/view_licenses.html @@ -7,10 +7,12 @@ {% block content_description %}View Licenses{% endblock %} {% block content %} -
+ {{ render_selectable_table(headers=["License ID", "Name", "Start Date", "End Date", "Active"], rows=rows, selectable=True, id="licensesTable") }} -
- +
+
+ +
diff --git a/eveai_app/templates/interaction/chat_sessions.html b/eveai_app/templates/interaction/chat_sessions.html index bee8f32..304643d 100644 --- a/eveai_app/templates/interaction/chat_sessions.html +++ b/eveai_app/templates/interaction/chat_sessions.html @@ -9,10 +9,12 @@ {% block content %}
-
- {{ render_selectable_table(headers=["ID", "Session ID", "Session Start", "Session End"], rows=rows, selectable=True, id="documentsTable") }} -
- + + {{ render_selectable_table(headers=["ID", "Session ID", "Session Start", "Session End"], rows=rows, selectable=True, id="chatSessionsTable") }} +
+
+ +
diff --git a/eveai_app/templates/interaction/specialists.html b/eveai_app/templates/interaction/specialists.html index 63d37d1..0e22d0d 100644 --- a/eveai_app/templates/interaction/specialists.html +++ b/eveai_app/templates/interaction/specialists.html @@ -9,10 +9,13 @@ {% block content %}
-
+ {{ render_selectable_table(headers=["Specialist ID", "Name", "Type"], rows=rows, selectable=True, id="specialistsTable") }} -
- +
+
+ +
+
diff --git a/eveai_app/templates/macros.html b/eveai_app/templates/macros.html index d4a3039..59996e7 100644 --- a/eveai_app/templates/macros.html +++ b/eveai_app/templates/macros.html @@ -159,8 +159,6 @@ value="{{ row[0] }}" {% if is_component_selector %} data-component-selector="true" - {% else %} - required {% endif %}> {% endif %} diff --git a/eveai_app/templates/navbar.html b/eveai_app/templates/navbar.html index 9010aee..b9a6b6c 100644 --- a/eveai_app/templates/navbar.html +++ b/eveai_app/templates/navbar.html @@ -69,46 +69,37 @@