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 the ability to block navigation when forms have not been saved #11831

Merged
merged 14 commits into from
Apr 20, 2022

Commits on Apr 18, 2022

  1. Add navigation blocking when forms are dirty and not saved

    * Add hooks to block and display prompt on navigation
    * Add components to indicate which form is blocking
    * Update connection replication and transformation components to block on edit
    * Update main page component to show prompt
    edmundito committed Apr 18, 2022
    Configuration menu
    Copy the full SHA
    1d95d1f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    78a1829 View commit details
    Browse the repository at this point in the history
  3. FormNavigationBlocker -> FormChangesTracker

    useFormNavigationBlocking -> useDiscardFormChangesConfirmation
    Update exports from default to module
    edmundito committed Apr 18, 2022
    Configuration menu
    Copy the full SHA
    341f4dd View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    362d1aa View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c625690 View commit details
    Browse the repository at this point in the history
  6. Move Form change tracking to a service pattern

    Fix forms in replications and transformations not resetting the data
    Add types to import sorting and add Formik helper type for onSubmit functions
    edmundito committed Apr 18, 2022
    Configuration menu
    Copy the full SHA
    cd21133 View commit details
    Browse the repository at this point in the history
  7. Clear all form data after submission in ConnectionForm component

    Update ConnectionForm submission to handle post submission result from callback
    edmundito committed Apr 18, 2022
    Configuration menu
    Copy the full SHA
    2bd5419 View commit details
    Browse the repository at this point in the history
  8. ConnectionForm now clears its own form tracking

    Add hook to generate unique form id
    Update form tracker component to use new hook if no id is specified
    edmundito committed Apr 18, 2022
    Configuration menu
    Copy the full SHA
    ba5b3b9 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    9d4fa10 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    e2a42af View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    53fdc84 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    69ba07b View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2022

  1. Remove data-id from confirmation modal component

    Update FormChangeTracker to useEffect over useLayoutEffect
    Memoize useConfirmationModalService hook
    Remove memoization of ConfirmationModalService provider
    Simplify useUniqueFormId
    edmundito committed Apr 19, 2022
    Configuration menu
    Copy the full SHA
    fae55d7 View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2022

  1. Update FormTrackerService check from reduce to some

    Co-authored-by: Tim Roes <tim@airbyte.io>
    edmundito and timroes authored Apr 20, 2022
    Configuration menu
    Copy the full SHA
    3c76502 View commit details
    Browse the repository at this point in the history