Skip to content

feat(timeplanning): carry OverMidnight per-site flag (proto + gRPC)#1613

Merged
renemadsen merged 5 commits into
stablefrom
feat/overmidnight-assignedsite
Jun 19, 2026
Merged

feat(timeplanning): carry OverMidnight per-site flag (proto + gRPC)#1613
renemadsen merged 5 commits into
stablefrom
feat/overmidnight-assignedsite

Conversation

@renemadsen

Copy link
Copy Markdown
Member

Phase B of the per-site OverMidnight feature. Carries the new AssignedSite.OverMidnight flag (added in Microting.TimePlanningBase 10.0.52) through the plugin contracts:

  • bump Microting.TimePlanningBase → 10.0.52
  • OverMidnight on the AssignedSite model (+ implicit operator) and the coworker Site model
  • over_midnight proto field on AssignedSite (163) and Site (24)
  • gRPC mapping on the assigned-site response and both coworker-site loops
  • OverMidnight = assignedSite.OverMidnight in the three new Site{} assemblers in TimeSettingService (kiosk / active / resigned) so the coworker contract isn't silently false

Server only carries the flag; the behavior change is client-side (flutter-time Phase C). Default false.

Spec: flutter-time/docs/superpowers/specs/2026-06-17-over-midnight-per-site-flag-design.md

🤖 Generated with Claude Code

The gRPC layer already mapped site.OverMidnight, but the three
new Site { } initializers in TimeSettingService dropped it, so the
coworker list always returned over_midnight=false. Set it from the
base AssignedSite entity (OverMidnight column in TimePlanningBase 10.0.52).
Copilot AI review requested due to automatic review settings June 19, 2026 06:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Ready to approve

The OverMidnight flag is consistently added across models, proto contracts, and gRPC/server mappings without introducing behavioral changes server-side.

Note: this review does not count toward required approvals for merging.

Pull request overview

This PR propagates the new per-site OverMidnight flag (introduced upstream in Microting.TimePlanningBase) through the TimePlanning plugin’s C# settings models, protobuf contracts, and gRPC mappings so clients can reliably read the value (defaulting to false).

Changes:

  • Bumps Microting.TimePlanningBase from 10.0.51 to 10.0.52.
  • Adds OverMidnight to the plugin’s AssignedSite and coworker Site C# settings models (including the implicit conversion for AssignedSite).
  • Extends settings.proto and maps the new field in TimePlanningSettingsGrpcService and in the three coworker-site assemblers in TimeSettingService.
File summaries
File Description
eFormAPI/Plugins/TimePlanning.Pn/TimePlanning.Pn/TimePlanning.Pn.csproj Updates dependency to Microting.TimePlanningBase 10.0.52.
eFormAPI/Plugins/TimePlanning.Pn/TimePlanning.Pn/Services/TimePlanningSettingService/TimeSettingService.cs Carries assignedSite.OverMidnight into coworker Site objects in kiosk/active/resigned loops.
eFormAPI/Plugins/TimePlanning.Pn/TimePlanning.Pn/Services/GrpcServices/TimePlanningSettingsGrpcService.cs Maps OverMidnight into gRPC AssignedSite response and both coworker-site response loops.
eFormAPI/Plugins/TimePlanning.Pn/TimePlanning.Pn/Protos/settings.proto Adds over_midnight fields to AssignedSite (163) and Site (24).
eFormAPI/Plugins/TimePlanning.Pn/TimePlanning.Pn/Infrastructure/Models/Settings/Site.cs Adds OverMidnight property to coworker Site model.
eFormAPI/Plugins/TimePlanning.Pn/TimePlanning.Pn/Infrastructure/Models/Settings/AssignedSite.cs Adds OverMidnight property and includes it in implicit conversion mapping.

Copilot's findings

  • Files reviewed: 6/6 changed files
  • Comments generated: 0

Note

Your feedback helps us improve the quality of this feature.
Please use 👍 or 👎 to tell us whether this assessment is correct.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@renemadsen renemadsen merged commit eba8a03 into stable Jun 19, 2026
75 of 76 checks passed
@renemadsen renemadsen deleted the feat/overmidnight-assignedsite branch June 19, 2026 07:28
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.

2 participants