feat: replace global header with footer, move utility icons to sidebar - #1706
feat: replace global header with footer, move utility icons to sidebar#1706LeeSkies wants to merge 10 commits into
Conversation
…idebar - Remove Header.tsx + Header.css (global top header) - Create AppFooter.tsx with copyright (hidden on mobile) - Switch all header icon buttons to MUI IconButton - Add floating hamburger on mobile in layout/index.tsx - Move Share, Language, Theme, Bug, GitHub icons into Desktop Sider footer and mobile Drawer extra header - Remove page-level footer from HomePage.tsx - Add sider-inner/sider-scroll/sider-footer layout classes - Fix menu item spacing and collapsed state - Remove DonationButton from footer (accessible via sidebar menu)
|
Not sure why the ci fails here tbh, doest seem to be a change of mine |
About the utility icons:I think some of them should be easily accessible (theme, language, copy link) - but now for a computer they are at the bottom of the sidebar - so the user must scroll all the way down just to see that they even exists. About the footer:I agree that we should have one. I had similar idea about the same time #1700. A few ideasAs a reference lets look for example how Github has done it. And they also have a footer with some common but not quick actions (terms, contact, etc.) it also scrollable with the page, like their header:
We may also use the footer for similar things: And github also have another thing that we don't have: |
|
@arielvino Most of your observations i agree with, didn't wanna change too much in one pr. First, the goal was to free up some real estate; having a header just for action icons, most of them secondary actions or utilities, is sub optimal. GH is a great example for some UI components, not all, but in this case there are two distinctions: a. Our footer was for some reason applying only to the main page, not the other routes, which is why i tried preserving the original look, by keeping it at same level, at least till o know the intent behind it better. The point of my first PRs here as u could probably see, was to make the app a bit more easy to look at (no offense) without changing too much, since i wasnt familiar with the contribution guidelines yet. #Revised suggestion then
Thoughts? |
|
Yeah I familiar with that too... I joined here only few months ago, and at the beginning I was careful to preserve the existing behavior as much as I could... Sometimes indeed there is a real reason behind something that looks bad. So feel free to suggest any change... IconI now see at least 3:
|
|
Alright, what do you think about the rest of the suggestions I raised there then? |
IconI agree we should have one modern icon with meaningful representation and use it everywhere, as a recognizable branding. Horizontal menuI think it better to have the individual pages easily visible, rather than exposing only the group headers. Copy llink buttonI added it some time ago because the URL bar required maintain a continuous syncing on every change and it had some bugs. Doable, but I thought it simpler that way, and also a bit encouraging people to share links by making it an intentional button. CommunityMaybe add a Community portal separate from the main portal? where we can introduce all of: |



Goal
Move persistent utility controls out of the global top header and into the sidebar/drawer chrome, leaving the main content area less visually crowded while keeping share, language, theme, bug report, and GitHub actions available from the app shell.
Changes
Header.tsx+Header.css)AppFooter.tsxwith copyright text (hidden on mobile)HomePage.tsxIconButton size="small"extraarea next to the close buttonIconButtonon mobileDonationButtonfrom the utility footer because donation remains available from the sidebar menuTesting
tests/realtimemap.spec.tsby waiting for the map, popup, and tooltip loading state before interacting with the geek-info controlsnpx playwright test tests/realtimemap.spec.ts --project=chromiumnpx playwright test tests/singlelineTest.spec.ts --project=chromium --grep "should show tooltip after clicking on map point"