Skip to content

feat: allow editing meetings with past start date - WPB-27922 - #5210

Open
caldrian wants to merge 4 commits into
developfrom
feat/allow-editing-ongoing-meetings-WPB-27922
Open

feat: allow editing meetings with past start date - WPB-27922#5210
caldrian wants to merge 4 commits into
developfrom
feat/allow-editing-ongoing-meetings-WPB-27922

Conversation

@caldrian

@caldrian caldrian commented Sep 9, 2026

Copy link
Copy Markdown
Contributor
TaskWPB-27922 [iOS] Allow editing an ongoing meeting without dropping today's occurrence

Issue

Allow editing meetings with start times up to 24 hours in the past, matching the backend’s updated validation.
Recurring meetings within this window now retain their original start and end times instead of advancing to a future occurrence. Older recurring meetings use the first occurrence within the allowed window. The edit date picker uses the same 24-hour limit.

Testing

Create a meeting. Once the meeting is ongoing, try to edit it.


Checklist

  • Title contains a reference JIRA issue number like [WPB-XXX].
  • Description is filled and free of optional paragraphs.
  • Adds/updates automated tests.

UI accessibility checklist

If your PR includes UI changes, please utilize this checklist:

  • Make sure you use the API for UI elements that support large fonts.
  • All colors are taken from WireDesign.ColorTheme or constructed using WireDesign.BaseColorPalette.
  • New UI elements have Accessibility strings for VoiceOver.

Copilot AI lite review requested due to automatic review settings September 9, 2026 15:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The view model can initialize startDate outside the startDateRange for non-recurring meetings older than 24h, creating an inconsistent DatePicker binding and risking backend-rejected submissions.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Updates the meeting editing flow in WireCallingUI to align with the backend’s new validation rules by allowing edited meetings to start up to 24 hours in the past, and adjusting how recurring meetings choose an editable occurrence within that window.

Changes:

  • Updated startDateRange in edit mode to allow selecting start times up to 24 hours ago.
  • Adjusted recurring-meeting occurrence selection to pick the first occurrence within the last 24 hours (instead of always advancing to a future one).
  • Expanded presentation-layer tests to cover the 24-hour window behavior for recurring/non-recurring edit scenarios.
File summaries
File Description
WireCalling/Sources/WireCallingUI/Views/WireMeetings/MeetingForm/MeetingFormViewModel.swift Applies the new 24-hour edit window and updates recurring occurrence selection logic.
WireCalling/Tests/WireCallingTests/WireMeetings/PresentationTests/MeetingFormViewModelTests.swift Updates/adds tests to validate the new edit-window behavior and recurring occurrence handling.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Test Results

0 tests   0 ✅  0s ⏱️
0 suites  0 💤
0 files    0 ❌

Results for commit aa2f72a.

♻️ This comment has been updated with latest results.

Summary: workflow run #34375792450
Allure report (download zip): html-report-33276-feat_allow-editing-ongoing-meetings-WPB-27922

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

A submit-path bug can leave stale error flags set and the new user-facing localization keys are only added for English, which can break the alert text in other supported locales.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 2
  • Review effort level: Lite

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The new start-date picker range can allow selecting dates earlier than the documented 24-hour limit, which conflicts with the PR’s stated behavior.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment on lines +109 to +112
var startDatePickerRange: PartialRangeFrom<Date> {
guard mode.isEdit else { return startDateRange }
return min(startDate, startDateRange.lowerBound)...
}
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