US01: UserStateCore
22 Scenarios
User Story
Scenario: Create rooted UserState graph with nodeKey root
Given an empty UserState
When a root nodeKey is assigned
#UAC01
Then the UserState should expose a single root nodeKey
#UAC02
And the root should be addressable by TreeItems and Intent
Scenarios
SC01: Create rooted UserState graph with nodeKey root
1 testsUAC: 01, 02
SC02: Allow multiple parents and cross-links
1 testsUAC: 03, 04
SC03: Maintain WorkItem traceability
1 testsUAC: 05, 06
SC04: Load user context with owned entities
1 tests
SC05: Load user context with no owned entities
1 tests
SC06: Load user context with mixed entity types
1 tests
SC07: Load user context for non-existent user
1 tests
SC08: User context isolation between concurrent users
1 tests
SC09: Refresh user context after data changes
1 tests
SC10: Expand user context with single-level hierarchy
1 tests
SC11: Expand user context with multi-level hierarchy
1 tests
SC12: Expand user context with mixed types in hierarchy
1 tests
SC13: Expand user context with no children
1 tests
SC14: Expand user context with partial depth
1 tests
SC15: Expand user context with circular reference protection
1 tests
SC16: Expand user context with TreeItem metadata and NodeKey
1 tests
SC17: Expand user context with performance optimization
1 tests
SC18: Expand user context with filtering by type
1 tests
SC19: Expand user context for multiple users with isolation
1 tests
SC20: TreeItem NodeKey uniqueness and determinism
1 tests
SC21: Persist TreeItem expanded state to localStorage
1 tests
SC22: Clear localStorage on user logout
1 tests