Adds unit 1 functional design and answered nfr requirements questions and plan
This commit is contained in:
+9
-9
@@ -10,7 +10,7 @@
|
||||
- Provide `ApiClient` and `AuthContext` foundations aligned with cookie-based auth (httpOnly refresh cookie, access token in memory)
|
||||
|
||||
## Plan Checklist
|
||||
- [ ] Confirm scaffold strategy and tools via questions below
|
||||
- [x] Confirm scaffold strategy and tools via questions below
|
||||
- [ ] Generate folder structure (`src/api`, `src/auth`, `src/components`, `src/routes`)
|
||||
- [ ] Install and configure dependencies (TanStack Router, @tanstack/react-query, Tailwind v4, shadcn/ui)
|
||||
- [ ] Configure Tailwind theme with primary color `#ac0000`
|
||||
@@ -30,49 +30,49 @@ B) npm
|
||||
C) yarn
|
||||
X) Other (please describe after the [Answer]: tag below)
|
||||
|
||||
[Answer]:
|
||||
[Answer]: A
|
||||
|
||||
## Question 2: Router choice
|
||||
A) TanStack Router (required by NFR-01)
|
||||
B) React Router
|
||||
X) Other (please describe after the [Answer]: tag below)
|
||||
|
||||
[Answer]:
|
||||
[Answer]: A
|
||||
|
||||
## Question 3: UI foundation
|
||||
A) Tailwind v4 + shadcn/ui (recommended)
|
||||
B) Tailwind v4 only (no shadcn/ui)
|
||||
X) Other (please describe after the [Answer]: tag below)
|
||||
|
||||
[Answer]:
|
||||
[Answer]: A
|
||||
|
||||
## Question 4: Primary color integration (`#ac0000`)
|
||||
A) Tailwind theme config (extend colors + use via utility classes)
|
||||
B) CSS variables (root-level var, consumed by components)
|
||||
X) Other (please describe after the [Answer]: tag below)
|
||||
|
||||
[Answer]:
|
||||
[Answer]: A
|
||||
|
||||
## Question 5: HTTP client layer
|
||||
A) Fetch wrapper (`ApiClient`) with `credentials: 'include'` + JSON helpers (recommended)
|
||||
B) Axios instance with `withCredentials: true`
|
||||
X) Other (please describe after the [Answer]: tag below)
|
||||
|
||||
[Answer]:
|
||||
[Answer]: A
|
||||
|
||||
## Question 6: API base URL source
|
||||
A) `import.meta.env.VITE_API_BASE_URL` (from `.env`)
|
||||
B) Derive from `window.location.origin` + `/api`
|
||||
X) Other (please describe after the [Answer]: tag below)
|
||||
|
||||
[Answer]:
|
||||
[Answer]: A
|
||||
|
||||
## Question 7: Session bootstrap behavior
|
||||
A) On app mount, attempt silent refresh (uses httpOnly cookie) to hydrate `AuthContext` (recommended)
|
||||
B) Do not auto-refresh on mount; rely on login flow and 401 handling
|
||||
X) Other (please describe after the [Answer]: tag below)
|
||||
|
||||
[Answer]:
|
||||
[Answer]: A
|
||||
|
||||
## Question 8: Linting/formatting baseline
|
||||
A) ESLint (recommended) + Prettier with sensible defaults
|
||||
@@ -80,4 +80,4 @@ B) ESLint only
|
||||
C) None for now
|
||||
X) Other (please describe after the [Answer]: tag below)
|
||||
|
||||
[Answer]:
|
||||
[Answer]: A, but indentation with 4 spaces
|
||||
|
||||
Reference in New Issue
Block a user