Skip to content

Add place buttons to the agenda page - #23

Merged
JohanO merged 1 commit into
mainfrom
feature/agenda-place-buttons
Sep 7, 2026
Merged

Add place buttons to the agenda page#23
JohanO merged 1 commit into
mainfrom
feature/agenda-place-buttons

Conversation

@JohanO

@JohanO JohanO commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds a row of place buttons under each day's event list on the Agenda page
  • Clicking a place creates a full-day, no-reminder, showAs: free event titled with the place name on the personal Microsoft (Graph) calendar
  • Selecting a different place for the same day replaces the previous place event (radio-button semantics); clicking the already-active place is a no-op
  • The place event itself is hidden from that day's event list (matched by title + calendar) since the button row already shows the selection

Implementation

  • PlaceDayEvent entity + migration tracks which place is assigned to each day and its linked Graph event id
  • GraphCalendarEventsClient gains CreateAllDayEventAsync/DeleteEventAsync (Graph integration was read-only before)
  • PlaceEventsService resolves the personal Microsoft account (the one with Calendars.ReadWrite) and handles create/replace/no-op logic
  • Home.razor renders the button row and wires it up

Test plan

  • dotnet build — green
  • Verified live: clicking a place creates the event immediately, switching places replaces the old event, re-clicking the active place is a no-op, selection survives a page reload
  • Confirmed created/existing place events show as free in Outlook, not busy

🤖 Generated with Claude Code

Clicking a place under a day creates a full-day, no-reminder, free-showing
event on the personal Microsoft calendar, replacing any previous place event
for that day. The place event is hidden from the day's event list since the
button row already shows the selection.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@JohanO
JohanO merged commit aa0ff35 into main Sep 7, 2026
1 check passed
@JohanO
JohanO deleted the feature/agenda-place-buttons branch September 7, 2026 10:27
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