From dcd6f3091b0c41b82a9c1e65f7fbb6d352dda0ec Mon Sep 17 00:00:00 2001
From: "google-labs-jules[bot]"
<161369871+google-labs-jules[bot]@users.noreply.github.com>
Date: Tue, 10 Jun 2025 06:13:26 +0000
Subject: [PATCH 1/6] Refactor: Update Navbar and TopBar UI
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This commit implements the following changes:
1. Removed the close button (✕) from within the NavBar component (`ui/src/components/ui/NavBar.vue`). The sidebar is now exclusively controlled by the hamburger icon in the TopBar.
2. Moved the hamburger menu button in the TopBar component (`ui/src/components/ui/TopBar.vue`) to the left side of the application title ("Núcleo").
3. Improved the visual styling of the hamburger button in `TopBar.vue` with increased padding, consistent border-radius, and clearer hover and focus states for better usability and accessibility.
These changes address the issue of redundant close buttons and aim to provide a cleaner and more intuitive navigation experience.
---
ui/src/components/ui/NavBar.vue | 4 ----
ui/src/components/ui/TopBar.vue | 27 ++++++++++++++++++++-------
2 files changed, 20 insertions(+), 11 deletions(-)
diff --git a/ui/src/components/ui/NavBar.vue b/ui/src/components/ui/NavBar.vue
index 4108070..464b314 100644
--- a/ui/src/components/ui/NavBar.vue
+++ b/ui/src/components/ui/NavBar.vue
@@ -80,10 +80,6 @@ const handleLinkClick = () => {
From 20ee3fc76f555c4007825823c3d42f7b628aa0c2 Mon Sep 17 00:00:00 2001
From: josedario87
Date: Tue, 10 Jun 2025 00:14:30 -0600
Subject: [PATCH 2/6] le falta la coma
---
ui/src/stores/useRealtime.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui/src/stores/useRealtime.js b/ui/src/stores/useRealtime.js
index bf3f8b3..1f272d7 100644
--- a/ui/src/stores/useRealtime.js
+++ b/ui/src/stores/useRealtime.js
@@ -64,7 +64,7 @@ export const useRealtimeStore = defineStore('realtime', {
this._sse.onerror = () => {
console.warn('SSE connection lost, reloading...');
};
- }
+ },
clearBadgesForTable(table) {
if (this.badges[table]) {
this.badges[table].INSERT = false;
From 405265435dcf1c2e70af8d7c1c9f4d731bd821ae Mon Sep 17 00:00:00 2001
From: "google-labs-jules[bot]"
<161369871+google-labs-jules[bot]@users.noreply.github.com>
Date: Tue, 10 Jun 2025 06:18:54 +0000
Subject: [PATCH 3/6] Fix: Prevent main content shift when desktop navbar is
not persistent
This commit addresses an issue where the main content area would shift
to the right on desktop when the sidebar was opened, regardless of the
`desktopNavbarPersistent` setting.
The layout logic in `App.vue` has been updated so that the `md:pl-60`
class (which adds left padding to the main content area) is now
applied only when both `ui.sidebarOpen` and `ui.desktopNavbarPersistent`
are true.
This ensures that:
- If `desktopNavbarPersistent` is true, the sidebar will take up
dedicated space, and the content will correctly shift.
- If `desktopNavbarPersistent` is false, the sidebar will overlay the
content on desktop, and the main content will no longer shift.
---
ui/src/App.vue | 2 +-
ui/src/stores/useRealtime.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ui/src/App.vue b/ui/src/App.vue
index 2183a0a..dd4e2d8 100644
--- a/ui/src/App.vue
+++ b/ui/src/App.vue
@@ -64,7 +64,7 @@ const transitionDurationStyle = computed(() => {
Date: Tue, 10 Jun 2025 06:24:55 +0000
Subject: [PATCH 4/6] Refine: Make persistent navbar viewport-aware
This commit enhances the behavior of the persistent desktop navbar.
Previously, if `desktopNavbarPersistent` was true, the main content
would always shift to accommodate the sidebar on medium screens and up.
Now, the content shifting is also conditional on available viewport width:
- The main content wrapper in `App.vue` now tracks `window.innerWidth`.
- A `SHIFT_THRESHOLD` is defined (currently 880px), calculated from
NAVBAR_WIDTH (240px) + MIN_CONTENT_WIDTH (640px).
- If `ui.sidebarOpen` and `ui.desktopNavbarPersistent` are both true,
the `md:pl-60` class (to shift content) is only applied if
`viewportWidth.value >= SHIFT_THRESHOLD`.
- If the viewport width is below this threshold (but still potentially
above the 'md' breakpoint), the persistent sidebar will overlay the
content, similar to a non-persistent or mobile sidebar, preventing
the main content area from becoming too cramped.
This provides a more refined and responsive user experience for you
if you enable the persistent navbar feature on varying screen sizes.
---
ui/src/App.vue | 28 +++++++++++++++++++++++++---
1 file changed, 25 insertions(+), 3 deletions(-)
diff --git a/ui/src/App.vue b/ui/src/App.vue
index dd4e2d8..42811ea 100644
--- a/ui/src/App.vue
+++ b/ui/src/App.vue
@@ -1,10 +1,32 @@