refactor(booking-single-view): Refactor RecurringBookings and add hoo…
Refactor Overview
The primary goal was to reduce the complexity of the RecurringBookings component as identified by Codescene. The refactors included breaking down the component into smaller, more manageable pieces, and moving specific logic into utility functions and subcomponents.
Changes Made
- Utility Functions: Created utility functions for sorting bookings and formatting date/time.
- sortRecurringBookings
- formatDateTime
-
Subcomponents: Introduced a subcomponent RecurringEvent to handle individual event rendering.
-
Component Refactor: Updated the RecurringBookings component to utilize the new utility functions and subcomponent, improving readability and maintainability.
Codescene Analysis
Codescene identified the RecurringBookings component as a complex method due to numerous conditional statements and nested logic. The refactor addresses these issues by modularizing the code.
@AranzalesO is attempting to deploy a commit to the cal Team on Vercel.
A member of the Team first needs to authorize it.
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.
Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link.
Graphite Automations
"Add community label" took an action on this PR • (06/11/24)
1 label was added to this PR based on Keith Williams's automation.
"Add foundation team as reviewer" took an action on this PR • (06/11/24)
1 reviewer was added to this PR based on Keith Williams's automation.
"Add consumer team as reviewer" took an action on this PR • (06/11/24)
1 reviewer was added to this PR based on Keith Williams's automation.
This PR is being marked as stale due to inactivity.
@AranzalesO type checks also seem to be failing :(
hey @AranzalesO closing it for now. Feel free to address the requested changes and reopen it.