Skip to content

Fix: Room description editor not closed after 403 error on save#3000

Merged
samuelwei merged 6 commits intodevelopfrom
copilot/fix-room-description-editor-403-error
Apr 8, 2026
Merged

Fix: Room description editor not closed after 403 error on save#3000
samuelwei merged 6 commits intodevelopfrom
copilot/fix-room-description-editor-403-error

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 30, 2026

When saving the room description fails with a 403 (Forbidden) — e.g. because the user's role was downgraded in another session — the TipTapEditor remained open and the save button stayed visible, leaving the UI in an inconsistent edit state.

Changes

  • RoomTabDescription.vue: In the save() catch handler, explicitly close the editor (editorOpen.value = false) when the response is HTTP_FORBIDDEN (403), before delegating to the generic error handler
  • roomCommands.js: Extended the description case in checkRoomAuthErrors to assert that the TipTap editor and save button are absent after a 403 error
  • CHANGELOG.md: Added entry under [Unreleased] → Fixed

Type

  • Bugfix
  • Feature
  • Documentation
  • Refactoring (e.g. Style updates, Test implementation, etc.)
  • Other (please describe):

Checklist

  • Code updated to current develop branch head
  • Passes CI checks
  • Is a part of an issue
  • Tests added for the bugfix or newly implemented feature, describe below why if not
  • Changelog is updated
  • Documentation of code and features exists

Changes

  • Close TipTapEditor on 403 response in RoomTabDescription.vue save handler
  • Add assertions for editor/save-button absence post-403 in checkRoomAuthErrors
  • Add CHANGELOG entry

Other information

Copilot AI changed the title [WIP] Fix room description editor not closing after 403 error on save Fix: Room description editor not closed after 403 error on save Mar 30, 2026
Copilot AI requested a review from Sabr1n4W March 30, 2026 14:24
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 31, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.70%. Comparing base (819bebb) to head (358fa43).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #3000      +/-   ##
=============================================
- Coverage      97.14%   96.70%   -0.44%     
- Complexity         0     1905    +1905     
=============================================
  Files            179      445     +266     
  Lines           6314    12885    +6571     
  Branches        2076     2077       +1     
=============================================
+ Hits            6134    12461    +6327     
- Misses           180      424     +244     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cypress
Copy link
Copy Markdown

cypress bot commented Mar 31, 2026

PILOS    Run #2913

Run Properties:  status check passed Passed #2913  •  git commit 358fa43e6a: Fix: Room description editor not closed after 403 error on save
Project PILOS
Branch Review copilot/fix-room-description-editor-403-error
Run status status check passed Passed #2913
Run duration 07m 12s
Commit git commit 358fa43e6a: Fix: Room description editor not closed after 403 error on save
Committer Copilot
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 622
View all changes introduced in this branch ↗︎

@Sabr1n4W Sabr1n4W marked this pull request as ready for review April 8, 2026 13:02
@samuelwei samuelwei merged commit 1acba0f into develop Apr 8, 2026
7 of 8 checks passed
@samuelwei samuelwei deleted the copilot/fix-room-description-editor-403-error branch April 8, 2026 13: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.

Room description editor not closed after 403 error on save

3 participants