|
4 | 4 | - Key paths: |
5 | 5 | - `server/` Backend (Bun/TS) |
6 | 6 | - `apple/` macOS/iOS clients (SwiftUI/UIKit/AppKit) |
7 | | - - `web/` web app (React/TanStack, not started) |
| 7 | + - `landing/` web app (React/TanStack, not started) |
8 | 8 | - `desktop/` Windows app (Electron, not started) |
9 | 9 | - `proto/` protobufs |
10 | 10 | - `cli/` client cli (Rust) |
|
43 | 43 | - If undoing your own changes in a file with other uncommitted edits, ask first. |
44 | 44 | - Regenerate protobufs when contracts change (`bun run generate:proto`); run focused `swift build` for touched Swift packages. |
45 | 45 | - Run focused tests/typechecks for affected areas; add/update tests for new features and regressions. |
46 | | -- Web is WIP. Do not extend requested changes or investigations to `web/` unless explicitly asked. |
| 46 | +- Web is WIP. Do not extend requested changes or investigations to `landing/` unless explicitly asked. |
47 | 47 | - New UI work must stay in new UI components; do not modify legacy sidebar/old UI. |
48 | 48 | - When asked to write a plan or save your investigation, make a file in `.context/` named `YYYY-MM-DD-title-kebab-case.md`. |
49 | 49 | - In final handoff/review/push, call out security risks, possible performance regressions, and state production readiness. |
50 | 50 | - Do just the right amount of engineering, not over engineer, and not under engineer. Simple and elegant solutions are often better than prematuraly complex solutions that go beyond the scope and spec. |
| 51 | +- When adding colors, ensure the color supports light/dark theming and if it's not a one-off color, add it to the platforms theme class/module. |
51 | 52 |
|
52 | 53 | ## Style Guide |
53 | 54 | - Use shorter function/variables names as much as possible, avoid long phrasal function names when we can keep it simply unless required. Don't use weird abbreviations like `idxes`; `msg`, `id`, `ctx` and alike are fine. |
|
116 | 117 | ## Web & Docs |
117 | 118 |
|
118 | 119 | - Web stack: TanStack Router + Vite + StyleX/Tailwind; keep SSR-safe patterns. |
119 | | -- Web commands: `cd web && bun run dev|build|typecheck`. |
| 120 | +- Web commands: `cd landing && bun run dev|build|typecheck`. |
120 | 121 | - Prefer existing tokens/utilities over ad-hoc CSS; keep light/dark behavior consistent. |
121 | | -- Docs: routes in `web/src/routes/docs/`, content in `web/src/docs/content/`, nav in `web/src/docs/nav.ts`. |
| 122 | +- Docs: routes in `landing/src/routes/docs/`, content in `landing/src/docs/content/`, nav in `landing/src/docs/nav.ts`. |
122 | 123 | - Docs additions: add markdown page + route + nav entry; keep writing concise and practical. |
123 | 124 |
|
124 | 125 | ## Admin |
|
0 commit comments