-
Notifications
You must be signed in to change notification settings - Fork 20
feat(desktop): adding ui state into the history stack #967
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
Open
tellaho
wants to merge
6
commits into
main
Choose a base branch
from
tho/feat/history-ui-state
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
660ad2a
feat(desktop): move auxiliary panel state into the history stack
tellaho 28a11be
feat(desktop): extend history-stack UI state to profile sub-views, ho…
tellaho e106323
feat(desktop): make settings a route in the history stack
tellaho fb03c42
Merge remote-tracking branch 'origin/main' into tho/feat/history-ui-s…
tellaho 8eea20b
fix(history-ui): address Wes's review on #967
fa79c4e
test(mesh-compute): assert settings-view restores from URL on reload
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| import { createFileRoute } from "@tanstack/react-router"; | ||
|
|
||
| import { | ||
| type SettingsSection, | ||
| isSettingsSection, | ||
| } from "@/features/settings/ui/SettingsPanels"; | ||
|
|
||
| type SettingsRouteSearch = { | ||
| section?: SettingsSection; | ||
| }; | ||
|
|
||
| function validateSettingsSearch( | ||
| search: Record<string, unknown>, | ||
| ): SettingsRouteSearch { | ||
| return { | ||
| section: isSettingsSection(search.section) ? search.section : undefined, | ||
| }; | ||
| } | ||
|
|
||
| export const Route = createFileRoute("/settings")({ | ||
| validateSearch: validateSettingsSearch, | ||
| component: SettingsRouteComponent, | ||
| }); | ||
|
|
||
| // Settings renders at the AppShell level (it replaces the sidebar, top | ||
| // chrome, and router outlet wholesale), keyed off this route's presence — | ||
| // see AppShell. The outlet is unmounted while settings is open, so this | ||
| // component never actually renders. | ||
| function SettingsRouteComponent() { | ||
| return null; | ||
| } |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.