Skip to content
38 changes: 19 additions & 19 deletions .planning/REQUIREMENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,18 @@

### Votes

- [ ] **VOTE-01**: 투표 현황 조회 (GET /solutions/{solution_id}/votes)
- [ ] **VOTE-02**: 투표하기 (POST /solutions/{solution_id}/votes)
- [ ] **VOTE-03**: 투표 취소 (DELETE /solutions/{solution_id}/votes)
- [ ] **VOTE-04**: 솔루션 채택 (POST /solutions/{solution_id}/adopt)
- [ ] **VOTE-05**: 채택 취소 (DELETE /solutions/{solution_id}/adopt)
- [x] **VOTE-01**: 투표 현황 조회 (GET /solutions/{solution_id}/votes)
- [x] **VOTE-02**: 투표하기 (POST /solutions/{solution_id}/votes)
- [x] **VOTE-03**: 투표 취소 (DELETE /solutions/{solution_id}/votes)
- [x] **VOTE-04**: 솔루션 채택 (POST /solutions/{solution_id}/adopt)
- [x] **VOTE-05**: 채택 취소 (DELETE /solutions/{solution_id}/adopt)

### Comments

- [ ] **CMNT-01**: 댓글 목록 조회 (GET /posts/{post_id}/comments)
- [ ] **CMNT-02**: 댓글 작성 (POST /posts/{post_id}/comments)
- [ ] **CMNT-03**: 댓글 수정 (PATCH /comments/{comment_id})
- [ ] **CMNT-04**: 댓글 삭제 (DELETE /comments/{comment_id})
- [x] **CMNT-01**: 댓글 목록 조회 (GET /posts/{post_id}/comments)
- [x] **CMNT-02**: 댓글 작성 (POST /posts/{post_id}/comments)
- [x] **CMNT-03**: 댓글 수정 (PATCH /comments/{comment_id})
- [x] **CMNT-04**: 댓글 삭제 (DELETE /comments/{comment_id})

### Rankings

Expand Down Expand Up @@ -136,15 +136,15 @@ Deferred to future release.

| Requirement | Status |
|-------------|--------|
| VOTE-01 | Pending |
| VOTE-02 | Pending |
| VOTE-03 | Pending |
| VOTE-04 | Pending |
| VOTE-05 | Pending |
| CMNT-01 | Pending |
| CMNT-02 | Pending |
| CMNT-03 | Pending |
| CMNT-04 | Pending |
| VOTE-01 | Complete |
| VOTE-02 | Complete |
| VOTE-03 | Complete |
| VOTE-04 | Complete |
| VOTE-05 | Complete |
| CMNT-01 | Complete |
| CMNT-02 | Complete |
| CMNT-03 | Complete |
| CMNT-04 | Complete |

### Track C: Gamification (Worktree)

Expand Down Expand Up @@ -179,4 +179,4 @@ Deferred to future release.

---
*Requirements defined: 2026-01-29*
*Last updated: 2026-01-29 after parallel track restructure*
*Last updated: 2026-01-29 after Track B completion*
12 changes: 6 additions & 6 deletions .planning/ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ See archived roadmap for v1.0 phase details.

#### Parallel Tracks (Git Worktrees) - After Phase 6
- [ ] **Track A: Content CRUD** - Posts, Spots, Solutions (worktree: `decoded-track-a`)
- [ ] **Track B: Engagement** - Votes, Comments (worktree: `decoded-track-b`)
- [x] **Track B: Engagement** - Votes, Comments (worktree: `decoded-track-b`) ✓ Complete
- [ ] **Track C: Gamification** - Rankings, Badges (worktree: `decoded-track-c`)
- [ ] **Track D: Monetization & Search** - Earnings, Search (worktree: `decoded-track-d`)

Expand Down Expand Up @@ -101,9 +101,9 @@ Plans:
4. Post owner can adopt a solution
5. User can view/write/edit/delete comments

Plans:
- [ ] B-01: Vote system (vote, retract, adopt)
- [ ] B-02: Comment CRUD operations
**Plans:** 2 plans (1 wave)
- [x] B-01-PLAN.md - Vote system (types, API, hooks, proxy routes) [Wave 1] ✓
- [x] B-02-PLAN.md - Comment CRUD operations (types, API, hooks, proxy routes) [Wave 1] ✓

---

