-
Notifications
You must be signed in to change notification settings - Fork 0
Responsive navigation container #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
18165d9
to
32c9e3f
Compare
2f609aa
to
8e67b85
Compare
a70bf05
to
2b455dc
Compare
8e67b85
to
a481f3e
Compare
WalkthroughAdds a new stateful Navigation component with responsive styles and Storybook stories; re-exports Navigation from the root index; updates Header and PageLayout to wrap child elements individually; adds a Sass border mixin; and adds a FleshedOut PageLayout story demonstrating the new Navigation. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User
participant Header
participant Navigation
participant DOM
rect #e6f2ff
Header->>Navigation: mount(initialState)
Navigation->>DOM: render nav.navigation with id, aria-expanded, aria-controls
Navigation->>DOM: render .navigation__elements (hidden if closed)
end
User->>Navigation: click toggle
Navigation->>Navigation: toggle menuState
Navigation->>DOM: update class (navigation--open/--closed) and aria-hidden
DOM-->>User: elements shown/hidden
opt Header composition
Header->>DOM: render per-element wrappers for each element
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests
Comment |
2b455dc
to
c76fb66
Compare
a481f3e
to
39620f5
Compare
39620f5
to
50cd62d
Compare
✅ Deploy Preview for determinate-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
4ceada5
to
fc760de
Compare
fc760de
to
aee20be
Compare
1bd34df
to
c234c6c
Compare
c234c6c
to
d201734
Compare
d201734
to
5bbc07d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
♻️ Duplicate comments (1)
src/PageLayout/PageLayout.stories.tsx (1)
73-73
: Add a key to the single pane element (fixes Biome error).React array child needs a stable key.
- panes: [<Placeholder height="3em" label="Pane 1" />], + panes: [<Placeholder key="pane-1" height="3em" label="Pane 1" />],
🧹 Nitpick comments (1)
src/PageLayout/PageLayout.stories.tsx (1)
56-64
: Avoid Storybook hash navigation jumps.Anchors with href="#" can cause unwanted page jumps in Storybook; prevent default on click.
- <a key="docs" href="#"> + <a key="docs" href="#" onClick={(e) => e.preventDefault()}> Docs </a>, - <a key="flakes" href="#"> + <a key="flakes" href="#" onClick={(e) => e.preventDefault()}> Flakes </a>, - <a key="orgs" href="#"> + <a key="orgs" href="#" onClick={(e) => e.preventDefault()}> Orgs </a>,
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (7)
src/Header/index.tsx
(1 hunks)src/Navigation/Navigation.stories.tsx
(1 hunks)src/Navigation/index.scss
(1 hunks)src/Navigation/index.tsx
(1 hunks)src/PageLayout/PageLayout.stories.tsx
(2 hunks)src/PageLayout/index.tsx
(1 hunks)src/index.ts
(1 hunks)
🚧 Files skipped from review as they are similar to previous changes (6)
- src/index.ts
- src/Navigation/index.tsx
- src/Header/index.tsx
- src/PageLayout/index.tsx
- src/Navigation/index.scss
- src/Navigation/Navigation.stories.tsx
🧰 Additional context used
🧬 Code graph analysis (1)
src/PageLayout/PageLayout.stories.tsx (1)
src/Placeholder/index.tsx (1)
Placeholder
(9-29)
🪛 Biome (2.1.2)
src/PageLayout/PageLayout.stories.tsx
[error] 73-73: Missing key property for this element in iterable.
The order of the items may change, and having a key can help React identify which item was moved.
Check the React documentation.
(lint/correctness/useJsxKeyInIterable)
🔇 Additional comments (1)
src/PageLayout/PageLayout.stories.tsx (1)
5-8
: Imports look correct for the new story usage.Header, DetSysIcon, ColorSchemeToggle, and Navigation are all used below. No issues.
Summary by CodeRabbit
New Features
Style
Documentation
Refactor