Skip to content

Add SupersededAtUtc to ArrangementPolicy; hide superseded types from New Arrangement UI#1149

Merged
LarsKemmann merged 5 commits into
mainfrom
copilot/add-supersedetatutc-to-arrangements
May 29, 2026
Merged

Add SupersededAtUtc to ArrangementPolicy; hide superseded types from New Arrangement UI#1149
LarsKemmann merged 5 commits into
mainfrom
copilot/add-supersedetatutc-to-arrangements

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 29, 2026

ArrangementPolicy lacked a way to mark arrangement types as superseded, causing outdated types to appear in the "+ New Arrangement" button list on the client family screen.

Changes

  • IPoliciesResource.cs — Added DateTime? SupersededAtUtc = null to ArrangementPolicy, matching the existing pattern on VolunteerRolePolicyVersion / VolunteerFamilyRolePolicyVersion
  • GeneratedClient.ts — Added supersededAtUtc to ArrangementPolicy class and IArrangementPolicy interface with standard date serialization/deserialization
  • ArrangementsSection.tsx — Filter out superseded policies before rendering the create-arrangement buttons:
    policy.referralPolicy?.arrangementPolicies
      ?.filter((arrangementPolicy) => !arrangementPolicy.supersededAtUtc)
      .map(...)
    Existing arrangements of superseded types continue to display normally in arrangement cards.

Copilot AI changed the title [WIP] Add 'SupersededAtUtc' concept to arrangements Add SupersededAtUtc to ArrangementPolicy; hide superseded types from New Arrangement UI May 29, 2026
Copilot AI requested a review from LarsKemmann May 29, 2026 16:55
@LarsKemmann LarsKemmann marked this pull request as ready for review May 29, 2026 18:52
@LarsKemmann LarsKemmann requested a review from PabloDinella as a code owner May 29, 2026 18:52
Copilot AI requested a review from LarsKemmann May 29, 2026 18:54
@LarsKemmann LarsKemmann merged commit 685db23 into main May 29, 2026
2 checks passed
@LarsKemmann LarsKemmann deleted the copilot/add-supersedetatutc-to-arrangements branch May 29, 2026 19:11
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.

Add a 'SupersededAtUtc' concept to arrangements

2 participants