How premoved/premovedprep works
PremovedPrep is a chess tournament-preparation frontend. Its principal workflow is to find an opponent and inspect their archived games, then analyze positions and build a repertoire or save study material in collections. The graph also preserves authentication, encrypted-vault handling, cloud storage, and engine analysis as distinct product capabilities. The README and route excerpt establish the product flow; source excerpts show engine, session, vault, and storage responsibilities. Several feature implementations were not sampled, so uncertain internal links are omitted.
Main entry points: analysis-board.component.ts Analysis board · engine.store.ts Engine state · cloud-storage.service.ts Cloud storage · home.component.ts Preparation home
Components 21
Opponent discovery
- Preparation home
src/app/features/home/home.component.ts - Game search
src/app/features/search/search-page.component.ts - Opponent explorer
src/app/features/search/opponent-explorer/opponent-explorer.component.ts - Search API
src/app/core/services/search-api.service.ts
Chess analysis
- Analysis board
src/app/features/analysis-board/analysis-board.component.ts - Move tree state
src/app/features/analysis-board/state/move-tree.store.ts - Chess notation
src/app/core/chess/pgn-parser.service.ts - Engine state
src/app/features/analysis-board/state/engine.store.ts - Engine controls
src/app/features/analysis-board/notation-panel/engine-bar/engine-bar.component.ts - Engine catalogue
src/app/core/engine/engine-catalogue.ts - Device capabilities
src/app/core/engine/engine-capabilities.ts - WASM engine transport
src/app/core/engine/engine-transport.ts
Study organization
- Collections
src/app/features/collections/collections-page.component.ts - Collection studies
src/app/features/collections/collection-view.component.ts
Account and storage
- Cloud storage
src/app/core/services/cloud-storage.service.ts - Collection API
src/app/core/services/collection-api.service.ts - Authentication
src/app/core/services/auth.service.ts - Session management
src/app/core/auth/session.service.ts - Encrypted vault
src/app/core/crypto/vault.service.ts - Remembered vault key
src/app/core/crypto/vault-storage.ts
Other components
- Chess preparer
Connections 19
- Chess preparer → Preparation home: starts preparation
- Preparation home → Game search: searches opponent
- Game search → Opponent explorer: explores games
- Opponent explorer → Analysis board: analyzes positions
- Analysis board → Move tree state: tracks moves
- Analysis board → Chess notation: imports PGN
- Analysis board → Engine controls: offers engine controls
src/app/features/analysis-board/notation-panel/engine-bar/engine-bar.component.ts - Engine controls → Engine state: toggles analysis
src/app/features/analysis-board/notation-panel/engine-bar/engine-bar.component.ts - Engine state → Engine catalogue: selects engine
src/app/features/analysis-board/state/engine.store.ts - Engine state → Device capabilities: checks device
src/app/features/analysis-board/state/engine.store.ts - Engine state → WASM engine transport: creates transport
src/app/features/analysis-board/state/engine.store.ts - Chess preparer → Collections: organizes studies
- Collections → Collection studies: opens collection
src/app/app.routes.ts - Collection studies → Analysis board: builds repertoire
- Cloud storage → Collection API: reads storage usage
src/app/core/services/cloud-storage.service.ts - Cloud storage → Authentication: checks sign-in
src/app/core/services/cloud-storage.service.ts - Authentication → Session management: applies session
src/app/core/services/auth.service.ts - Session management → Encrypted vault: restores vault
src/app/core/auth/session.service.ts - Encrypted vault → Remembered vault key: remembers key
src/app/core/crypto/vault.service.ts