Skip to content

feat(editor): check resource availability while editing#8589

Open
ChristophWurst wants to merge 4 commits into
mainfrom
feat/resource-availability-check
Open

feat(editor): check resource availability while editing#8589
ChristophWurst wants to merge 4 commits into
mainfrom
feat/resource-availability-check

Conversation

@ChristophWurst

@ChristophWurst ChristophWurst commented Jul 10, 2026

Copy link
Copy Markdown
Member

Follow-up to #8588 to automatically check availability of a selected room.

Full change log

  • Availability is automatically checked and shown as subline of selected resources
  • Availability is also shown in the search dropdown, including busy rooms, so that you know they are booked. Previously they were filtered out, which gave the UX as if your search was wrong.
  • Suggested rooms adhere to the availability. They go away if they are already busy for the selected time.
  • Time changes causes a re-evaluation of suggested rooms according to new availability.

Closes #7772

How to test

  1. Have at least one room (via calendar_resource_management)
  2. Create event A with no attendee but the room -> it will show as Still available before saving
  3. Create event B with no attendees at the same time as A -> it will show as Already booked before saving
  4. Create event C with one attendee at a free time for the room -> it will suggest the room (if its capacity is >=1)
  5. Create event D with one attendee at the same time as A -> it will not suggest the room
  6. Same as 5. but move the time to a free slot -> it will suggest the room again

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@codecov

codecov Bot commented Jul 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Base automatically changed from fix/resource-booking-wording to main July 13, 2026 13:44
@ChristophWurst
ChristophWurst force-pushed the feat/resource-availability-check branch 2 times, most recently from 66e8024 to ef573a6 Compare July 13, 2026 16:17
checkResourceAvailability() assigned participationStatus to the
options array instead of the option element, and no consumer reads
this property. Drop the assignment.

Assisted-by: ClaudeCode:claude-fable-5
Signed-off-by: Christoph Wurst <1374172+ChristophWurst@users.noreply.github.com>
Predict the booking outcome of pending rooms/resources with a
debounced free busy request while the event is being edited, instead
of only finding out after saving. Pending resources now show
"Checking availability" and then "Still available" or "Already
booked". The server-side check on save remains authoritative.

Resources that already accepted are not probed again because their
own reservation would show up as busy (VFREEBUSY carries no UIDs),
and recurring events are only probed for the edited occurrence.

Fixes #7772

Assisted-by: ClaudeCode:claude-fable-5
Signed-off-by: Christoph Wurst <1374172+ChristophWurst@users.noreply.github.com>
Assisted-by: ClaudeCode:claude-fable-5
Signed-off-by: Christoph Wurst <1374172+ChristophWurst@users.noreply.github.com>
@ChristophWurst
ChristophWurst force-pushed the feat/resource-availability-check branch from ef573a6 to 510fc09 Compare July 24, 2026 07:43
Signed-off-by: Christoph Wurst <1374172+ChristophWurst@users.noreply.github.com>
@ChristophWurst ChristophWurst added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Jul 24, 2026
@ChristophWurst
ChristophWurst marked this pull request as ready for review July 24, 2026 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews enhancement New feature request Feature: Rooms and Resources

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Room Resources Can Be Double-Booked: No Confirmation or Conflict Prevention

1 participant