Expand Down Expand Up @@ -165,7 +165,7 @@ Plans:
| Track | Worktree | Branch | Plans | Status |
|-------|----------|--------|-------|--------|
| A. Content CRUD | `../decoded-track-a` | `feature/track-a-content` | 0/3 | **Ready** |
| B. Engagement | `../decoded-track-b` | `feature/track-b-engagement` | 0/2 | **Ready** |
| B. Engagement | `../decoded-track-b` | `feature/track-b-engagement` | 2/2 | **Complete** ✓ |
| C. Gamification | `../decoded-track-c` | `feature/track-c-gamification` | 0/2 | **Ready** |
| D. Monetization | `../decoded-track-d` | `feature/track-d-monetization` | 0/3 | **Ready** |

Expand Down Expand Up @@ -199,4 +199,4 @@ git merge feature/track-d-monetization
---

*Roadmap created: 2026-01-29*
*Last updated: 2026-01-29 (Phase 6 planned)*
*Last updated: 2026-01-29 (Track B complete)*
30 changes: 17 additions & 13 deletions .planning/STATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@ See: .planning/PROJECT.md (updated 2026-01-29)

**Milestone:** v1.1 Full API Integration
**Structure:** Phase 6 Complete → Tracks A-D (Parallel)
**Status:** Phase 6 complete, ready for parallel tracks
**Last activity:** 2026-01-29 - Completed Phase 6 (06-03 verification pending)
**Status:** Track B complete, ready to merge to main
**Last activity:** 2026-01-29 - Track B execution complete

### Execution Flow

```
1. Phase 6 (Main Branch) ─── COMPLETE ✓
└─ Ready to create 4 worktrees:
├── Track A: Content CRUD
├── Track B: Engagement
├── Track C: Gamification
└── Track D: Monetization
└─ Parallel Tracks:
├── Track A: Content CRUD - Not started
├── Track B: Engagement - COMPLETE ✓
├── Track C: Gamification - Not started
└── Track D: Monetization - Not started
```

**Progress:** ███ (100% - 3 of 3 plans complete)
**Track B Progress:** ██████████ (100% - 2 of 2 plans complete)

## Milestones

Expand All @@ -43,12 +43,12 @@ See: .planning/PROJECT.md (updated 2026-01-29)
|-------|-------|--------|
| Phase 6: API Foundation & Profile | 3/3 | **Complete** (06-03 verification pending) |

### Parallel Tracks (Ready to Start)
### Parallel Tracks

| Track | Worktree | Plans | Status |
|-------|----------|-------|--------|
| A: Content CRUD | `../decoded-track-a` | 0/3 | Ready |
| B: Engagement | `../decoded-track-b` | 0/2 | Ready |
| B: Engagement | `../decoded-track-b` | 2/2 | **Complete** |
| C: Gamification | `../decoded-track-c` | 0/2 | Ready |
| D: Monetization | `../decoded-track-d` | 0/3 | Ready |

Expand All @@ -70,6 +70,10 @@ See: .planning/PROJECT.md (updated 2026-01-29)
- **Points Mapping (06-02):** Map API points to earnings until Track C implements full gamification
- **API Proxy (06-03):** Use Next.js API routes to proxy backend calls, avoiding CORS
- **Dual State Sync (06-03):** React Query cache + Zustand store for immediate UI updates
- **Vote Stats Cache (B-01):** Vote stats have 30s staleTime (more frequent changes than profile)
- **Vote Mutations (B-01):** All vote/adopt mutations invalidate vote stats cache for immediate UI feedback
- **Comment Access (B-02):** Comments are public (fetch), create/update/delete require auth
- **Optimistic Updates (B-02):** Mutation hooks use recursive transformations for nested replies

### Pending Verification
- **06-03 Profile Edit:** Code complete, verification blocked by backend DB error
Expand All @@ -88,8 +92,8 @@ See: .planning/PROJECT.md (updated 2026-01-29)
## Session Continuity

**Last session:** 2026-01-29
**Stopped at:** Phase 6 complete
**Resume file:** None - ready for parallel tracks
**Stopped at:** Track B complete (B-01, B-02)
**Resume file:** None - track complete

## Worktree Commands

Expand Down Expand Up @@ -124,4 +128,4 @@ git worktree remove ../decoded-track-d

---

*Last updated: 2026-01-29 after Phase 6 completion*
*Last updated: 2026-01-29 after Track B completion*
Loading