Skip to content

feat: Create user page #1197

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

Merged
merged 49 commits into from
Apr 28, 2022
Merged
Changes from 1 commit
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
db013f8
Add button and route
presleyp Apr 22, 2022
b73fb80
Hook up api
presleyp Apr 22, 2022
fc5ec16
Lint
presleyp Apr 22, 2022
635eab9
Add basic form
presleyp Apr 22, 2022
c2de4d4
Get users on page mount
presleyp Apr 25, 2022
028840a
Make cancel work
presleyp Apr 25, 2022
8c31769
Creating -> idle bc users page refetches
presleyp Apr 25, 2022
1021029
Merge branch 'main' into create-user/presleyp/734
presleyp Apr 25, 2022
073d694
Import as TypesGen
presleyp Apr 25, 2022
ad76fcb
Merge branch 'main' into create-user/presleyp/734
presleyp Apr 25, 2022
4aa97e6
Handle api errors
presleyp Apr 25, 2022
211ca6f
Lint
presleyp Apr 25, 2022
f9c29c8
Add handler
presleyp Apr 25, 2022
c501b6a
Add FormFooter
presleyp Apr 25, 2022
5d6d0c1
Add FullPageForm
presleyp Apr 25, 2022
861969e
Lint
presleyp Apr 25, 2022
ee64b70
Merge branch 'main' into create-user/presleyp/734
presleyp Apr 25, 2022
a939194
Merge branch 'fullpageform/presleyp' into create-user/presleyp/734
presleyp Apr 25, 2022
8b72976
Better form, error, stories
presleyp Apr 25, 2022
369af6b
Make detail optional
presleyp Apr 25, 2022
90283ed
Use Language
presleyp Apr 25, 2022
8f6d135
Merge branch 'fullpageform/presleyp' into create-user/presleyp/734
presleyp Apr 25, 2022
35f462a
Remove detail prop
presleyp Apr 25, 2022
23ba888
Add back autoFocus
presleyp Apr 26, 2022
c2f6cce
Remove displayError, use displaySuccess
presleyp Apr 26, 2022
f46799e
Lint, export Language
presleyp Apr 26, 2022
7d6a03f
Tests - wip
presleyp Apr 26, 2022
f5fe8e8
Fix cancel tests
presleyp Apr 27, 2022
470481c
Switch back to mock
presleyp Apr 27, 2022
6a490c2
Add navigate to xservice
presleyp Apr 27, 2022
7d98c13
Move error type predicate to xservice
presleyp Apr 27, 2022
30b8799
Lint
presleyp Apr 27, 2022
cf8442f
Switch to using creation mode in XState
presleyp Apr 27, 2022
8f23d91
Merge branch 'main' into create-user/presleyp/734
presleyp Apr 27, 2022
642ca22
Lint
presleyp Apr 27, 2022
a0717f8
Lint
presleyp Apr 27, 2022
9941c1c
Lint
presleyp Apr 27, 2022
8ca5922
Revert "Switch to using creation mode in XState"
presleyp Apr 27, 2022
01522cc
Give XService a navigate action
presleyp Apr 27, 2022
fa75015
Add missing validation messages
presleyp Apr 28, 2022
c3bb6ff
Fix XState warning
presleyp Apr 28, 2022
62dad5e
Fix tests
presleyp Apr 28, 2022
797bb34
Pretend user has org id and make it work
presleyp Apr 28, 2022
6f6165b
Format
presleyp Apr 28, 2022
4c56afd
Lint
presleyp Apr 28, 2022
6acba0e
Merge branch 'main' into create-user/presleyp/734
presleyp Apr 28, 2022
9154a33
Switch to org ids array
presleyp Apr 28, 2022
983d7ff
Skip lines between tests
presleyp Apr 28, 2022
10c765c
Punctuate notification messages
presleyp Apr 28, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add back autoFocus
  • Loading branch information
presleyp committed Apr 26, 2022
commit 23ba8889147b886d02dfcf3add14441071f05cfc
1 change: 1 addition & 0 deletions site/src/components/CreateUserForm/CreateUserForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export const CreateUserForm: React.FC<CreateUserFormProps> = ({ onSubmit, onCanc
{...getFieldHelpers("username")}
onChange={onChangeTrimmed(form)}
autoComplete="username"
autoFocus
fullWidth
label={Language.usernameLabel}
variant="outlined"
Expand Down