-
-
Notifications
You must be signed in to change notification settings - Fork 658
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: new profile page and PATs front-end #2109
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
b44201d
to
7f76a96
Compare
f683f39
to
c401f8d
Compare
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.
Looks super clean! Minor comments and suggestions.
From a UI perspective, should the password page use PageContent to get the same appearance as the PAT page? Could also consider this for the Main profile page content. @NicolaeUnleash ?
...omponent/user/Profile/PersonalAPITokensTab/CreatePersonalAPIToken/CreatePersonalAPIToken.tsx
Outdated
Show resolved
Hide resolved
@FredrikOseberg yes the password page should use PageContent to get the same appearance |
- add route logic to profile; - refactor TimeAgoCell title; - misc fixes and refactoring;
ab4b44a
to
463d63c
Compare
Included fixes, refactoring and any other misc changes related to https://linear.app/unleash/issue/2-287/ui-adjustments-for-personal-api-token as well. |
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.
LGTM!
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.
LG, I had one suggestion you could choose to follow or not.
try { | ||
const path = formatApiPath('api/admin/user/change-password'); | ||
const res = await fetch(path, { | ||
await fetch(path, { | ||
headers, | ||
body: JSON.stringify({ password, confirmPassword }), | ||
method: 'POST', | ||
credentials: 'include', | ||
}); |
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.
This could be moved into an API hook
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.
Addressed in 4160084
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.
Should we use flagResolver to resolve this, the same way we do for embedded proxy?
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 know Fredrik pointed out that there was an interaction that should probably be extracted into a hook. But the logic otherwise seems sound. 👍
https://linear.app/unleash/issue/2-278/user-profile-page-front-end
Due to the way the work flowed, also includes: https://linear.app/unleash/issue/2-274/frontend-for-personal-api-tokens - I can split it into a separate PR if it's easier to review.
Also includes: