Skip to content

fix: Parse API response correctly in admin meetings page#790

Merged
bokelley merged 3 commits into
mainfrom
bokelley/wg-meetings-fix
Jan 16, 2026
Merged

fix: Parse API response correctly in admin meetings page#790
bokelley merged 3 commits into
mainfrom
bokelley/wg-meetings-fix

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Summary

  • Fix admin meetings page crash when loading meetings, series, or viewing meeting details
  • The API returns { meetings: [...] }, { series: [...] }, and { meeting, attendees } but the frontend was assigning the entire response object directly

Changes

  • loadMeetings(): Extract data.meetings from response instead of using response directly
  • loadSeries(): Extract data.series and handle case when no working group is selected (series endpoint requires it)
  • viewMeeting(): Properly extract meeting and attendees from response

Test plan

  • Navigate to Admin > Meetings - page loads without errors
  • Navigate to Admin > Working Groups, click Meetings button for a group - page loads filtered to that group
  • Click Series tab - shows "No meeting series found" without errors
  • Browser testing completed with Vibium

🤖 Generated with Claude Code

bokelley and others added 3 commits January 16, 2026 06:09
The admin meetings page was treating API responses as raw arrays instead of
extracting data from the response object structure. The APIs return
{ meetings: [...] }, { series: [...] }, and { meeting, attendees } but
the frontend was assigning the entire response object directly.

- Fix loadMeetings() to extract data.meetings from response
- Fix loadSeries() to extract data.series and handle missing group filter
- Fix viewMeeting() to properly merge meeting and attendees from response

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Allows admins to schedule a meeting directly from the committee list
without having to navigate to the meetings page first.

- Added Schedule button on each committee row
- Auto-opens scheduling modal via URL parameter (?action=schedule)
- Working group is pre-selected in the modal

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Prevents the modal from re-opening if the user refreshes the page
or bookmarks it while the modal is open.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bokelley bokelley merged commit e7f7e63 into main Jan 16, 2026
6 checks passed
bokelley added a commit that referenced this pull request Jan 16, 2026
* fix: Parse API response correctly in admin meetings page

The admin meetings page was treating API responses as raw arrays instead of
extracting data from the response object structure. The APIs return
{ meetings: [...] }, { series: [...] }, and { meeting, attendees } but
the frontend was assigning the entire response object directly.

- Fix loadMeetings() to extract data.meetings from response
- Fix loadSeries() to extract data.series and handle missing group filter
- Fix viewMeeting() to properly merge meeting and attendees from response

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* feat: Add Schedule button to admin working groups page

Allows admins to schedule a meeting directly from the committee list
without having to navigate to the meetings page first.

- Added Schedule button on each committee row
- Auto-opens scheduling modal via URL parameter (?action=schedule)
- Working group is pre-selected in the modal

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* chore: Clear action param from URL after opening schedule modal

Prevents the modal from re-opening if the user refreshes the page
or bookmarks it while the modal is open.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
bokelley added a commit that referenced this pull request Jan 20, 2026
* fix: Parse API response correctly in admin meetings page

The admin meetings page was treating API responses as raw arrays instead of
extracting data from the response object structure. The APIs return
{ meetings: [...] }, { series: [...] }, and { meeting, attendees } but
the frontend was assigning the entire response object directly.

- Fix loadMeetings() to extract data.meetings from response
- Fix loadSeries() to extract data.series and handle missing group filter
- Fix viewMeeting() to properly merge meeting and attendees from response

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* feat: Add Schedule button to admin working groups page

Allows admins to schedule a meeting directly from the committee list
without having to navigate to the meetings page first.

- Added Schedule button on each committee row
- Auto-opens scheduling modal via URL parameter (?action=schedule)
- Working group is pre-selected in the modal

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* chore: Clear action param from URL after opening schedule modal

Prevents the modal from re-opening if the user refreshes the page
or bookmarks it while the modal is open.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant