- Simplify CLAUDE.md from ~460 to ~145 lines with imports - Add Theme System section to css-design-system.md (3 modes: auto/light/dark) - Document theme toggle UI, localStorage persistence, CSS priority order - Add paths: frontmatter to authentication.md and company-period.md - Update DESIGN_TOKENS.md Dark Mode section with toggle documentation - Clean auto-build-memory.md header (remove non-existent auto-sync reference) - Remove non-existent plugin from settings.json 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
24 lines
876 B
Markdown
24 lines
876 B
Markdown
---
|
|
paths: "{backend,shared}/**/*.py,src/**/*.{js,vue}"
|
|
---
|
|
|
|
# Company & Period Selection Rules
|
|
|
|
## Store Factories (MANDATORY)
|
|
- Companies: Use `createCompaniesStore()` from `shared/frontend/stores/companies.js`
|
|
- Periods: Use `createAccountingPeriodStore()` from `shared/frontend/stores/accountingPeriod.js`
|
|
- Never implement custom company/period stores
|
|
|
|
## Components
|
|
- Use `CompanySelector.vue` from `shared/frontend/components/`
|
|
- Use `PeriodSelector.vue` from `shared/frontend/components/`
|
|
- Use `AppHeader.vue` layout from `shared/frontend/components/layout/`
|
|
|
|
## Backend Endpoints
|
|
- Use `create_companies_router()` factory from `shared/routes/companies.py`
|
|
- Use `create_calendar_router()` factory from `shared/routes/calendar.py`
|
|
|
|
## Company Access Validation (2-step)
|
|
1. Check `current_user.companies` (fast, from JWT)
|
|
2. Validate against Oracle DB (authoritative)
|