Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat(shared): requirements for authorization pages for web version bb-209 #536

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
a6a4d4a
feat: slicing form design ui bb-9
iqbalalayubbi Aug 18, 2024
6789363
Merge branch '9-feat-sign-up' into fix-lint
iqbalalayubbi Aug 18, 2024
1a07082
fix: remove lint css root folder bb-0
iqbalalayubbi Aug 18, 2024
0d9786c
feat: make toggle visibility password bb-9
iqbalalayubbi Aug 19, 2024
91c4a09
feat: add user data in redux store bb-9
iqbalalayubbi Aug 19, 2024
eef6fb3
feat: make validation confirm password bb-9
iqbalalayubbi Aug 19, 2024
4f1c228
fix: refactor unused code and comment bb-9
iqbalalayubbi Aug 20, 2024
5fc8a04
style: adjust css variabel to match with other bb-9
iqbalalayubbi Aug 20, 2024
fcffd3e
refactor: make other props instead className bb-9
iqbalalayubbi Aug 20, 2024
f6aaac0
style: adjust css variabel conflict bb-9
iqbalalayubbi Aug 21, 2024
5842e98
Merge branch 'main' into 9-feat-sign-up
iqbalalayubbi Aug 21, 2024
8c9ae6e
Merge branch 'main' into 9-feat-sign-up
iqbalalayubbi Aug 21, 2024
18bc6f6
Merge branch 'main' into 9-feat-sign-up
iqbalalayubbi Aug 21, 2024
d97f37c
chore: release-1.6.0 (#95)
github-actions[bot] Aug 21, 2024
dc53cac
fix: handle conflict with main branch bb-9
iqbalalayubbi Aug 21, 2024
2e7c7b7
fix: update version in package.json bb-9
iqbalalayubbi Aug 21, 2024
a1bfc0e
refactor: using getValidClassNames and seperate each style in compone…
iqbalalayubbi Aug 21, 2024
979b4e6
fix: handle conflict in app.tsx bb-9
iqbalalayubbi Aug 21, 2024
24512fe
Merge branch 'main' into 9-feat-sign-up
iqbalalayubbi Aug 21, 2024
3451234
style: change all changelog file bb-9
iqbalalayubbi Aug 21, 2024
ef12676
refactor: remove unused img and code bb-9
iqbalalayubbi Aug 22, 2024
e985ddc
style: change folder structure and handle typo name in class bb-9
iqbalalayubbi Aug 22, 2024
ba27cbc
fix: update package.json bb-9
iqbalalayubbi Aug 22, 2024
78a277c
fix: update with main branch bb-9
iqbalalayubbi Aug 27, 2024
21a4f00
fix: solve UI issue in # UI bb-9
iqbalalayubbi Aug 27, 2024
0967b82
Merge branch 'main' of https://github.com/BinaryStudioAcademy/bsa-202…
iqbalalayubbi Aug 27, 2024
e290950
feat: redirect user to root after # bb-9
iqbalalayubbi Aug 27, 2024
37dc177
feat: navigate user to root path bb-9
iqbalalayubbi Aug 28, 2024
078b9c9
refactor: remove use navigate in # form bb-9
iqbalalayubbi Aug 28, 2024
69db1ae
fix: solve conflict with main branch bb-9
iqbalalayubbi Aug 28, 2024
584b46e
feat: add error handling # bb-9
iqbalalayubbi Aug 29, 2024
cc7a1cb
Merge branch 'main' of https://github.com/BinaryStudioAcademy/bsa-202…
iqbalalayubbi Aug 30, 2024
37f852b
fix: up to date package-lock with main bb-9
iqbalalayubbi Aug 30, 2024
350f6ec
feat: remove try catch block bb-9
iqbalalayubbi Aug 31, 2024
1120e37
Merge branch 'main' of https://github.com/BinaryStudioAcademy/bsa-202…
iqbalalayubbi Aug 31, 2024
3bb2bcb
Merge branch 'main' of https://github.com/BinaryStudioAcademy/bsa-202…
iqbalalayubbi Sep 1, 2024
8d12c26
Merge branch 'main' of https://github.com/BinaryStudioAcademy/bsa-202…
iqbalalayubbi Sep 1, 2024
4913cbf
feat: follow rules and messages from doc validation bb-209
iqbalalayubbi Sep 1, 2024
e45870e
feat: disabled button when schema invalid bb-209
iqbalalayubbi Sep 2, 2024
ecd974b
feat: add mode onchange in react hook form bb-209
iqbalalayubbi Sep 2, 2024
9837a6a
refactor: remove unused user validation schema bb-209
iqbalalayubbi Sep 2, 2024
bce3fdf
Merge branch 'main' of https://github.com/BinaryStudioAcademy/bsa-202…
iqbalalayubbi Sep 2, 2024
774e5a1
refactor: remove unused validation & seperate const for user bb-209
iqbalalayubbi Sep 2, 2024
60ba455
Merge branch 'main' of https://github.com/BinaryStudioAcademy/bsa-202…
iqbalalayubbi Sep 2, 2024
9981e2f
fix: remove confirm input in schema validation bb-209
iqbalalayubbi Sep 3, 2024
f8fa8b1
fix: solve conflict validation schema, rule, and regex form fe bb-209
iqbalalayubbi Sep 3, 2024
6eade86
refactor: remove duplicate message for confirm input bb-209
iqbalalayubbi Sep 3, 2024
8283027
Merge branch 'main' of https://github.com/BinaryStudioAcademy/bsa-202…
iqbalalayubbi Sep 3, 2024
f2abc4e
style: add type in variabel no error bb-209
iqbalalayubbi Sep 4, 2024
d133335
refactor: remove unused message in user validation bb-209
iqbalalayubbi Sep 4, 2024
1d516a5
style: change email placeholder bb-209
iqbalalayubbi Sep 4, 2024
7b4bfeb
Merge branch 'main' of https://github.com/BinaryStudioAcademy/bsa-202…
iqbalalayubbi Sep 4, 2024
f0ed650
style: change no error input const in user modules bb-209
iqbalalayubbi Sep 4, 2024
9a1ac91
style: create constan folder in user module bb-209
iqbalalayubbi Sep 4, 2024
8caaf63
Merge branch 'main' of https://github.com/BinaryStudioAcademy/bsa-202…
iqbalalayubbi Sep 4, 2024
17fa38d
fix: solved conflict validation regex rule bb-209
iqbalalayubbi Sep 8, 2024
0c9ccdd
fix: show error popup auth & reorder password validation bb-209
iqbalalayubbi Sep 8, 2024
920b748
chore: change package-lock.json bb-209
iqbalalayubbi Sep 9, 2024
55c38cb
fix: change regex rule for email bb-209
iqbalalayubbi Sep 9, 2024
26b42eb
fix: solve conflict package lock json bb-209
iqbalalayubbi Sep 9, 2024
259c9b5
fix: change email rule validation bb-209
iqbalalayubbi Sep 9, 2024
384f802
refactor: make notification as global for any page bb-209
iqbalalayubbi Sep 10, 2024
2b6d65c
Merge branch 'main' of https://github.com/BinaryStudioAcademy/bsa-202…
iqbalalayubbi Sep 10, 2024
cbfb852
Merge branch 'main' of https://github.com/BinaryStudioAcademy/bsa-202…
iqbalalayubbi Sep 23, 2024
c367d24
fix: accept hyphen in local and solve min max local-domain bb-209
iqbalalayubbi Sep 23, 2024
0aaa6f3
fix: add min max regex for email domain part bb-209
iqbalalayubbi Sep 23, 2024
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
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { UserValidationRule } from "./user-validation-rule.enum.js";

const UserValidationRegexRule = {
EMAIL_DOMAIN_PART_VALID_CHARS:
/(?<=@)[\dA-Za-z–-]{1,30}(\.[\dA-Za-z-]{1,30}){1,2}/,
EMAIL_LOCAL_PART_VALID_CHARS:
/^(?!.*\.\.)(?!.*\.$)(?!^\.)[\w!#$&'*+=-–]{1,35}(\.[\w!#$&'*+=-]+)*@.*$/,
EMAIL_DOMAIN_MIN_MAX_CHARS: /@.{4,35}$/,
EMAIL_DOMAIN_PART_VALID_CHARS: /(?<=@)[\dA-Za-z-]{4,35}(\.[\dA-Za-z-]{2,})+$/,
EMAIL_LOCAL_PART_VALID_CHARS: /^[\w!#$&'*+=\\-]{1,35}(?=@)/,
NAME_VALID_CHARS_MIN_MAX: new RegExp(
`^[a-zA-Z0-9_-]{${String(UserValidationRule.NAME_MIN_LENGTH)},${String(UserValidationRule.NAME_MAX_LENGTH)}}$`,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ const user# = z
})
.regex(UserValidationRegexRule.EMAIL_DOMAIN_PART_VALID_CHARS, {
message: UserValidationMessage.EMAIL_WRONG,
})
.regex(UserValidationRegexRule.EMAIL_DOMAIN_MIN_MAX_CHARS, {
message: UserValidationMessage.EMAIL_WRONG,
}),
name: z
.string()
Expand Down
Loading