Skip to content

feat: Add option to hide navigation elements#1251

Merged
lusergit merged 1 commit intoedgehog-device-manager:mainfrom
JasminaPiric:hide-sidebar
Mar 9, 2026
Merged

feat: Add option to hide navigation elements#1251
lusergit merged 1 commit intoedgehog-device-manager:mainfrom
JasminaPiric:hide-sidebar

Conversation

@JasminaPiric
Copy link
Contributor

@JasminaPiric JasminaPiric commented Feb 26, 2026

Add option to hide navigation elements

  • Add hide-navigation-elements.sh entrypoint script that patches data-hide-navigation-elements in index.html at container startup
  • Register script in frontend Dockerfile under /docker-entrypoint.d/
  • Add data-hide-navigation-elements="false" attribute to index.html meta tag
  • Export hideNavigationElements constant from api/index.ts
  • Read hideNavigationElements in App.tsx to conditionally render the sidebar, topbar, and footer
  • Expose HIDE_NAVIGATION_ELEMENTS env var in docker-compose.yml

Checklist

  • I have read the CONTRIBUTING.md
  • I have added tests that prove my fix is effective or that my feature works
  • I have added or updated documentation (if appropriate)

Further Comments (optional)

Screenshots / Demos (optional)

SECO_GARAGE_MODE=true
image

@JasminaPiric JasminaPiric force-pushed the hide-sidebar branch 3 times, most recently from adcafe3 to e0dbfe2 Compare February 27, 2026 13:48
@JasminaPiric JasminaPiric changed the base branch from main to release-0.12 February 27, 2026 14:08
@JasminaPiric JasminaPiric changed the title Temporarily commented out Sidebar, Topbar and Footer Add SECO-GARAGE-MODE support Mar 3, 2026
@JasminaPiric JasminaPiric changed the title Add SECO-GARAGE-MODE support feat: Add SECO-GARAGE-MODE support Mar 3, 2026
@JasminaPiric JasminaPiric added the frontend This issue is relative to the Edgehog Frontend label Mar 3, 2026
@JasminaPiric JasminaPiric marked this pull request as ready for review March 3, 2026 13:40
@JasminaPiric JasminaPiric changed the title feat: Add SECO-GARAGE-MODE support feat: Add SECO_GARAGE_MODE support Mar 3, 2026
@JasminaPiric JasminaPiric force-pushed the hide-sidebar branch 2 times, most recently from 5297107 to 7a78aa4 Compare March 3, 2026 14:08
@JasminaPiric JasminaPiric changed the base branch from release-0.12 to main March 3, 2026 14:09
@JasminaPiric JasminaPiric changed the title feat: Add SECO_GARAGE_MODE support feat: Add HIDE_NAVIGATION_ELEMENTS variable Mar 4, 2026
@JasminaPiric JasminaPiric changed the title feat: Add HIDE_NAVIGATION_ELEMENTS variable feat: Add option to hide navigation elements Mar 4, 2026
@JasminaPiric JasminaPiric force-pushed the hide-sidebar branch 2 times, most recently from 49f414d to 77c7ad1 Compare March 5, 2026 09:07
- Add hide-navigation-elements.sh entrypoint script that patches
  data-hide-navigation-elements in index.html at container startup
- Register script in frontend Dockerfile under /docker-entrypoint.d/
- Add data-hide-navigation-elements="false" attribute to index.html
meta tag
- Export hideNavigationElements constant from api/index.ts
- Read hideNavigationElements in App.tsx to conditionally render the
sidebar, topbar, and footer
- Expose HIDE_NAVIGATION_ELEMENTS env var in docker-compose.yml

Signed-off-by: Jasmina <jasmina.piric@secomind.com>
Copy link
Collaborator

@lusergit lusergit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 👍 👍

@lusergit lusergit merged commit 1e728ad into edgehog-device-manager:main Mar 9, 2026
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend This issue is relative to the Edgehog Frontend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants