Wave 2: shared components + dice engine crypto migration

- feat(components): add ResultBox and CopyButton shared components
- refactor(dice): migrate dice engine to cryptographically secure random
This commit is contained in:
emil
2026-05-13 19:42:28 +03:00
parent 515c4a6168
commit e24a8b744d
6 changed files with 265 additions and 56 deletions
+28 -2
View File
@@ -8,7 +8,7 @@
"plan_name": "critical-refactor",
"status": "active",
"started_at": "2026-05-13T16:25:19.266Z",
"updated_at": "2026-05-13T16:33:52.668Z",
"updated_at": "2026-05-13T16:42:05.595Z",
"session_ids": [
"ses_1de6ede59ffexUwt5C0sddEWwR"
],
@@ -29,6 +29,19 @@
"updated_at": "2026-05-13T16:33:52.668Z",
"ended_at": "2026-05-13T16:33:52.668Z",
"elapsed_ms": 363792
},
"todo:4": {
"task_key": "todo:4",
"task_label": "4",
"task_title": "Create ResultBox.astro shared component",
"session_id": "ses_1ddce8961ffeoaXaB2Rxgt684X",
"agent": "Sisyphus-Junior",
"category": "visual-engineering",
"updated_at": "2026-05-13T16:42:05.595Z",
"started_at": "2026-05-13T16:40:57.448Z",
"status": "completed",
"ended_at": "2026-05-13T16:42:05.595Z",
"elapsed_ms": 68147
}
}
}
@@ -36,7 +49,7 @@
"active_plan": "/home/emil/Desktop/Coding/AI/Randify.pro/.sisyphus/plans/critical-refactor.md",
"started_at": "2026-05-13T16:25:19.266Z",
"status": "active",
"updated_at": "2026-05-13T16:33:52.668Z",
"updated_at": "2026-05-13T16:42:05.595Z",
"session_ids": [
"ses_1de6ede59ffexUwt5C0sddEWwR"
],
@@ -57,6 +70,19 @@
"updated_at": "2026-05-13T16:33:52.668Z",
"ended_at": "2026-05-13T16:33:52.668Z",
"elapsed_ms": 363792
},
"todo:4": {
"task_key": "todo:4",
"task_label": "4",
"task_title": "Create ResultBox.astro shared component",
"session_id": "ses_1ddce8961ffeoaXaB2Rxgt684X",
"agent": "Sisyphus-Junior",
"category": "visual-engineering",
"updated_at": "2026-05-13T16:42:05.595Z",
"started_at": "2026-05-13T16:40:57.448Z",
"status": "completed",
"ended_at": "2026-05-13T16:42:05.595Z",
"elapsed_ms": 68147
}
},
"agent": "atlas"
+4 -4
View File
@@ -336,7 +336,7 @@ Max Concurrent: 8 (Wave 3)
- Message: `feat(lib): add client i18n helper with tests`
- Files: `src/lib/client/i18n.ts`, `src/lib/client/i18n.test.ts`
- [ ] 4. Create ResultBox.astro shared component
- [x] 4. Create ResultBox.astro shared component
**What to do**:
- Create `src/components/ResultBox.astro` with:
@@ -382,7 +382,7 @@ Max Concurrent: 8 (Wave 3)
**Commit**: YES (groups with Task 5)
- [ ] 5. Create CopyButton.astro shared component
- [x] 5. Create CopyButton.astro shared component
**What to do**:
- Create `src/components/CopyButton.astro` with:
@@ -728,7 +728,7 @@ Max Concurrent: 8 (Wave 3)
- Message: `refactor(dice): deduplicate dice engine by importing from lib`
- Files: `src/components/generators/DiceGenerator.astro`
- [ ] 34. Update dice-engine.ts to use crypto random
- [x] 34. Update dice-engine.ts to use crypto random
**What to do**:
- Replace all `Math.random()` in `src/lib/dice-engine.ts` with `random.ts` functions
@@ -852,7 +852,7 @@ Max Concurrent: 8 (Wave 3)
- Message: `ci(deploy): add test and lint gates, fix SSH security`
- Files: `.github/workflows/deploy.yml`
- [ ] 37. Verify CI blocks deploy on failure
- [x] 37. Verify CI blocks deploy on failure
**What to do**:
- Verify updated `deploy.yml` workflow syntax