Skip to content

refactor: split HaStateController responsibilities into NavigationController#406

Open
stuart-c-ai wants to merge 4 commits into
mainfrom
refactor/hastate-navigation
Open

refactor: split HaStateController responsibilities into NavigationController#406
stuart-c-ai wants to merge 4 commits into
mainfrom
refactor/hastate-navigation

Conversation

@stuart-c-ai
Copy link
Copy Markdown
Collaborator

This PR refactors HaStateController.ts by extracting its navigation and selection responsibilities into a dedicated NavigationController.

Key changes:

  • Created NavigationController to manage active section, view mode, and selection IDs.
  • NavigationController handles URL hash synchronization.
  • HaStateController now delegates navigation state to NavigationController.
  • HaStateController maintains backward compatibility by providing getters/setters for navigation properties.
  • Updated AppRoot to instantiate both controllers.
  • Added comprehensive tests for NavigationController and updated HaStateController tests.

@stuart-c-ai stuart-c-ai enabled auto-merge April 24, 2026 22:14
@github-actions github-actions Bot added chore frontend python Pull requests that update python code labels Apr 24, 2026
stuart-c
stuart-c previously approved these changes Apr 25, 2026
@stuart-c stuart-c removed the python Pull requests that update python code label Apr 25, 2026
@stuart-c-ai stuart-c-ai force-pushed the refactor/hastate-navigation branch from 8a14dc9 to 056a748 Compare April 25, 2026 08:30
@github-actions github-actions Bot added the python Pull requests that update python code label Apr 25, 2026
@stuart-c-ai stuart-c-ai force-pushed the refactor/hastate-navigation branch 5 times, most recently from a2fcfa2 to b18b3d7 Compare April 26, 2026 09:39
@stuart-c-ai stuart-c-ai force-pushed the refactor/hastate-navigation branch from 24659cd to 23ceb39 Compare April 26, 2026 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore frontend python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants