From ee4c8b5fe2c5448c4c3a045403db9a5d234eb0b9 Mon Sep 17 00:00:00 2001 From: Lucie Germain <116178070+lucie-germain@users.noreply.github.com> Date: Thu, 19 Dec 2024 17:52:44 +0100 Subject: [PATCH] Merge pull request #22630 from overleaf/td-ds-nav-system-messages Add system messages to DS nav version of project dashboard GitOrigin-RevId: 85830d58242300a40148190f8a18204666a3065c --- .../components/project-list-ds-nav.tsx | 114 +++++++++--------- .../pages/project-list-ds-nav.scss | 22 ++-- 2 files changed, 74 insertions(+), 62 deletions(-) diff --git a/services/web/frontend/js/features/project-list/components/project-list-ds-nav.tsx b/services/web/frontend/js/features/project-list/components/project-list-ds-nav.tsx index e2a9f87fd7..95cfaa2853 100644 --- a/services/web/frontend/js/features/project-list/components/project-list-ds-nav.tsx +++ b/services/web/frontend/js/features/project-list/components/project-list-ds-nav.tsx @@ -18,6 +18,7 @@ import getMeta from '@/utils/meta' import DefaultNavbar from '@/features/ui/components/bootstrap-5/navbar/default-navbar' import FatFooter from '@/features/ui/components/bootstrap-5/footer/fat-footer' import SidebarDsNav from '@/features/project-list/components/sidebar/sidebar-ds-nav' +import SystemMessages from '@/shared/components/system-messages' export function ProjectListDsNav() { const navbarProps = getMeta('ol-navbar') @@ -59,66 +60,71 @@ export function ProjectListDsNav() { />
-
-
- {error ? : ''} - -
- -
-
- {selectedProjects.length === 0 ? ( +
+
+
+ {error ? : ''} + +
+ +
+
+ {selectedProjects.length === 0 ? ( + + ) : ( + + )} +
+
- ) : ( - - )} +
-
- +
+
+ + + + + +
+ {/* Omit the survey card in mobile view for now */} +
+
+
+ + +
+
+
+ + {tableTopArea} + + +
+
+
-
- - - - - -
- {/* Omit the survey card in mobile view for now */} -
-
-
- - -
-
-
- - {tableTopArea} - - -
-
- -
-
+ +
+
+
-
diff --git a/services/web/frontend/stylesheets/bootstrap-5/pages/project-list-ds-nav.scss b/services/web/frontend/stylesheets/bootstrap-5/pages/project-list-ds-nav.scss index 433b6a541c..f9126d17b0 100644 --- a/services/web/frontend/stylesheets/bootstrap-5/pages/project-list-ds-nav.scss +++ b/services/web/frontend/stylesheets/bootstrap-5/pages/project-list-ds-nav.scss @@ -249,16 +249,22 @@ } } - .project-ds-nav-content { + .project-ds-nav-content-and-messages { flex-grow: 1; - overflow-y: auto; - position: relative; - background-color: var(--bg-light-secondary); + display: flex; + flex-direction: column; - @include media-breakpoint-up(md) { - border-top-left-radius: var(--border-radius-large); - border-left: 1px solid var(--border-divider); - border-top: 1px solid var(--border-divider); + .project-ds-nav-content { + flex-grow: 1; + overflow-y: auto; + position: relative; + background-color: var(--bg-light-secondary); + + @include media-breakpoint-up(md) { + border-top-left-radius: var(--border-radius-large); + border-left: 1px solid var(--border-divider); + border-top: 1px solid var(--border-divider); + } } } }