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

Save shape updates #141

Merged
merged 8 commits into from
Oct 20, 2022
Merged

Save shape updates #141

merged 8 commits into from
Oct 20, 2022

Commits on Oct 20, 2022

  1. Add useBoundaryId hook

    There are two reasons to do this:
    
    The first is that it's less ambiguous than using
    `const { id } = useParams()`. This is especially important in deeply
    nested components where there are other elements with their own IDs.
    
    Second, if this logic were to change at a later point (perhaps it is
    moved into a Context), then it can be updated in one place.
    Matt Stone committed Oct 20, 2022
    Configuration menu
    Copy the full SHA
    5a403cb View commit details
    Browse the repository at this point in the history
  2. Update draw page to save polygon

    This does not include the back-end changes which will follow in a later
    commit.
    Matt Stone committed Oct 20, 2022
    Configuration menu
    Copy the full SHA
    e0bf015 View commit details
    Browse the repository at this point in the history
  3. Add update boundary shape route

    Matt Stone committed Oct 20, 2022
    Configuration menu
    Copy the full SHA
    b5ad762 View commit details
    Browse the repository at this point in the history
  4. Update CHANGELOG.md

    Matt Stone committed Oct 20, 2022
    Configuration menu
    Copy the full SHA
    8d3772f View commit details
    Browse the repository at this point in the history
  5. Add useEndpointToastError hook

    This could be useful in many components.
    Matt Stone committed Oct 20, 2022
    Configuration menu
    Copy the full SHA
    c824157 View commit details
    Browse the repository at this point in the history
  6. Add LoadingModal

    This could be useful in many components.
    Matt Stone committed Oct 20, 2022
    Configuration menu
    Copy the full SHA
    2b9520a View commit details
    Browse the repository at this point in the history
  7. Move boundary details query inside <Map>

    When the query was outside of the <Map> component, it would cause
    re-render of the map each time the query data was updated.
    Matt Stone committed Oct 20, 2022
    Configuration menu
    Copy the full SHA
    551e61d View commit details
    Browse the repository at this point in the history
  8. Don't revert shape edits on save failure

    These changes are intentionally not fixed up into ff73200 because
    it can serve as a reference for how to revere manaual cache updates.
    Matt Stone committed Oct 20, 2022
    Configuration menu
    Copy the full SHA
    5c56803 View commit details
    Browse the repository at this point in the history