diff --git a/.sisyphus/boulder.json b/.sisyphus/boulder.json index 062b55f..4c4b3f7 100644 --- a/.sisyphus/boulder.json +++ b/.sisyphus/boulder.json @@ -8,7 +8,7 @@ "plan_name": "critical-refactor", "status": "active", "started_at": "2026-05-13T16:25:19.266Z", - "updated_at": "2026-05-13T16:42:05.595Z", + "updated_at": "2026-05-13T17:16:10.363Z", "session_ids": [ "ses_1de6ede59ffexUwt5C0sddEWwR" ], @@ -42,6 +42,32 @@ "status": "completed", "ended_at": "2026-05-13T16:42:05.595Z", "elapsed_ms": 68147 + }, + "todo:6": { + "task_key": "todo:6", + "task_label": "6", + "task_title": "Refactor CardGenerator.astro", + "session_id": "ses_1ddc76889ffe240ehScl9taAza", + "agent": "Sisyphus-Junior", + "category": "unspecified-high", + "updated_at": "2026-05-13T16:47:10.433Z", + "started_at": "2026-05-13T16:44:57.812Z", + "status": "completed", + "ended_at": "2026-05-13T16:47:10.433Z", + "elapsed_ms": 132621 + }, + "todo:10": { + "task_key": "todo:10", + "task_label": "10", + "task_title": "Refactor DateGenerator.astro", + "session_id": "ses_1ddc380cbffe0YA1da3ew6QlNf", + "agent": "Sisyphus-Junior", + "category": "unspecified-high", + "updated_at": "2026-05-13T17:16:10.363Z", + "started_at": "2026-05-13T16:49:43.859Z", + "status": "completed", + "ended_at": "2026-05-13T17:16:10.363Z", + "elapsed_ms": 1586504 } } } @@ -49,7 +75,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:42:05.595Z", + "updated_at": "2026-05-13T17:16:10.363Z", "session_ids": [ "ses_1de6ede59ffexUwt5C0sddEWwR" ], @@ -83,6 +109,32 @@ "status": "completed", "ended_at": "2026-05-13T16:42:05.595Z", "elapsed_ms": 68147 + }, + "todo:6": { + "task_key": "todo:6", + "task_label": "6", + "task_title": "Refactor CardGenerator.astro", + "session_id": "ses_1ddc76889ffe240ehScl9taAza", + "agent": "Sisyphus-Junior", + "category": "unspecified-high", + "updated_at": "2026-05-13T16:47:10.433Z", + "started_at": "2026-05-13T16:44:57.812Z", + "status": "completed", + "ended_at": "2026-05-13T16:47:10.433Z", + "elapsed_ms": 132621 + }, + "todo:10": { + "task_key": "todo:10", + "task_label": "10", + "task_title": "Refactor DateGenerator.astro", + "session_id": "ses_1ddc380cbffe0YA1da3ew6QlNf", + "agent": "Sisyphus-Junior", + "category": "unspecified-high", + "updated_at": "2026-05-13T17:16:10.363Z", + "started_at": "2026-05-13T16:49:43.859Z", + "status": "completed", + "ended_at": "2026-05-13T17:16:10.363Z", + "elapsed_ms": 1586504 } }, "agent": "atlas" diff --git a/.sisyphus/plans/critical-refactor.md b/.sisyphus/plans/critical-refactor.md index b4755e3..1bfbb0b 100644 --- a/.sisyphus/plans/critical-refactor.md +++ b/.sisyphus/plans/critical-refactor.md @@ -427,7 +427,7 @@ Max Concurrent: 8 (Wave 3) - Message: `feat(components): add ResultBox and CopyButton shared components` - Files: `src/components/ResultBox.astro`, `src/components/CopyButton.astro` -- [ ] 6. Refactor CardGenerator.astro +- [x] 6. Refactor CardGenerator.astro **What to do**: - Replace `Math.random()` with `random.ts` functions @@ -457,7 +457,7 @@ Max Concurrent: 8 (Wave 3) **Commit**: NO (groups with batch) -- [ ] 7. Refactor CoinGenerator.astro +- [x] 7. Refactor CoinGenerator.astro **What to do**: Same pattern as Task 6. **Recommended Agent Profile**: `unspecified-high` @@ -467,7 +467,7 @@ Max Concurrent: 8 (Wave 3) **QA Scenarios**: grep Math.random → empty **Commit**: NO -- [ ] 8. Refactor ColorGenerator.astro +- [x] 8. Refactor ColorGenerator.astro **What to do**: Same pattern as Task 6. **Recommended Agent Profile**: `unspecified-high` @@ -477,7 +477,7 @@ Max Concurrent: 8 (Wave 3) **QA Scenarios**: grep Math.random → empty **Commit**: NO -- [ ] 9. Refactor CountryGenerator.astro +- [x] 9. Refactor CountryGenerator.astro **What to do**: Same pattern as Task 6. **Recommended Agent Profile**: `unspecified-high` @@ -487,7 +487,7 @@ Max Concurrent: 8 (Wave 3) **QA Scenarios**: grep Math.random → empty **Commit**: NO -- [ ] 10. Refactor DateGenerator.astro +- [x] 10. Refactor DateGenerator.astro **What to do**: Same pattern as Task 6. **Recommended Agent Profile**: `unspecified-high` @@ -497,7 +497,7 @@ Max Concurrent: 8 (Wave 3) **QA Scenarios**: grep Math.random → empty **Commit**: NO -- [ ] 11. Refactor EmojiGenerator.astro +- [x] 11. Refactor EmojiGenerator.astro **What to do**: Same pattern as Task 6. **Recommended Agent Profile**: `unspecified-high` @@ -507,7 +507,7 @@ Max Concurrent: 8 (Wave 3) **QA Scenarios**: grep Math.random → empty **Commit**: NO -- [ ] 12. Refactor FontPairGenerator.astro +- [x] 12. Refactor FontPairGenerator.astro **What to do**: Same pattern as Task 6. **Recommended Agent Profile**: `unspecified-high` @@ -685,7 +685,7 @@ Max Concurrent: 8 (Wave 3) - Message: `refactor(generators): migrate batch 4 to crypto random (Teams, Time, Uuid, Weighted, WheelSpinner, YesNo)` - Files: `src/components/generators/{Teams,Time,Uuid,Weighted,YesNo}Generator.astro`, `src/components/generators/WheelSpinner.astro` -- [ ] 33. Refactor DiceGenerator to import dice-engine.ts +- [x] 33. Refactor DiceGenerator to import dice-engine.ts **What to do**: - Replace inline dice engine code in `DiceGenerator.astro:274-958` with imports from `src/lib/dice-engine.ts` diff --git a/src/components/generators/CardGenerator.astro b/src/components/generators/CardGenerator.astro index bcba2f8..ae82de3 100644 --- a/src/components/generators/CardGenerator.astro +++ b/src/components/generators/CardGenerator.astro @@ -116,19 +116,15 @@ const T = useT(isRu ? "ru" : "en");