From 5ee29db3e7f4a1989f0a1ad5e7e7ec604a0d44be Mon Sep 17 00:00:00 2001 From: Dan <39170265+chillenberger@users.noreply.github.com> Date: Thu, 18 Jul 2024 10:28:22 -0600 Subject: [PATCH 1/8] test change --- pgml-dashboard/src/api/chatbot.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pgml-dashboard/src/api/chatbot.rs b/pgml-dashboard/src/api/chatbot.rs index 288b1df43..cb214e34f 100644 --- a/pgml-dashboard/src/api/chatbot.rs +++ b/pgml-dashboard/src/api/chatbot.rs @@ -30,9 +30,9 @@ impl<'r> FromRequest<'r> for User { .map(|c| User { chatbot_session_id: c.value().to_string(), }) - .or_forward(Status::Unauthorized) + .or_forward(Status::Unauthorized) } -} +} #[derive(Serialize, Deserialize, PartialEq, Eq)] enum ChatRole { From 2358a9b25c653fdfd75cebdd12147b394120a8d8 Mon Sep 17 00:00:00 2001 From: Dan <39170265+chillenberger@users.noreply.github.com> Date: Fri, 19 Jul 2024 11:13:57 -0600 Subject: [PATCH 2/8] fix docs left nav --- pgml-cms/pgml-cms | 1 + pgml-dashboard/src/api/chatbot.rs | 4 ++-- pgml-dashboard/src/components/cms/index_link/index_link.scss | 4 ++++ .../src/components/navigation/left_nav/docs/docs.scss | 4 ++++ .../src/components/navigation/left_nav/docs/template.html | 3 ++- static/css/modules.scss | 3 +++ 6 files changed, 16 insertions(+), 3 deletions(-) create mode 120000 pgml-cms/pgml-cms create mode 100644 static/css/modules.scss diff --git a/pgml-cms/pgml-cms b/pgml-cms/pgml-cms new file mode 120000 index 000000000..f76a7eae8 --- /dev/null +++ b/pgml-cms/pgml-cms @@ -0,0 +1 @@ +/Users/danielillenberger/Projects/postgresml/pgml-cms \ No newline at end of file diff --git a/pgml-dashboard/src/api/chatbot.rs b/pgml-dashboard/src/api/chatbot.rs index cb214e34f..288b1df43 100644 --- a/pgml-dashboard/src/api/chatbot.rs +++ b/pgml-dashboard/src/api/chatbot.rs @@ -30,9 +30,9 @@ impl<'r> FromRequest<'r> for User { .map(|c| User { chatbot_session_id: c.value().to_string(), }) - .or_forward(Status::Unauthorized) + .or_forward(Status::Unauthorized) } -} +} #[derive(Serialize, Deserialize, PartialEq, Eq)] enum ChatRole { diff --git a/pgml-dashboard/src/components/cms/index_link/index_link.scss b/pgml-dashboard/src/components/cms/index_link/index_link.scss index aad00b859..c3f6a3dc6 100644 --- a/pgml-dashboard/src/components/cms/index_link/index_link.scss +++ b/pgml-dashboard/src/components/cms/index_link/index_link.scss @@ -13,4 +13,8 @@ div[data-controller="cms-index-link"] { text-decoration: underline; text-underline-offset: 2px; } + + .material-symbols-outlined { + user-select: none; + } } diff --git a/pgml-dashboard/src/components/navigation/left_nav/docs/docs.scss b/pgml-dashboard/src/components/navigation/left_nav/docs/docs.scss index 2b3976150..ad3b22233 100644 --- a/pgml-dashboard/src/components/navigation/left_nav/docs/docs.scss +++ b/pgml-dashboard/src/components/navigation/left_nav/docs/docs.scss @@ -35,6 +35,10 @@ div[data-controller="navigation-left-nav-docs"] { box-sizing: border-box; width: 100%; } + + .doc-leftnav-inner { + width: 100%; + } .show-scroll { padding-right: 25px; diff --git a/pgml-dashboard/src/components/navigation/left_nav/docs/template.html b/pgml-dashboard/src/components/navigation/left_nav/docs/template.html index 06459e291..84a109c0b 100644 --- a/pgml-dashboard/src/components/navigation/left_nav/docs/template.html +++ b/pgml-dashboard/src/components/navigation/left_nav/docs/template.html @@ -6,6 +6,7 @@ "guides" => "menu_book", "resources" => "school", "introduction" => "list_alt", + "cloud" => "cloud", _ => "dashboard", } } @@ -26,7 +27,7 @@ <% if !mobile { %>