-
Notifications
You must be signed in to change notification settings - Fork 4
user management panel UI #406
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
Open
aehnh
wants to merge
59
commits into
develop
Choose a base branch
from
user-management-panel
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 18 commits
Commits
Show all changes
59 commits
Select commit
Hold shift + click to select a range
5bef324
progress
7661773
Merge branch 'develop' into user-management-panel
5c86637
modify fullname and username
6b14c3a
revert corbado/types
cf7b9a6
change types
d6ddc18
revert changes to corbado/types
93c3f95
update full name works
9450c86
udpate username works
30c63bd
email address component wip
901f6b7
progress
d5e8fcf
identifier list config needs to be debugged
9a40d61
incorporate identifier-list-config
bec747d
error handling
7be1634
phone
7781143
prettier
77971b3
add translations, add delete-user card
da33a84
prettier
9ddd6ed
change component name to userdetails
49634b9
adds name edit component
Dopeamin db96d73
Merge remote-tracking branch 'origin/develop' into user-management-panel
Dopeamin 26a8259
refactors corbado user details logic into a context
Dopeamin 9031db5
refactors UserDetails screen
Dopeamin 0d37c34
fixes build issues
Dopeamin 20736eb
fixes lint issues
Dopeamin 1f867f4
fixes formatting issues
Dopeamin 4eaf0ca
finish user deletion block
Dopeamin 96f3071
finishes name edit block
Dopeamin d52409e
adds dropdown menu
Dopeamin 171edb4
fixes lint and format issues
Dopeamin c8568d3
PR
b3e5c52
adds identifier deletion process
Dopeamin daea1bd
change endpoint name getIdentifierConfigList --> getUserDetailsList
fe1c1b2
remove unused code
74ebdd6
finishes otp dialogues
Dopeamin e12afd4
adds loading to OTP
Dopeamin df9ab33
fixes lint issues
Dopeamin 1c4b403
fixes prettier issue
Dopeamin 438e63c
fixes themes
Dopeamin 3f00b84
adds error handling for username input
Dopeamin 8f3e41a
Merge branch 'develop' into user-management-panel
11ef9d5
finishes error handling
Dopeamin eb92551
adds auto verification on adding new identifier
Dopeamin 71b194e
submit on enter
Dopeamin 1752753
fixes lint issues
Dopeamin 5559588
adds missing dark variables
Dopeamin 5045d10
resolves comments
Dopeamin cd5bd45
adds copy button effect
Dopeamin d1bce55
fixes text overflow in identifiers
Dopeamin 6430923
fixes verification timeout
Dopeamin a939680
fixes lint issues
Dopeamin 6641e26
adds loading states to buttons
Dopeamin 56a575a
fixes lint issues
Dopeamin 0af28af
adds fields validation
Dopeamin 1077773
adds validation
Dopeamin 0fd5182
fixes verification screen not closing
Dopeamin 7fe2dec
mark primary emails with badges
08c7e30
phone primary
299eb72
fixes loading issue
Dopeamin 85998ae
Merge remote-tracking branch 'origin/develop' into user-management-panel
Dopeamin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| import changeIconSrc from '@corbado/shared-ui/assets/change.svg'; | ||
| import type { FC } from 'react'; | ||
| import { useRef } from 'react'; | ||
| import React from 'react'; | ||
|
|
||
| import { useIconWithTheme } from '../../../hooks/useIconWithTheme'; | ||
| import type { IconProps } from './Icon'; | ||
| import { Icon } from './Icon'; | ||
|
|
||
| export interface ChangeIconProps extends IconProps { | ||
| color?: 'primary' | 'secondary'; | ||
| } | ||
|
|
||
| export const ChangeIcon: FC<ChangeIconProps> = ({ color, ...props }) => { | ||
| const svgRef = useRef<HTMLImageElement>(null); | ||
| const { logoSVG } = useIconWithTheme( | ||
| svgRef, | ||
| changeIconSrc, | ||
| color === 'secondary' ? '--cb-text-secondary-color' : '--cb-text-primary-color', | ||
| ); | ||
|
|
||
| return ( | ||
| <Icon | ||
| src={logoSVG} | ||
| ref={svgRef} | ||
| alt='copy-icon' | ||
| {...props} | ||
| /> | ||
| ); | ||
| }; |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| import copyIconSrc from '@corbado/shared-ui/assets/copy.svg'; | ||
| import type { FC } from 'react'; | ||
| import { useRef } from 'react'; | ||
| import React from 'react'; | ||
|
|
||
| import { useIconWithTheme } from '../../../hooks/useIconWithTheme'; | ||
| import type { IconProps } from './Icon'; | ||
| import { Icon } from './Icon'; | ||
|
|
||
| export interface CopyIconProps extends IconProps { | ||
| color?: 'primary' | 'secondary'; | ||
| } | ||
|
|
||
| export const CopyIcon: FC<CopyIconProps> = ({ color, ...props }) => { | ||
| const svgRef = useRef<HTMLImageElement>(null); | ||
| const { logoSVG } = useIconWithTheme( | ||
| svgRef, | ||
| copyIconSrc, | ||
| color === 'secondary' ? '--cb-text-secondary-color' : '--cb-text-primary-color', | ||
| ); | ||
|
|
||
| return ( | ||
| <Icon | ||
| src={logoSVG} | ||
| ref={svgRef} | ||
| alt='copy-icon' | ||
| {...props} | ||
| /> | ||
| ); | ||
| }; |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| import pendingIconSrc from '@corbado/shared-ui/assets/pending.svg'; | ||
| import type { FC } from 'react'; | ||
| import { memo, useRef } from 'react'; | ||
| import React from 'react'; | ||
|
|
||
| import { useIconWithTheme } from '../../../hooks/useIconWithTheme'; | ||
| import type { IconProps } from './Icon'; | ||
| import { Icon } from './Icon'; | ||
|
|
||
| export const PendingIcon: FC<IconProps> = memo(props => { | ||
| const svgRef = useRef<HTMLImageElement>(null); | ||
| const { logoSVG } = useIconWithTheme(svgRef, pendingIconSrc, '--cb-passkey-list-badge-color'); | ||
|
|
||
| return ( | ||
| <Icon | ||
| src={logoSVG} | ||
| ref={svgRef} | ||
| alt='pending-icon' | ||
| {...props} | ||
| /> | ||
| ); | ||
| }); |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| import primaryIconSrc from '@corbado/shared-ui/assets/primary.svg'; | ||
| import type { FC } from 'react'; | ||
| import { memo, useRef } from 'react'; | ||
| import React from 'react'; | ||
|
|
||
| import { useIconWithTheme } from '../../../hooks/useIconWithTheme'; | ||
| import type { IconProps } from './Icon'; | ||
| import { Icon } from './Icon'; | ||
|
|
||
| export const PrimaryIcon: FC<IconProps> = memo(props => { | ||
| const svgRef = useRef<HTMLImageElement>(null); | ||
| const { logoSVG } = useIconWithTheme(svgRef, primaryIconSrc, '--cb-passkey-list-badge-color'); | ||
|
|
||
| return ( | ||
| <Icon | ||
| src={logoSVG} | ||
| ref={svgRef} | ||
| alt='primary-icon' | ||
| {...props} | ||
| /> | ||
| ); | ||
| }); |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| import verifiedIconSrc from '@corbado/shared-ui/assets/verified.svg'; | ||
| import type { FC } from 'react'; | ||
| import { memo, useRef } from 'react'; | ||
| import React from 'react'; | ||
|
|
||
| import { useIconWithTheme } from '../../../hooks/useIconWithTheme'; | ||
| import type { IconProps } from './Icon'; | ||
| import { Icon } from './Icon'; | ||
|
|
||
| export const VerifiedIcon: FC<IconProps> = memo(props => { | ||
| const svgRef = useRef<HTMLImageElement>(null); | ||
| const { logoSVG } = useIconWithTheme(svgRef, verifiedIconSrc, '--cb-passkey-list-badge-color'); | ||
|
|
||
| return ( | ||
| <Icon | ||
| src={logoSVG} | ||
| ref={svgRef} | ||
| alt='verified-icon' | ||
| {...props} | ||
| /> | ||
| ); | ||
| }); |
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.