Repository navigation
Navigation: one model decides where every menu, app and control lives - #640
Merged
Merged
Conversation
AllTerrainDeveloper
approved these changes
Aug 20, 2026
AllTerrainDeveloper
left a comment
Collaborator
There was a problem hiding this comment.
Okay, those changes are wonderful.
Every navigable thing collapses into one flat list of nav items, and computeNav() decides where each one shows up. The dock, the sidebar and the desktop render what it returns instead of each resolving placement for itself. Placement is stored as a region (rail, desktop, both, hidden) rather than a rail name, so a layout switch is a re-render rather than a migration. itemVisibility and dockOrder become navPlacement and navOrder, carried over on read. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Two copies of the zone order (nav and dock) become one, and the four placement write helpers become two that take items or ids. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
mmtr
force-pushed
the
claude/navigation-architecture-redesign-3dbfb1
branch
from
August 21, 2026 08:37
ba9ee0c to
6932ed2
Compare
…uest Two review findings. `dataset.navLocked` was written as the empty string, which is falsy, so the drag's `! el.dataset.navLocked` guard read a locked tile as unlocked. Exit has no drag handler of its own, but a neighbour's gesture still hit-tested against it, reordered across it and wrote its id into the persisted order. The marker is now truthy and the guard tests for presence. `NavItem.defaultPlacement` was declared and read but never assigned, so `openstation_register_window( 'placement' => 'dock' )` fell through to the app default and a plugin's launcher moved to the wallpaper. The native-window sync now sets it. Also drops items the wallpaper-icon grid cannot open (a tile whose only opener is its own `onOpen`) from that grid rather than painting a dead icon; the files layer still runs them. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
mmtr
added a commit
that referenced
this pull request
Aug 21, 2026
…646) * Tests: End the About CSS slice at the next section, not a named one The About theme contract test sliced os-settings.css between the About tab comment and "Apps & Icons section". #640 renamed that section while #631 was in flight, so the end index came back -1 and the slice was empty. One assertion failed on the empty slice; the rest of the file's assertions had nothing to inspect. Take the next top-level section comment instead, so a rename downstream of About cannot silently empty the slice again. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * Update os-settings-about-theme.test.ts --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
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.
Fixes #586
Proposed changes
Every navigable thing (WordPress admin menus, plugin menus, apps, OpenStation's own controls) collapses into one flat list of nav items in
src/nav/, andcomputeNav()decides where each one shows up. The dock, the sidebar and the desktop render what it returns.rail | desktop | both | hidden.railresolves to the sidebar for a WordPress menu while the split layout is on, and to the dock for everything else, so switching layout is a re-render rather than a data migration.itemVisibility/dockOrderbecomenavPlacement/navOrder. Existing arrangements carry over on read, so nobody loses the way they had things.Why are these changes being made?
Each surface answered "where does this live?" for itself, from the registration path that produced it. An app registered twice got two answers.
Games shipped that way. It registers a native window with a dock tile and a desktop icon, which the two APIs explicitly allow, so Preferences read its default off the icon and said "On the desktop" while the dock read it off the window and painted a tile anyway. Picking any value in Preferences wrote an override both paths then agreed on, which is why changing the setting appeared to fix it.
The split layout could not be expressed either.
dockwas both a stored value and a rail name, so a WordPress menu on the sidebar was a menu whose stored placement saiddock, and every consumer had to know that. #586 asks that a placement mean exactly what it says in every layout. The Spatial layout it reproduces on is gone, but that guarantee is now structural rather than something each surface has to remember.Testing instructions
The Games bug
trunkthe dock paints a tile too.Zones and dividers
Running windows
The split layout
Right-click
Drag to reorder
Preferences > Navigation
Carrying over an existing arrangement
Existing users keep what they had. To check without an upgrade, write the old shape onto your user meta:
navPlacementandnavOrderare now on the meta and the old keys are gone.Plugin surface
setZones()are driven throughreplaceItemsas before.