Frontend Logic Skill
1. Core Principles
- •State Management: Use Pinia for global state.
- •API Integration: Use
@modular-rest/clientto call server functions. - •Testing: Implement integration tests for complex component interactions.
- •Workflow: Always reference the ClickUp task ID in commit messages (e.g.,
feat: #taskid message).
2. Documentation Reference
You MUST read the following file for API Client details:
3. Navigation & Auth Flow
The application uses hash-based routing (/#/).
Common Routes
- •Home:
/#/ - •Board:
/#/board - •Settings:
/#/settings
Authentication
- •Token is stored in
localStoragekeytoken. - •If redirected to login, verify token presence.
4. Key Patterns
- •Services: Import
functionProviderfrom@modular-rest/clientto execute backend functions. - •Composables: Use Vue composables for reusable logic.