Skip to content

Commit

Permalink
fix: apply new limits (#195)
Browse files Browse the repository at this point in the history
* fix: apply new limits

* fix: tests
  • Loading branch information
spaenleh authored Apr 17, 2024
1 parent 4fda13b commit 2ccc2e6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion cypress/fixtures/members.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const MEMBERS: {
},
WRONG_NAME_TOO_LONG: {
id: 'a7e428e9-86d3-434a-b611-d930cf8380ec',
name: 'qwertyuiopasdfghjklzxcvbnmqwert',
name: 'qwertyuio pasdfghjklzx cvbnmqwertr tyuiopa sdfghjklzxcvbnmqwe',
email: '[email protected]',
nameValid: false,
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@emotion/react": "11.11.4",
"@emotion/styled": "11.11.0",
"@graasp/query-client": "3.4.1",
"@graasp/sdk": "4.7.1",
"@graasp/sdk": "4.7.2",
"@graasp/translations": "1.25.3",
"@graasp/ui": "4.15.0",
"@mui/icons-material": "5.15.14",
Expand Down
5 changes: 2 additions & 3 deletions src/components/main/EditingNameField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@ import CloseIcon from '@mui/icons-material/Close';
import DoneIcon from '@mui/icons-material/Done';
import { IconButton, Stack, TextField } from '@mui/material';

import { MAX_USERNAME_LENGTH, MIN_USERNAME_LENGTH } from '@graasp/sdk';

import { useAccountTranslation } from '@/config/i18n';
import {
USERNAME_CANCEL_BUTTON_ID,
USERNAME_INPUT_FIELD_ID,
USERNAME_SAVE_BUTTON_ID,
} from '@/config/selectors';

const MIN_USERNAME_LENGTH = 3;
const MAX_USERNAME_LENGTH = 30;

type EditingUserNameFieldProps = {
name: string;
onSave: (newValue: string) => void;
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1625,17 +1625,17 @@ __metadata:
languageName: node
linkType: hard

"@graasp/sdk@npm:4.7.1":
version: 4.7.1
resolution: "@graasp/sdk@npm:4.7.1"
"@graasp/sdk@npm:4.7.2":
version: 4.7.2
resolution: "@graasp/sdk@npm:4.7.2"
dependencies:
"@faker-js/faker": "npm:8.4.1"
js-cookie: "npm:3.0.5"
validator: "npm:13.11.0"
peerDependencies:
date-fns: ^3
uuid: ^9
checksum: 10/182e2a33fbdf7ed2cac7fbdf5a01378a059415a753345cca501d2ddda4985b9448c81bb2931a7157dc34cd613412c5da42da38cb037e9a46438755707e4ea2aa
checksum: 10/f37de1eb4fb02fa748a00e630f8f133d937fd9eb0aa0016a6e071fa37a44d1599be61ff8754a03f77bb5996f9aebf8e6c969fdb52f4463111c71f6ce6d1fcb38
languageName: node
linkType: hard

Expand Down Expand Up @@ -7058,7 +7058,7 @@ __metadata:
"@emotion/react": "npm:11.11.4"
"@emotion/styled": "npm:11.11.0"
"@graasp/query-client": "npm:3.4.1"
"@graasp/sdk": "npm:4.7.1"
"@graasp/sdk": "npm:4.7.2"
"@graasp/translations": "npm:1.25.3"
"@graasp/ui": "npm:4.15.0"
"@mui/icons-material": "npm:5.15.14"
Expand Down

0 comments on commit 2ccc2e6

Please sign in to comment.