-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add mostly-working login * Add sign-in form component, helper functions for storing auth token and current user * Update fetcher to use dynamic headers * Add register form with /register page * Add password reset request form and route * Update password reset form button text * Rename SigninForm.tsx to SignInForm.tsx * Add reset password form, mutation * Move rest of backend auth routes to /admin prefix * Move backend password reset up in router * Add sign out page * Move register and sign-in pages to top level * Move auth page layout into separate component * Move reports pages layout into separate component * Refactor types for client * Rename auth folder to lowercase Auth isn't a component by itself * Refactor SignInForm * Use theme.palette.augmentColor for accent colors * Use Container for auth forms * Remove unnecessary color='primary' * Merge props into sx in AuthLayout * Update React imports, replace interfaces with types * Remvoe a few more interfaces * Remove FC type return * Use mutation variable types for auth form annotations * Use our Link components * Remove token, use session auth * Authorization policies (#283) * Add currentUser GQL query, basic authorization policies for users, feeds, detections, candidates. * Remove commented out token lifetime * Add missing getCurrentUser gql definition * Fix wrong form arg shape * Underscore unused variables * Revert router fallback * Update authorization for auth actions * Clear session on signOut graphql request * Update dependencies * Add moderator flag to users * Add visible flags to candidates, detections. Add policies and mutations for updating visible flags. * Add visible columns to detections, candidates * Add actions for moderator hiding/showing detections and candidate * Show visible/hidden chip for moderators on candidate row, modal, and page * Remove setCandidateVisible mutation * Revert router settings * Add graphql to Notifications API, show notifying and canceling notifications for a candidate. Add auth policies for moderator * Add cancel_candidate_notifications mutation for candidate * Refactor to use auth layout * Fix useEffect deps array * Add indexes to meta columns in notifications, subscribers, subscriptions. Add new cancel, notify candidate mutations in frontend * Invalidate candidate query on detection update * Re-add missing sign out mutation * Add confirmation, cancel, and notification submission * Change invalidateQuery to refetch when creating new notification --------- Co-authored-by: Paul Cretu <paul.s.cretu@gmail.com>
- Loading branch information
Showing
23 changed files
with
1,343 additions
and
81 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.