Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
19579eb
feat: Add account form
BrunoQuaresma Apr 12, 2022
9ab1f96
chore: Merge branch 'main' of github.com:coder/coder into bq/755/acco…
BrunoQuaresma Apr 12, 2022
a23cc88
Merge branch 'main' of github.com:coder/coder into bq/755/account-page
BrunoQuaresma Apr 12, 2022
f9f1c5a
feat: Add account form
BrunoQuaresma Apr 13, 2022
1bbaf8a
chore: merge branch 'main' of github.com:coder/coder into bq/755/acco…
BrunoQuaresma Apr 13, 2022
fa1d0e6
feat: show notification when preferences are updated
BrunoQuaresma Apr 13, 2022
1278ed6
test: account form submission with success
BrunoQuaresma Apr 13, 2022
7ccf811
chore: remove unecessary timeout
BrunoQuaresma Apr 13, 2022
2ae0987
test: add tests
BrunoQuaresma Apr 13, 2022
4595186
style: fix message copy
BrunoQuaresma Apr 14, 2022
fa91276
style: improve success message
BrunoQuaresma Apr 14, 2022
fc01ff8
refactor: name is not optional
BrunoQuaresma Apr 14, 2022
f3fedd0
chore: move renderWithAuth to test_hepers/index.tsx
BrunoQuaresma Apr 14, 2022
807d4e9
chore: move error types and utils to api/errors.ts
BrunoQuaresma Apr 14, 2022
fa580c7
test: use userEvent
BrunoQuaresma Apr 14, 2022
3d76331
fix: remove async from onSubmit
BrunoQuaresma Apr 14, 2022
37bc235
refactor: improve error types
BrunoQuaresma Apr 14, 2022
17a0b16
chore: merge branch 'main' of github.com:coder/coder into bq/755/acco…
BrunoQuaresma Apr 14, 2022
0e8ac63
chore: merge branch 'bq/755/account-page' of github.com:coder/coder i…
BrunoQuaresma Apr 14, 2022
12058f8
refactor: api errors
BrunoQuaresma Apr 14, 2022
e489210
refactor: move UPDATE_PROFILE to idle state
BrunoQuaresma Apr 14, 2022
8098628
refactor: change FormStack to Stack and add storybook
BrunoQuaresma Apr 14, 2022
1f23e30
fix: error handling and tests
BrunoQuaresma Apr 14, 2022
a0588d1
feat: handle unknown error
BrunoQuaresma Apr 14, 2022
b3159d0
fix: make the eslint-disable inline
BrunoQuaresma Apr 14, 2022
e07d717
chore: rename story
BrunoQuaresma Apr 14, 2022
4d7da77
chore: merge branch 'bq/755/account-page' of github.com:coder/coder i…
BrunoQuaresma Apr 14, 2022
8d63848
Update site/src/xServices/auth/authXService.ts
BrunoQuaresma Apr 14, 2022
a11ff10
Update site/src/pages/preferences/account.tsx
BrunoQuaresma Apr 14, 2022
bde7c15
Fix errors
BrunoQuaresma Apr 15, 2022
684b902
chore: merge branch 'main' of github.com:coder/coder into bq/755/acco…
BrunoQuaresma Apr 15, 2022
bbf2152
Fix type
BrunoQuaresma Apr 15, 2022
7f32600
Fix forms
BrunoQuaresma Apr 15, 2022
eb65490
Normalize machine
BrunoQuaresma Apr 15, 2022
59bac76
Fix: tests
BrunoQuaresma Apr 15, 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
2 changes: 1 addition & 1 deletion site/src/api/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface UserResponse {
readonly username: string
readonly email: string
readonly created_at: string
readonly name?: string
readonly name: string
}

/**
Expand Down
2 changes: 1 addition & 1 deletion site/src/pages/preferences/account.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { XServiceContext } from "../../xServices/StateContext"

const Language = {
title: "Account",
description: "Update your display name, email and username.",
description: "Update your display name, email, and username.",
}

export const PreferencesAccountPage: React.FC = () => {
Expand Down
2 changes: 1 addition & 1 deletion site/src/xServices/auth/authXService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as Types from "../../api/types"
import { displaySuccess } from "../../components/Snackbar"

export const Language = {
successProfileUpdate: "Preferences updated with success!",
successProfileUpdate: "Preferences updated successfully!",
}
export interface AuthContext {
getUserError?: Error | unknown
Expand Down