fix(bookings): allow filter changes when permission errors occur#24202
fix(bookings): allow filter changes when permission errors occur#24202KartikLabhshetwar wants to merge 27 commits intocalcom:mainfrom
Conversation
|
@KartikLabhshetwar is attempting to deploy a commit to the cal Team on Vercel. A member of the Team first needs to authorize it. |
WalkthroughThe PR updates apps/web/modules/bookings/views/bookings-listing-view.tsx. DataTableWrapper is now always rendered, removing its previous dependency on a non-error state. WipeMyCalActionButton rendering is separated and gated by: there are upcoming bookings for today, the status is "upcoming", and the query status is not "error". ToolbarLeft, ToolbarRight, LoaderView, and EmptyView remain as before. No exported/public interfaces were altered. Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
dhairyashiil
left a comment
There was a problem hiding this comment.
Please attach before and after loom video, making it draft until then.
hi @dhairyashiil please check the before and after demo. and see if everything is okay here. |
dhairyashiil
left a comment
There was a problem hiding this comment.
LGTM 👍🏼 , Thank you for your contribution Kartik 🎉
E2E results are ready! |
4716b54 to
e16ee37
Compare
dhairyashiil
left a comment
There was a problem hiding this comment.
Please resolve merge conflicts
|
Fixed by this:- #24194 |
What does this PR do?
Video demo:
before:
Screen.Recording.2025-10-10.at.8.39.19.PM.mov
after:
Screen.Recording.2025-10-10.at.8.34.22.PM.mov
When a user's role changes from ADMIN to MEMBER after creating filter segments that include other users' bookings, they encounter a permission error and become stuck because:
Solution
DataTableWrapperon errorChanges Made
apps/web/modules/bookings/views/bookings-listing-view.tsx{query.status !== "error" && (...)}wrapper aroundDataTableWrapperWipeMyCalActionButtonlogic to only show when no errorsMandatory Tasks (DO NOT REMOVE)
How should this be tested?
Checklist