Skip to content
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

fix: Sidenav selection #831

Merged
merged 2 commits into from
Sep 22, 2021
Merged

fix: Sidenav selection #831

merged 2 commits into from
Sep 22, 2021

Conversation

bryans99
Copy link
Collaborator

Tabs in sidenav were not being synced with history. Now if tab selected,
history is updated. If page is reloaded, tabs are synced to current
history. If link is clicked that updates sidenav panel, panel is updated
accordingly.

Tabs in sidenav were not being synced with history. Now if tab selected,
history is updated. If page is reloaded, tabs are synced to current
history. If link is clicked that updates sidenav panel, panel is updated
accordingly.
@github-actions
Copy link
Contributor

APIX Tests

    1 files  ±0    77 suites  ±0   2m 34s ⏱️ -20s
290 tests ±0  277 ✔️ ±0  13 💤 ±0  0 ❌ ±0 
309 runs  ±0  296 ✔️ ±0  13 💤 ±0  0 ❌ ±0 

Results for commit 0f72d22. ± Comparison against base commit dd8a3f0.

1. SideNav now handles URL for diff scene (additional path parameter).
2. initDefaultSpecState now validates specKey from path. If invalid
falls back to 4.0.
3. DiffScene now validates specKey(s) from url. If invalid falls back to
default.
4. TagScene now changes routes in a useEffect. Also returns an empty
node if methods are not available (can happens when URL contains not valid
method name after SideBar changes URL)
@github-actions
Copy link
Contributor

APIX Tests

    1 files  ±0    77 suites  ±0   2m 40s ⏱️ -14s
290 tests ±0  277 ✔️ ±0  13 💤 ±0  0 ❌ ±0 
309 runs  ±0  296 ✔️ ±0  13 💤 ±0  0 ❌ ±0 

Results for commit bc4ff72. ± Comparison against base commit dd8a3f0.

Copy link
Contributor

@jkaster jkaster left a comment

Choose a reason for hiding this comment

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

LGTM. Nice fixes.

@jkaster jkaster merged commit 52e3ef3 into main Sep 22, 2021
@jkaster jkaster deleted the brynryans/sync-sidenav-history branch September 22, 2021 00:55
@github-actions

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants