chore(conductor): Add new track 'Generic RRULE Formatter'

This commit is contained in:
2026-02-21 07:37:34 -08:00
parent 7e848feeee
commit bc8e67fbdf
5 changed files with 65 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
# Implementation Plan - Generic RRULE Formatter
## Phase 1: Reproduction & Test Setup
- [ ] Task: Create reproduction test case for `BYDAY` object
- [ ] Add a test in `icalendar_test.ts` mocking a `BYDAY` property as an array of objects (e.g. `[{ day: 'MO' }]`).
- [ ] Run the test and confirm it fails with `SyntaxError: Invalid weekday string: [object Object]`.
- [ ] Task: Conductor - User Manual Verification 'Reproduction & Test Setup' (Protocol in workflow.md)
## Phase 2: Implementation
- [ ] Task: Implement Recursive Formatter
- [ ] Update `formatRRuleValue` in `icalendar.ts` to be a recursive function.
- [ ] Handle Arrays by joining elements with commas.
- [ ] Handle `Date` objects using the existing iCal format.
- [ ] Handle property objects (extract `date`, `day`, or `value` properties).
- [ ] Run the reproduction test to confirm it passes.
- [ ] Task: Conductor - User Manual Verification 'Implementation' (Protocol in workflow.md)
## Phase 3: Verification & Cleanup
- [ ] Task: Composite and Regression Testing
- [ ] Add a complex test case containing both nested `UNTIL` dates and `BYDAY` arrays.
- [ ] Run the full regression test suite in `icalendar_test.ts`.
- [ ] Task: Conductor - User Manual Verification 'Verification & Cleanup' (Protocol in workflow.md)