diff options
| author | Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> | 2026-11-01 22:58:37 +0900 |
|---|---|---|
| committer | Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> | 2026-11-01 22:58:37 +0900 |
| commit | a7083092f28daab711a35765612781bb275c0e5a (patch) | |
| tree | 8e0e68ceee1549bfa769f3fb030efa1284a41cff /src/components | |
| parent | 9aec599d3ba5dc57119842eef5646edc39115920 (diff) | |
hp-archive: 「審議会等」から市議会を分離
- カテゴリ「審議会等」は市議会を除く会議だけにし、市議会と重複しないようにした
- 一覧表のラベルと見出しを「審議会等・市議会」に変更
- カテゴリボタンは市議会を審議会等より前に配置
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/ScheduleInteractive.astro | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/components/ScheduleInteractive.astro b/src/components/ScheduleInteractive.astro index 129b38a..58574ce 100644 --- a/src/components/ScheduleInteractive.astro +++ b/src/components/ScheduleInteractive.astro @@ -247,7 +247,8 @@ function matchesCategory(e) { if (activeCategory === 'all') return true; if (activeCategory === COUNCIL_KEY) return isCouncil(e); - if (activeCategory === MEETING_ICON) return e.type === 'meeting'; + // 「審議会等」は市議会を除く(市議会は別のボタンで絞り込む)。 + if (activeCategory === MEETING_ICON) return e.type === 'meeting' && !isCouncil(e); return e.category === activeCategory; } @@ -429,7 +430,7 @@ const eventStatus = ensureStatus(eventsTable.parentElement, 'event'); function updateTableStatus(status, type, total, visible) { - const tableLabel = type === 'meeting' ? '審議会等' : 'イベント'; + const tableLabel = type === 'meeting' ? '審議会等・市議会' : 'イベント'; const filtered = activeCategory !== 'all'; status.classList.toggle('is-filtered', filtered); const text = filtered @@ -500,17 +501,17 @@ const buttonDefs = [ { category: 'all', icon: '', label: 'すべて', count: entries.length }, { - category: MEETING_ICON, - icon: MEETING_ICON, - label: '審議会等', - count: meetingEntries.length, - }, - { category: COUNCIL_KEY, icon: MEETING_ICON, label: '市議会', count: entries.filter(isCouncil).length, }, + { + category: MEETING_ICON, + icon: MEETING_ICON, + label: '審議会等', + count: meetingEntries.length, + }, ...CATEGORY_DEFS.map((c) => ({ category: c.icon, icon: c.icon, |
