Skip to content

Commit 35558c4

Browse files
committed
Fix end time and cancelled-event contrast from review
- sync-community-call.mjs/tests/seeded content: the authoritative recurring ICS (PowerShell-RFC/CommunityCall/PSTeamsCall.ics) has DTEND 10:30 Pacific, not 10:00 as previously assumed — fixed both the default-occurrence and explicit-date-override end times, updated tests, and corrected all four seeded calendar files (including the two frozen cancelled ones, which the sync itself will never touch again). - calendar.html: removed the card-wide opacity-75 on cancelled events — it was dragging the title/reason/meta text contrast to ~2.9:1/3.9:1/2.9:1, below the 3:1/4.5:1 WCAG minimums. The dark date block, strikethrough title, and red 'Cancelled' badge already distinguish cancelled events without needing to dim the rest of the card. - Verified: 24 tests pass, a real hugo production build + ICS validation show DTEND at 18:30Z for every occurrence, and a live dry-run against the real GitHub API still reports "already synchronized".
1 parent bd222b3 commit 35558c4

7 files changed

Lines changed: 10 additions & 10 deletions

File tree

‎.github/scripts/sync-community-call.mjs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export function candidateOccurrences(count, from = new Date()) {
8383
monthIndex: normalizedMonth,
8484
day,
8585
startDate: pacificDateTimeToIso(normalizedYear, normalizedMonth, day, 9, 30),
86-
endDate: pacificDateTimeToIso(normalizedYear, normalizedMonth, day, 10, 0),
86+
endDate: pacificDateTimeToIso(normalizedYear, normalizedMonth, day, 10, 30),
8787
});
8888
}
8989
return occurrences;
@@ -157,7 +157,7 @@ export function applyAgendaDiscussions(occurrences, discussions) {
157157
? {
158158
day: parsed.day,
159159
startDate: pacificDateTimeToIso(occurrence.year, occurrence.monthIndex, parsed.day, 9, 30),
160-
endDate: pacificDateTimeToIso(occurrence.year, occurrence.monthIndex, parsed.day, 10, 0),
160+
endDate: pacificDateTimeToIso(occurrence.year, occurrence.monthIndex, parsed.day, 10, 30),
161161
}
162162
: {};
163163

‎.github/scripts/sync-community-call.test.mjs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ test('candidateOccurrences rolls over into the next year', () => {
4343
});
4444

4545
test('upcomingOccurrences drops a month whose call already ended and keeps the window full', () => {
46-
// Nov 19, 2026's call ends 18:00Z; asking at 20:31Z should start from December.
46+
// Nov 19, 2026's call ends 18:30Z; asking at 20:31Z should start from December.
4747
const from = new Date('2026-11-19T20:31:00Z');
4848
const occurrences = upcomingOccurrences(candidateOccurrences(5, from), 3, from);
4949
assert.deepEqual(occurrences.map((o) => [o.year, o.monthIndex]), [
@@ -64,8 +64,8 @@ test('upcomingOccurrences keeps a rescheduled month whose default date already e
6464
// filtering) moves it to Nov 30, which is still ahead of `from`.
6565
const from = new Date('2026-11-20T00:00:00Z');
6666
const rescheduled = [
67-
{ year: 2026, monthIndex: 10, day: 30, startDate: pacificDateTimeToIso(2026, 10, 30, 9, 30), endDate: pacificDateTimeToIso(2026, 10, 30, 10, 0) },
68-
{ year: 2026, monthIndex: 11, day: 17, startDate: pacificDateTimeToIso(2026, 11, 17, 9, 30), endDate: pacificDateTimeToIso(2026, 11, 17, 10, 0) },
67+
{ year: 2026, monthIndex: 10, day: 30, startDate: pacificDateTimeToIso(2026, 10, 30, 9, 30), endDate: pacificDateTimeToIso(2026, 10, 30, 10, 30) },
68+
{ year: 2026, monthIndex: 11, day: 17, startDate: pacificDateTimeToIso(2026, 11, 17, 9, 30), endDate: pacificDateTimeToIso(2026, 11, 17, 10, 30) },
6969
];
7070
const occurrences = upcomingOccurrences(rescheduled, 2, from);
7171
assert.deepEqual(occurrences.map((o) => [o.year, o.monthIndex, o.day]), [

‎content/calendar/community-call-2026-11.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
communityCallSource: powershell
33
startDate: "2026-11-19T17:30:00.000Z"
4-
endDate: "2026-11-19T18:00:00.000Z"
4+
endDate: "2026-11-19T18:30:00.000Z"
55
title: "PowerShell Community Call"
66
externalUrl: "https://aka.ms/JoinPSCall"
77
virtual: true

‎content/calendar/community-call-2026-12.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
communityCallSource: powershell
33
startDate: "2026-12-17T17:30:00.000Z"
4-
endDate: "2026-12-17T18:00:00.000Z"
4+
endDate: "2026-12-17T18:30:00.000Z"
55
title: "PowerShell Community Call"
66
externalUrl: "https://aka.ms/JoinPSCall"
77
virtual: true

‎content/calendar/community-call-2027-01.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
communityCallSource: powershell
33
startDate: "2027-01-21T17:30:00.000Z"
4-
endDate: "2027-01-21T18:00:00.000Z"
4+
endDate: "2027-01-21T18:30:00.000Z"
55
title: "PowerShell Community Call"
66
externalUrl: "https://aka.ms/JoinPSCall"
77
virtual: true

‎content/calendar/community-call-2027-02.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
communityCallSource: powershell
33
startDate: "2027-02-18T17:30:00.000Z"
4-
endDate: "2027-02-18T18:00:00.000Z"
4+
endDate: "2027-02-18T18:30:00.000Z"
55
title: "PowerShell Community Call"
66
externalUrl: "https://aka.ms/JoinPSCall"
77
virtual: true

‎themes/powershell-community/layouts/_default/calendar.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ <h2 class="text-3xl font-bold text-gray-900">Upcoming Events</h2>
5454
{{ range $upcoming }}
5555
{{ $matchedGroup := partial "calendar-matched-user-group.html" (dict "externalUrl" .Params.externalUrl "site" $.Site) }}
5656
{{ $cancelled := .Params.cancelled }}
57-
<div class="bg-gray-50 rounded-xl border overflow-hidden transition-all duration-200 {{ if $cancelled }}border-gray-200 opacity-75{{ else }}border-gray-200 hover:border-purple-400 hover:shadow-md{{ end }}">
57+
<div class="bg-gray-50 rounded-xl border overflow-hidden transition-all duration-200 {{ if $cancelled }}border-gray-200{{ else }}border-gray-200 hover:border-purple-400 hover:shadow-md{{ end }}">
5858
<div class="md:flex">
5959
<!-- Date Block -->
6060
<div class="md:w-36 text-white p-6 flex flex-col items-center justify-center text-center flex-shrink-0 {{ if $cancelled }}bg-gray-800{{ else }}bg-purple-600{{ end }}">

0 commit comments

Comments
 (0)