From bece8fd71bb58e214acf1c02ba1ccbe000d23dd6 Mon Sep 17 00:00:00 2001 From: Matthew Holloway Date: Tue, 27 Aug 2024 01:03:15 +1200 Subject: [PATCH] feat: Agenda URL #hash scrolls to 'now' or specific day (#7772) * feat: Agenda URL #now scroll to current event * fix: agendaData date offset for dev purposes * feat: scroll to day * fix: Showing correct hostname in agenda modify log * feat: mobile menu scroll to hash and general bug fixes * fix: agenda mobile menu formatting and Playwright selectors * fix: removing spurious ? mark * chore: removing redundant agenda time setter in favour of agenda settings panel for debugging * style: Update AgendaMobileBar.vue * style: Update AgendaScheduleList.vue --------- Co-authored-by: Nicolas Giard --- client/agenda/Agenda.vue | 2 +- client/agenda/AgendaMobileBar.vue | 54 +++++++++++++++++++++---- client/agenda/AgendaQuickAccess.vue | 10 ++--- client/agenda/AgendaScheduleList.vue | 29 ++++++++++++- client/agenda/store.js | 7 +++- playwright/tests/meeting/agenda.spec.js | 2 +- 6 files changed, 85 insertions(+), 19 deletions(-) diff --git a/client/agenda/Agenda.vue b/client/agenda/Agenda.vue index 40dae008a4..99a46f4fe9 100644 --- a/client/agenda/Agenda.vue +++ b/client/agenda/Agenda.vue @@ -434,7 +434,7 @@ function reconnectScrollObservers () { scrollObserver.disconnect() visibleDays.length = 0 for (const mDay of agendaStore.meetingDays) { - const el = document.getElementById(`agenda-day-${mDay.slug}`) + const el = document.getElementById(mDay.slug) el.dataset.dayId = mDay.slug.toString() el.dataset.dayTs = mDay.ts scrollObserver.observe(el) diff --git a/client/agenda/AgendaMobileBar.vue b/client/agenda/AgendaMobileBar.vue index 5d15e9e692..78af96e255 100644 --- a/client/agenda/AgendaMobileBar.vue +++ b/client/agenda/AgendaMobileBar.vue @@ -29,7 +29,6 @@