diff --git a/.sisyphus/boulder.json b/.sisyphus/boulder.json index 6b4fd82..ade1c7f 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-13T17:25:32.173Z", + "updated_at": "2026-05-13T17:34:08.166Z", "session_ids": [ "ses_1de6ede59ffexUwt5C0sddEWwR" ], @@ -94,6 +94,32 @@ "status": "completed", "ended_at": "2026-05-13T17:25:32.173Z", "elapsed_ms": 20904 + }, + "todo:20": { + "task_key": "todo:20", + "task_label": "20", + "task_title": "Refactor MealGenerator.astro", + "session_id": "ses_1dda01e38ffeVc6AUwAlt7lQXl", + "agent": "Sisyphus-Junior", + "category": "unspecified-high", + "updated_at": "2026-05-13T17:31:02.031Z", + "started_at": "2026-05-13T17:30:26.005Z", + "status": "completed", + "ended_at": "2026-05-13T17:31:02.031Z", + "elapsed_ms": 36026 + }, + "todo:24": { + "task_key": "todo:24", + "task_label": "24", + "task_title": "Refactor PasswordGenerator.astro", + "session_id": "ses_1dd9b7bb1ffez3Q0aayg7PZUIF", + "agent": "Sisyphus-Junior", + "category": "unspecified-high", + "updated_at": "2026-05-13T17:34:08.166Z", + "started_at": "2026-05-13T17:32:34.652Z", + "status": "completed", + "ended_at": "2026-05-13T17:34:08.166Z", + "elapsed_ms": 93514 } } } @@ -101,7 +127,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-13T17:25:32.173Z", + "updated_at": "2026-05-13T17:34:08.166Z", "session_ids": [ "ses_1de6ede59ffexUwt5C0sddEWwR" ], @@ -187,6 +213,32 @@ "status": "completed", "ended_at": "2026-05-13T17:25:32.173Z", "elapsed_ms": 20904 + }, + "todo:20": { + "task_key": "todo:20", + "task_label": "20", + "task_title": "Refactor MealGenerator.astro", + "session_id": "ses_1dda01e38ffeVc6AUwAlt7lQXl", + "agent": "Sisyphus-Junior", + "category": "unspecified-high", + "updated_at": "2026-05-13T17:31:02.031Z", + "started_at": "2026-05-13T17:30:26.005Z", + "status": "completed", + "ended_at": "2026-05-13T17:31:02.031Z", + "elapsed_ms": 36026 + }, + "todo:24": { + "task_key": "todo:24", + "task_label": "24", + "task_title": "Refactor PasswordGenerator.astro", + "session_id": "ses_1dd9b7bb1ffez3Q0aayg7PZUIF", + "agent": "Sisyphus-Junior", + "category": "unspecified-high", + "updated_at": "2026-05-13T17:34:08.166Z", + "started_at": "2026-05-13T17:32:34.652Z", + "status": "completed", + "ended_at": "2026-05-13T17:34:08.166Z", + "elapsed_ms": 93514 } }, "agent": "atlas" diff --git a/.sisyphus/plans/critical-refactor.md b/.sisyphus/plans/critical-refactor.md index 495adc6..2f0b832 100644 --- a/.sisyphus/plans/critical-refactor.md +++ b/.sisyphus/plans/critical-refactor.md @@ -577,7 +577,7 @@ Max Concurrent: 8 (Wave 3) - Message: `refactor(generators): migrate batch 2 to crypto random (Gradient, Hash, Letter, List, Lorem, Lottery, Magic8Ball)` - Files: `src/components/generators/{Gradient,Hash,Letter,List,Lorem,Lottery,Magic8Ball}Generator.astro` -- [ ] 20. Refactor MealGenerator.astro +- [x] 20. Refactor MealGenerator.astro **What to do**: Same pattern as Task 6. **Recommended Agent Profile**: `unspecified-high` **Parallelization**: YES (with Tasks 13-19, 21-26, 27-32) @@ -585,7 +585,7 @@ Max Concurrent: 8 (Wave 3) **Acceptance Criteria**: No Math.random, uses random.ts and i18n.ts **Commit**: NO -- [ ] 21. Refactor NamesGenerator.astro +- [x] 21. Refactor NamesGenerator.astro **What to do**: Same pattern as Task 6. **Recommended Agent Profile**: `unspecified-high` **Parallelization**: YES (with Tasks 13-19, 20, 22-26, 27-32) @@ -593,7 +593,7 @@ Max Concurrent: 8 (Wave 3) **Acceptance Criteria**: No Math.random, uses random.ts and i18n.ts **Commit**: NO -- [ ] 22. Refactor NumberGenerator.astro +- [x] 22. Refactor NumberGenerator.astro **What to do**: Same pattern as Task 6. **Recommended Agent Profile**: `unspecified-high` **Parallelization**: YES (with Tasks 13-19, 20-21, 23-26, 27-32) @@ -601,7 +601,7 @@ Max Concurrent: 8 (Wave 3) **Acceptance Criteria**: No Math.random, uses random.ts and i18n.ts **Commit**: NO -- [ ] 23. Refactor PaletteGenerator.astro +- [x] 23. Refactor PaletteGenerator.astro **What to do**: Same pattern as Task 6. **Recommended Agent Profile**: `unspecified-high` **Parallelization**: YES (with Tasks 13-19, 20-22, 24-26, 27-32) @@ -609,7 +609,7 @@ Max Concurrent: 8 (Wave 3) **Acceptance Criteria**: No Math.random, uses random.ts and i18n.ts **Commit**: NO -- [ ] 24. Refactor PasswordGenerator.astro +- [x] 24. Refactor PasswordGenerator.astro **What to do**: Same pattern as Task 6. **Recommended Agent Profile**: `unspecified-high` **Parallelization**: YES (with Tasks 13-19, 20-23, 25-26, 27-32) @@ -617,7 +617,7 @@ Max Concurrent: 8 (Wave 3) **Acceptance Criteria**: No Math.random, uses random.ts and i18n.ts **Commit**: NO -- [ ] 25. Refactor RpsGenerator.astro +- [x] 25. Refactor RpsGenerator.astro **What to do**: Same pattern as Task 6. **Recommended Agent Profile**: `unspecified-high` **Parallelization**: YES (with Tasks 13-19, 20-24, 26, 27-32) @@ -625,7 +625,7 @@ Max Concurrent: 8 (Wave 3) **Acceptance Criteria**: No Math.random, uses random.ts and i18n.ts **Commit**: NO -- [ ] 26. Refactor ShufflerGenerator.astro +- [x] 26. Refactor ShufflerGenerator.astro **What to do**: Same pattern as Task 6. **Recommended Agent Profile**: `unspecified-high` **Parallelization**: YES (with Tasks 13-19, 20-25, 27-32) diff --git a/src/components/generators/MealGenerator.astro b/src/components/generators/MealGenerator.astro index 8301036..9a90c1b 100644 --- a/src/components/generators/MealGenerator.astro +++ b/src/components/generators/MealGenerator.astro @@ -77,38 +77,7 @@ const timeFilters = isRu { value: "slow", label: "Slow cook" }, ]; -const cuisineLabelMap: Record = { - italian: { en: "Italian", ru: "Итальянская" }, - asian: { en: "Asian", ru: "Азиатская" }, - mexican: { en: "Mexican", ru: "Мексиканская" }, - american: { en: "American", ru: "Американская" }, - mediterranean: { en: "Mediterranean", ru: "Средиземноморская" }, - french: { en: "French", ru: "Французская" }, - indian: { en: "Indian", ru: "Индийская" }, - russian: { en: "Russian", ru: "Русская" }, - "middle-eastern": { en: "Middle Eastern", ru: "Ближневосточная" }, -}; -const mealTypeLabelMap: Record = { - breakfast: { en: "Breakfast", ru: "Завтрак" }, - lunch: { en: "Lunch", ru: "Обед" }, - dinner: { en: "Dinner", ru: "Ужин" }, - snack: { en: "Snack", ru: "Перекус" }, - dessert: { en: "Dessert", ru: "Десерт" }, -}; - -const difficultyLabelMap: Record = { - easy: { en: "Easy", ru: "Легко", color: "bg-emerald-500/15 text-emerald-400 border-emerald-500/25" }, - medium: { en: "Medium", ru: "Средне", color: "bg-amber-500/15 text-amber-400 border-amber-500/25" }, - hard: { en: "Hard", ru: "Сложно", color: "bg-red-500/15 text-red-400 border-red-500/25" }, -}; - -const dietaryLabelMap: Record = { - vegetarian: { en: "Vegetarian", ru: "Вегетарианское", emoji: "🌿" }, - vegan: { en: "Vegan", ru: "Веганское", emoji: "🌱" }, - "gluten-free": { en: "Gluten-Free", ru: "Без глютена", emoji: "🌾" }, - spicy: { en: "Spicy", ru: "Острое", emoji: "🌶" }, -}; ---
@@ -273,9 +242,44 @@ const dietaryLabelMap: Record
- diff --git a/src/components/generators/NamesGenerator.astro b/src/components/generators/NamesGenerator.astro index 0486f41..2e07412 100644 --- a/src/components/generators/NamesGenerator.astro +++ b/src/components/generators/NamesGenerator.astro @@ -118,8 +118,10 @@ const genderOptions = [