Skip to content

[feat] Add EventExtract component with multi-region service extraction and form enhancements #174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 29, 2025

Conversation

Aloento
Copy link
Member

@Aloento Aloento commented May 29, 2025

Summary of the Pull Request:

This pull request introduces a comprehensive set of enhancements centered around service extraction and event management, aimed at improving user experience, interactivity, and code reliability.
image

  1. EventExtract Component Integration:

    • A new EventExtract modal component allows users to extract services related to an event.
    • Enables service selection via a dynamic and user-friendly table interface.
    • Conditionally rendered within EventCard when multiple region services are associated with an event.
  2. Enhanced UI Interaction:

    • Validates service selections to ensure at least one item is chosen before proceeding.
    • Provides real-time user feedback to guide interaction within the modal.
  3. Custom Hook for Service Extraction:

    • Implements a dedicated custom hook to manage service state, form validation, and async API interactions.
    • Ensures seamless navigation to the newly created event upon successful service extraction.
  4. Token Validation and Form Submission Improvements:

    • Fixes an issue related to setStart() in the token validation logic to ensure correct form behavior.
    • Adds a Refresh method to the context provider, offering better state control and context management.

Aloento added 4 commits May 29, 2025 13:40
Incorporates the EventExtract component into the EventCard to conditionally display event extraction options based on region services.

Fixes the form validation logic to correctly invoke the setStart function, ensuring all necessary fields are validated before submission.

Enhances the StatusContext by introducing a Refresh function, allowing for better state management and updates.
Implements the EventExtract component to allow users to extract services from an event.

Includes a modal for selecting services and submitting the extraction process, enhancing user interaction and improving event management capabilities.
Implements a new hook to manage event extraction, including service validation and handling API requests to extract incident data.

This enhancement facilitates better organization of event-related functionality and improves user experience by ensuring that at least one service is provided before submission.

Utilizes existing hooks for authentication, routing, and status management to streamline the overall process.
@Aloento Aloento self-assigned this May 29, 2025
@Aloento Aloento linked an issue May 29, 2025 that may be closed by this pull request
@Aloento Aloento added the gate Merge PR label May 29, 2025
@otc-zuul otc-zuul bot merged commit 670e7ca into main May 29, 2025
7 checks passed
@otc-zuul otc-zuul bot deleted the extra branch May 29, 2025 11:54
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.

Add functionality for extracting a component to a new incident
2 participants