Repository navigation
Conversation
This was referenced Oct 15, 2026
Open
kabaros
force-pushed
the
multi-calendar-dates-skill
branch
from
October 15, 2026 14:14
ac4974f to
1b9e825
Compare
Moves DHIS2 apps onto @dhis2/multi-calendar-dates 3.2.0+ and direct @js-temporal/polyfill usage onto 0.5.1, as a behavioural migration: before/after regression snapshots, migrating hand-rolled date code onto formatCalendarDate/addToCalendarDate/getDaysInMonth, the Ethiopic era patch for CLDR 48, and a source-map check of the Temporal copies in the build. Checks @dhis2/ui is 10.19.3+ first, since older versions bring their own multi-calendar-dates 2.x. Split out of the modernise-apps skill, which now points to it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
kabaros
force-pushed
the
multi-calendar-dates-skill
branch
from
October 15, 2026 14:23
1b9e825 to
106c0d6
Compare
1 of 2 tasks
KaiVandivier
approved these changes
Oct 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
calendar-upgradeskill for moving existing DHIS2 apps onto@dhis2/multi-calendar-dates3.x (3.2.0+) and@js-temporal/polyfill0.5.1. This was split out of themodernise-appsskill (#2). It is a behavioural migration rather than a tooling one, and people ask for it on its own ("update multi-calendar-dates in this app").dhis2/multi-calendar-dates#102 removed Temporal types from the library's public API. Code that gets this wrong still compiles and runs, but returns wrong dates, so every step is guarded by regression snapshots captured before the change.
@dhis2/uiprerequisite. Versions before10.19.3bring their ownmulti-calendar-dates2.x. If the app is on an older 10.x, the skill bumps@dhis2/uifirst in its own commit, pointing tomodernise-apps' platform library bump step when that skill is installed. If the app is on 9.x or older, it stops and asks, because that is a separate breaking upgrade.getNowInCalendar, the period helpers,useDatePicker) acrossgregory,ethiopianandnepali. They are captured on the installed version and re-run unmodified with--ciafter the bump.formatCalendarDate,addToCalendarDateandgetDaysInMonth, and the app's own helpers are deleted.@js-temporal/polyfillthemselves (often pinned to0.4.3viaresolutions) move to0.5.1as a real dependency, with the same snapshot treatment. CLDR 48 (Node 24) breaks Ethiopic eras in both versions (LIBS-830). The skill patches0.4.3only temporarily to capture the baseline, and keeps a0.5.1patch in its own commit, with an offer to revert it.0.5.1.The content is unchanged from what was in
modernise-apps, reorganised into three reference files (multi-calendar-dates-bump.md,temporal-polyfill-upgrade.mdandbundle-temporal-check.md), with a new SKILL.md and the@dhis2/uiprerequisite added.Test plan
multi-calendar-dates-bump-aggregate-data-entry-app). It needs thereal-aggregate-data-entry-appfixture copied intosrc/skills/calendar-upgrade-workspace/fixtures/.npx skills add /path/to/ai-devtools --skill calendar-upgrade -yagainst an app onmulti-calendar-dates2.x and confirm the skill triggers on "update multi-calendar-dates".🤖 Generated with Claude Code