feat(swa): add sidebar navigation to group sections#59
Closed
Ryback2501 wants to merge 1 commit into
Closed
Conversation
Owner
Author
|
Reopening from correctly-named branch feature/swa-sidebar-nav (branch-name gate requires the feature/ prefix). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
SWA (
swa/)index.html— add a left sidebar rail with four buttons, each an inline single-<path>SVG icon (User, Relays, Chats, Feeds), wrapped with<main>in anapp-shell. Group the panels into four.sectioncontainers: User (Identity + Profile + Following), Relays, Chats (Direct Messages), Feeds (Post + Feed). The Following panel was moved up to sit with the User group.style.css— lay out the sidebar rail beside the content via.app-shell; add.sidebar/.sidebar-btn(hover + active states) and.sectionstyles;mainnow flexes within the shell.navigation.js— new pure module: section keys, default section, andresolveSectionto pick a valid active section (with fallback).navigation.test.js— unit tests forresolveSectionand the default-section invariant.app.js— wire icon clicks to show one section and mark its button active; show the sidebar only when logged in and reset to the default section on logout.Test plan