Merged
Conversation
fe8321c to
06821e5
Compare
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📄 Description
Fetching from API
useApihook, which wraps its fetchers inuseSWR. UnderuseApi, there are currently three services:userService,surveyService, andlocationService. All requests to the API have been moved to this frameworkGETfetch requests are wrapped inuseSWR. These fetchers usually handle some kind of business logic that is hidden from the overlyinguseSWRversionuseSWRMutationContexts & Hooks
useAuthContextis responsible for serving all user related data (ex. latest location).useAuthhooks pass through login/logout handlers instead of prop drillinguseAbilityhook serves our user's permissions, which we can use inside of a component to show/not show certain elements, disable certain elements, or redirect users. ex:Combined views
AdminEditProfileandViewProfilepages into one consolidatedProfilepage -- view/permissions change based on abilityEditSurveyandSurveyComponentinto oneSurveypage -- changes based on URL paramsSurveyEntryDashboardandPastEntriesinto oneSurveyEntryDashboard-- may have to review how permissions change the viewsShared components
componentsdirectory for components shared across different forms/routesMUI updates
✅ Checklist
🔗 Related Issues
Resolves #65
Resolves #52
Resolves #62
💡 Type of change
🧪 How to test
📝 Notes to reviewers
deletebuttons on both the user and the survey views