Skip to content

Commit 9d74157

Browse files
JacobCoffeeclaude
andauthored
fix(schedule): don't collapse same-named breaks across the day (#289)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent f7e968e commit 9d74157

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/app/providers/conference-data.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,12 @@ export class ConferenceData {
261261
data.schedule.filter((s: any) => collapseKinds.includes(s.kind)).forEach((slot: any) => {
262262
const day = new Date(slot.start).toLocaleDateString('en-us', {timeZone: environment.timezone, weekday: 'short'});
263263
const slotName = markdownToTxt(slot.name);
264-
const key = `${slot.kind}-${day}-${slotName}`;
264+
// Include start time in the key so morning and afternoon "Break"
265+
// entries don't collapse into a single 10:30-4:30 row that spans
266+
// the lunches and afternoon talks. Per-room same-start slots
267+
// (e.g. all the 13:00 Lunch (Hall AB) entries across talk rooms)
268+
// still share a key and merge correctly.
269+
const key = `${slot.kind}-${day}-${slotName}-${slot.start}`;
265270
if (!collapsedGroups.has(key)) {
266271
// Rename lunchtime breaks
267272
let name = slot.kind === 'poster' ? 'Posters' : markdownToTxt(slot.name);

0 commit comments

Comments
 (0)