Skip to content

[enhancement] Improve event handling for Reopened and maintenance statuses#131

Merged
otc-zuul[bot] merged 5 commits into
mainfrom
feat
Apr 23, 2025
Merged

[enhancement] Improve event handling for Reopened and maintenance statuses#131
otc-zuul[bot] merged 5 commits into
mainfrom
feat

Conversation

@Aloento
Copy link
Copy Markdown
Member

@Aloento Aloento commented Apr 16, 2025

Summary of the Pull Request:

This PR includes several key updates and fixes related to event status management and UI rendering logic:

  • [Enhancement] Reopened Status Support:

    • Introduces support for the Reopened status within the EventStatus enum.
    • Updates the GetStatusString utility to return the appropriate string representation for the new Reopened status.
    • Enhances TransformerV2 to handle the transformation logic associated with Reopened events.
  • [WorkAround] Status Display for Maintenance Events requested by @sgmv

  • [Refactor] Maintenance Event Date Handling:

    • Refines logic for managing start and end dates of maintenance-type events.
    • Removes redundant date assignments and ensures accurate status propagation for non-maintenance events.
    • Improves code readability and maintainability in the event editing flow.

Aloento added 4 commits April 16, 2025 16:33
Implements the Reopened status in the EventStatus enum.

Updates the GetStatusString function to correctly return the string representation for the Reopened status.

Enhances the TransformerV2 function to handle Reopened status during transformations.
Updates the EventCard component to conditionally render the current status label and status value based on the event type.

This improves clarity by preventing unnecessary information from being displayed for maintenance-related events.
Refines the handling of start and end dates for maintenance events.

Removes redundant date assignments and ensures proper status updates for non-maintenance events.

Improves overall clarity and maintainability of the event editing logic.
Eliminates jsdom from the project dependencies to streamline the package requirements.

Updates various packages to the latest versions for improved performance and security, including eslint-utils and caniuse-lite.

Removes unnecessary types from the tsconfig for cleaner configuration.
Comment thread src/Components/Event/Enums.ts
@Aloento Aloento requested a review from sgmv April 17, 2025 09:58
Comment thread src/Components/Event/Enums.ts
@Aloento Aloento requested a review from sgmv April 23, 2025 08:14
@Aloento Aloento added the gate Merge PR label Apr 23, 2025
@otc-zuul otc-zuul Bot merged commit 2bd8d8d into main Apr 23, 2025
10 checks passed
@otc-zuul otc-zuul Bot deleted the feat branch April 23, 2025 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gate Merge PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong status for the event Can't update the event in the status analysing

2 participants