-
Notifications
You must be signed in to change notification settings - Fork 19
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
feat: DAH-2876 useRedirect for authenticated pages #2488
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these are just about coverage
|
||
export const getSignInRedirectUrl = (redirect: string) => { | ||
return getRedirectUrl(redirect || "account") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue: Add tests for new functions in routeUtil.test.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to review this, but I'm still not seeing the banner pop up on the sign in page when i type in my-account?react=true
I don't see the banner when following the review instructions in the review app or locally. @cade-exygy did you run through your review instructions before requesting review? |
@tallulahkay @jimlin-sfgov Added back the banner. FYI, the main changes here is the redirect logic, so looking for a review on that behavior. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
app/javascript/__tests__/pages/account/account-settings.test.tsx
Outdated
Show resolved
Hide resolved
* feat: DAH-3077 hide lottery prefs * feat: remove preferences section * fix: merge conflict * fix: controller * fix: ng-if function * test: update test --------- Co-authored-by: tallulah <[email protected]>
Co-authored-by: Jim Lin <[email protected]>
Co-authored-by: Jim Lin <[email protected]>
Co-authored-by: Jim Lin <[email protected]>
Co-authored-by: Jim Lin <[email protected]>
Description
If a user tries to go to the my-account, account-settings, or my-applications and is not signed in: redirect to sign in page, show banner. Once the login happens, the user is redirected to the page they were trying to access prior.
Jira ticket
https://sfgovdt.jira.com/browse/DAH-2876
Checklist before requesting review
Version Control
angular
if it contains updates to Angular codetype: TICKET-NUMBER Description
format, e.g.feat: DAH-123 New Feature
Code quality
Review instructions
Request review
needs review
labelHousing Eng
group to automatically assign reviewers, and/or assign specific engineersReview Instructions
Test edge cases like signing out, triggering other banners, etc