Jerry20062016 commited on
Commit
c61c581
·
1 Parent(s): 8085a4d

chore: mark US-004 complete, update progress log

Browse files
Files changed (2) hide show
  1. ralph/prd.json +1 -1
  2. ralph/progress.txt +12 -0
ralph/prd.json CHANGED
@@ -65,7 +65,7 @@
65
  "Typecheck passes"
66
  ],
67
  "priority": 4,
68
- "passes": false,
69
  "notes": "The auth checkSession() action should call GET /auth/me. If 401, user is null. If 200, set user from response. The axios instance must have withCredentials: true so the session cookie is sent with every request. Do NOT build actual page components yet — just the infrastructure."
70
  },
71
  {
 
65
  "Typecheck passes"
66
  ],
67
  "priority": 4,
68
+ "passes": true,
69
  "notes": "The auth checkSession() action should call GET /auth/me. If 401, user is null. If 200, set user from response. The axios instance must have withCredentials: true so the session cookie is sent with every request. Do NOT build actual page components yet — just the infrastructure."
70
  },
71
  {
ralph/progress.txt CHANGED
@@ -35,3 +35,15 @@ Started: Mon Apr 20 07:44:04 CST 2026
35
  - Simple alias for GET /api/wishes with clearer naming for Vue frontend
36
  - Files changed: wish.py
37
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  - Simple alias for GET /api/wishes with clearer naming for Vue frontend
36
  - Files changed: wish.py
37
  ---
38
+
39
+ ## 2026/04/20 - US-004
40
+ - Created axios instance with withCredentials: true for session cookie auth
41
+ - Created Vue Router with / (tree) and /login routes using lazy-loaded view components
42
+ - Created useAuthStore with checkSession(), logout(), isAuthenticated computed
43
+ - Created useWishStore with fetchTreeWishes(), fetchMyWishes(), submitWish(), pagination/filter state
44
+ - Wired up Pinia + Router in main.ts, App.vue uses RouterView
45
+ - Files changed: frontend/src/main.ts, frontend/src/App.vue, new files in api/, stores/, router/, views/
46
+ - **Learnings for future iterations:**
47
+ - Stores use composition API style (setup function) not options style — more ergonomic with TypeScript
48
+ - Router uses createWebHistory for clean URLs — need catch-all in FastAPI for SPA routing (US-009)
49
+ ---