Skip to content
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

Add a new handle when the backend application is offline #1550

Merged
merged 2 commits into from Mar 22, 2024

Commits on Mar 22, 2024

  1. ✨ (App.tsx): Import the useNavigate hook from react-router-dom to…

    … enable programmatic navigation within the app.
    
    πŸ“ (App.tsx): Add comments to explain the purpose of the `isLoadingHealth` state variable and the `checkApplicationHealth` function.
    πŸ“ (App.tsx): Add comments to explain the purpose of the `onHealthCheck` function.
    πŸ› (App.tsx): Fix a bug where the `checkApplicationHealth` function was not being called when the component mounts.
    πŸ› (App.tsx): Fix a bug where the `onHealthCheck` function was not being called when the health check was successful.
    πŸ“ (App.tsx): Add comments to explain the purpose of the `checkApplicationHealth` function and the `onHealthCheck` function.
    ✨ (fetchErrorComponent/index.tsx): Import the `BaseModal` component from the `modals/baseModal` module to display the fetch error component in a modal.
    ✨ (fetchErrorComponent/index.tsx): Import the `Button` component from the `ui/button` module to display a retry button in the fetch error component.
    ✨ (fetchErrorComponent/index.tsx): Add a retry button to the fetch error component to allow the user to retry the failed request.
    ✨ (ui/dialog-with-no-close.tsx): Create a new file `ui/dialog-with-no-close.tsx` to define a custom dialog component without a close button.
    ✨ (ui/dialog-with-no-close.tsx): Define the `Dialog`, `DialogTrigger`, `DialogPortal`, `DialogOverlay`, `DialogContent`, `DialogHeader`, `DialogFooter`, `DialogTitle`, and `DialogDescription` components for the custom dialog component.
    
    πŸ“ (baseModal/index.tsx): add support for a new type prop to switch between modal and dialog mode
    πŸ› (baseModal/index.tsx): fix typo in import statement for Modal and ModalContent components
    ♻️ (baseModal/index.tsx): refactor BaseModal component to conditionally render either Modal or Dialog based on the type prop
    πŸ› (flowsManagerStore.ts): fix issue where isLoading state was not being set to false after catching an error
    πŸ› (typesStore.ts): fix issue where error alert was not being shown when fetching types failed
    πŸ› (typesStore.ts): remove unnecessary error alert when fetching types failed
    ✨ (components/index.ts): add new properties to fetchErrorComponentType to support opening a modal, retrying, and showing loading state
    Cristhianzl committed Mar 22, 2024
    Configuration menu
    Copy the full SHA
    c05feb2 View commit details
    Browse the repository at this point in the history
  2. merge fix

    Cristhianzl committed Mar 22, 2024
    Configuration menu
    Copy the full SHA
    c617f6f View commit details
    Browse the repository at this point in the history