Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/check-descriptor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,12 @@ jobs:
- name: Validate chronicle-package.json
run: node tools/check-package-descriptor.mjs

- name: Test update-info classifier helpers
run: node --test tools/test-update-info.mjs
# Full off-DOM test suite (B-R8). The glob is UNQUOTED so the bash shell
# expands tools/test-*.mjs to explicit file args — Node's own glob for
# --test only landed in Node 21+, and this workflow pins Node 20, so a
# quoted glob reaches Node literally and "cannot be found". The bare
# directory form (`node --test tools/`) also errors on Node 20. Shell
# expansion works on every Node version. This supersedes the old
# single-file test-update-info step.
- name: Run test suite
run: node --test tools/test-*.mjs
12 changes: 11 additions & 1 deletion scripts/_overview-model.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export function buildOverviewModel(p = {}) {
unmatchedMembers = 0,
calendarAvailable = false,
calendarInSync = false,
calendarSyncPaused = false,
errorCount = 0,
matchedSystem = null,
lastSyncTime = 'Never',
Expand Down Expand Up @@ -94,7 +95,16 @@ export function buildOverviewModel(p = {}) {
tab: 'members',
});
}
if (calendarAvailable && !calendarInSync) {
if (calendarAvailable && calendarSyncPaused) {
// Structure mismatch (B-R2): a hard pause, not a mere date drift — flag it
// as an error so it sorts above ordinary warnings.
attention.push({
severity: 'error',
icon: 'fa-calendar-xmark',
text: 'Calendar sync paused — Foundry and Chronicle calendars have different structures.',
tab: 'calendar',
});
} else if (calendarAvailable && !calendarInSync) {
attention.push({
severity: 'warn',
icon: 'fa-calendar-xmark',
Expand Down
Loading