Skip to content
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

ES-659/ES-661: fix truncated icons and popover content #11

Closed
wants to merge 142 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
142 commits
Select commit Hold shift + click to select a range
e875b73
Initial commit
rathanak-0080 Nov 3, 2023
8fb14b5
add signup-ui
Nov 6, 2023
4a02e49
ES-407-sign-up-ui-khmer-language-bundle-creation
Nov 6, 2023
235c5d1
update translation
Nov 6, 2023
4b2509f
initial sign up ui commit
bunsyy Nov 6, 2023
f37aafa
feat: add common error pages
bunsyy Nov 8, 2023
7fd3761
feat: add account setup page to the steps
bunsyy Nov 8, 2023
856c1d5
feat: add success registration page
bunsyy Nov 8, 2023
c0f843e
Code code base from esignet to esignet-signup
Nov 8, 2023
836dc26
Signup page css and design changes
aranaravi Nov 9, 2023
500a079
Added the new line as per the comment
aranaravi Nov 9, 2023
4d0df8d
chore: refactor code and fix user interface
bunsyy Nov 10, 2023
5d4ce4a
fix: fix phone user interface
bunsyy Nov 10, 2023
06947ed
fix: fix otp step user interface
bunsyy Nov 10, 2023
b95f19b
fix: fix phone status creation step UI
bunsyy Nov 10, 2023
3f83f33
fix: fix sign up page layout
bunsyy Nov 10, 2023
49932bd
fix: fix button and steps ui
bunsyy Nov 10, 2023
78d9bb1
fix: fix phone and otp steps ui
bunsyy Nov 10, 2023
a29f842
fix: disable username input of account setup step
bunsyy Nov 10, 2023
cbbe4c4
chore: add .env.example and update README
bunsyy Nov 10, 2023
3a17d10
fix: fix pass and confirm pass validation
bunsyy Nov 13, 2023
d5ce82b
fix: fix verify challenge endpoint call
bunsyy Nov 13, 2023
b86c1ee
fix: remove deprecated file
bunsyy Nov 13, 2023
ed6deb7
chore: add eof
bunsyy Nov 13, 2023
cfeb927
fix: move nav bar and footer to app
bunsyy Nov 13, 2023
7ea0895
chore: delete use client
bunsyy Nov 13, 2023
c0c060a
fix: fix layout
bunsyy Nov 13, 2023
7fc73a5
feat: navigate to error on http error
bunsyy Nov 13, 2023
22300a5
feat: translate texts
bunsyy Nov 14, 2023
7e15f81
fix: add i18next icu package
bunsyy Nov 14, 2023
d248515
fix: remove deprecated code
bunsyy Nov 14, 2023
e50aa10
feat: add language dropdown and logo
bunsyy Nov 14, 2023
bc3d36d
fix: fix package installation
bunsyy Nov 14, 2023
1281e9f
fix: move locales to public folder
bunsyy Nov 15, 2023
4f5b53e
chore: add translation steps to Readme
bunsyy Nov 15, 2023
7bfc09d
fix: fix string interpolation translation
bunsyy Nov 15, 2023
de5fc26
fix: remove vscode
bunsyy Nov 15, 2023
745a1a7
chore: ignore vscode settings
bunsyy Nov 15, 2023
90523c1
chore: add placeholder for base url
bunsyy Nov 15, 2023
38f6de3
fix: use default json key values
bunsyy Nov 15, 2023
53768e6
fix: use svg instead of lucide-react
bunsyy Nov 15, 2023
2263bac
ES-400-sign-up-ui-terms-conditions-privacy-policy-page
Nov 13, 2023
7c3e3c9
add newline
Nov 13, 2023
19a6c43
update translation key
Nov 13, 2023
a2fd47d
change term condition page to modal
Nov 15, 2023
2cef2d2
change term condition page to modal
Nov 15, 2023
00a24bc
Add newline
Nov 15, 2023
10e15ed
Remove casting
Nov 15, 2023
163224c
chore: add double quotes
bunsyy Nov 17, 2023
f9819d8
[ES-432] [ES-402] Signup UI: common page layout across UI module (#13)
gk-4VII Nov 23, 2023
b9b655b
ES-406-sign-up-ui-enabling-context-based-navigation-post-successful-a…
rathanak-0080 Nov 29, 2023
3be90a9
ES-430 (#16)
rathanak-0080 Nov 30, 2023
564b922
Add docker and github workflow (#7)
rathanak-0080 Nov 30, 2023
18ab2b4
Add github workflow key (#19)
rathanak-0080 Nov 30, 2023
df01e7c
ES-401 (#18)
bunsy-0900 Nov 30, 2023
5e7cdb0
ES-406 (#20)
rathanak-0080 Nov 30, 2023
9243af9
ES-427 (#5)
panharith-0118 Dec 1, 2023
bbabbb1
Add licenses to pow file service (#22)
rathanak-0080 Dec 1, 2023
c4352c7
Add developer to pow file service (#23)
rathanak-0080 Dec 1, 2023
fe661d2
Update codeql-analysis.yml
rathanak-0080 Dec 1, 2023
f115d5a
Update codeql-analysis.yml
rathanak-0080 Dec 1, 2023
b39dce4
Update codeql-analysis.yml
rathanak-0080 Dec 1, 2023
38b8864
Update codeql-analysis.yml
rathanak-0080 Dec 1, 2023
b2599c0
Update codeql-analysis.yml
rathanak-0080 Dec 1, 2023
bfcad89
Update codeql-analysis.yml
rathanak-0080 Dec 1, 2023
e7fafff
Update codeql-analysis.yml
rathanak-0080 Dec 1, 2023
d177c87
Update codeql-analysis.yml
rathanak-0080 Dec 1, 2023
b4d2249
Update codeql-analysis.yml
rathanak-0080 Dec 1, 2023
ab3a54d
Update codeql-analysis.yml
rathanak-0080 Dec 1, 2023
624fc33
update pom to skip gpg (#26)
rathanak-0080 Dec 1, 2023
c4c0309
ES-429 (#28)
ase-101 Dec 5, 2023
b64fb9a
DSD-3968 (#30)
ase-101 Dec 5, 2023
b382b45
Update codeql-analysis.yml
rathanak-0080 Dec 6, 2023
173f265
Update codeql-analysis.yml
rathanak-0080 Dec 6, 2023
a630047
Update codeql-analysis.yml
rathanak-0080 Dec 6, 2023
eecdcbf
ES-427 (#34)
ase-101 Dec 6, 2023
25fc473
ES-517: Refactoring signup-ui code (#25)
bunsy-0900 Dec 7, 2023
234ce36
ES-427 Add ASYNC: Invoke sms notification endpoint (#32)
mengleang-0090 Dec 7, 2023
d0b03be
ES-391 (#35)
ase-101 Dec 8, 2023
e38916a
Update push-trigger.yml
rathanak-0080 Dec 8, 2023
d77ae4e
Update push-trigger.yml
rathanak-0080 Dec 8, 2023
fc0f033
Update push-trigger.yml
rathanak-0080 Dec 8, 2023
3ed0629
ES-513: wiring signup UI with signup service endpoints (#31)
bunsy-0900 Dec 11, 2023
dce1ab3
ES-515 (#36)
mengleang-0090 Dec 12, 2023
573d1b6
fix error from wiring backend and frontend (#33)
panharith-0118 Dec 13, 2023
722e047
update signup ui env (#41)
rathanak-0080 Dec 13, 2023
403daae
ES-430 (#42)
ase-101 Dec 14, 2023
362a93b
[DSD-3968] Updated the helm charts directory structure for signup ser…
Mohanraj209 Dec 14, 2023
22cf65a
Fix signup ui call wrong url (#44)
rathanak-0080 Dec 14, 2023
db81423
ES-405 - Mobile responsive on verify OTP pages (#40)
lengheang-0116 Dec 15, 2023
194577a
fix: enforce default lang (#45)
bunsy-0900 Dec 15, 2023
5231f39
add Khmer translation for signup (#46)
rathanak-0080 Dec 15, 2023
c29e82b
ES-513 (#47)
panharith-0118 Dec 15, 2023
ff472ab
fix: disable reload on language change (#50)
bunsy-0900 Dec 18, 2023
9cd66d7
hotfix: fix password masking and otp length (#52)
bunsy-0900 Dec 18, 2023
730da7c
Add translation keys from ID repo (#48)
rathanak-0080 Dec 18, 2023
0cd9c1c
Add missing translation for error keys (#56)
rathanak-0080 Dec 22, 2023
051cb91
ES-613 (#55)
rathanak-0080 Dec 22, 2023
8603514
ES-601 (#61)
ase-101 Dec 26, 2023
a37a6a5
ES-559 - UI Forgot Password Landing Page (#49)
bunsy-0900 Dec 27, 2023
bd3ca96
ES-620 (#60)
panharith-0118 Dec 27, 2023
9af8221
ES-604 (#53)
panharith-0118 Dec 27, 2023
82f81ae
ES-556 (#51)
panharith-0118 Dec 28, 2023
db79d9c
ES-560 - UI changes in verify_challenge input in "Enter OTP page" (#58)
bunsy-0900 Dec 28, 2023
e8a055a
ES-598 - UI Forgot Password Mobile responsiveness (#63)
lengheang-0116 Dec 28, 2023
612c555
ES-553- UI Reset Password page (#59)
bunsy-0900 Jan 2, 2024
600ff13
ES-598-V02 - UI Reset Password Mobile responsiveness (#66)
lengheang-0116 Jan 2, 2024
609f0c1
ES-621 - UI Restrict User Input i Input Fields (#62)
bunsy-0900 Jan 2, 2024
98efd2a
ES-555 and ES-557 (#64)
mengleang-0090 Jan 2, 2024
64e24e6
Add error translation key (#69)
rathanak-0080 Jan 3, 2024
f91a04f
ES-598-V03 - UI ResetPasswordConfirmation and Failed Mobile responsiv…
lengheang-0116 Jan 3, 2024
0892a5b
ES-561 - UI Wiring endpoint in Reset Password page (#71)
bunsy-0900 Jan 3, 2024
e9871b5
Update README.md
rathanak-0080 Jan 3, 2024
64ab4c5
ES-473 and ES-474 (#73)
mengleang-0090 Jan 4, 2024
5467da6
Update translation text (#75)
rathanak-0080 Jan 5, 2024
987861f
Fix base 64 bug (#77)
rathanak-0080 Jan 5, 2024
f731615
update docker file (#78)
rathanak-0080 Jan 5, 2024
add8ea3
ES-635: fix verify button enabled unexpectedly (#76)
bunsy-0900 Jan 5, 2024
8a13cf6
ES-522 (#72)
mengleang-0090 Jan 5, 2024
478327d
ES-414 (#79)
ase-101 Jan 5, 2024
09c7bc0
ES-414: Update inline text and error popup (#80)
rathanak-0080 Jan 5, 2024
47d6a0d
ES-391 (#82)
ase-101 Jan 8, 2024
d051ab1
ES-391 (#83)
ase-101 Jan 8, 2024
2b45c46
ES-391 fixed validation issue (#84)
ase-101 Jan 8, 2024
9cc28d8
ES-632: getting validation message even before providing input (#85)
bunsy-0900 Jan 9, 2024
1e66f65
chore: fix validation message (#81)
bunsy-0900 Jan 9, 2024
a825e04
Add term and condition content (#86)
rathanak-0080 Jan 9, 2024
414202f
[ES-624] Fixed the issue of updated language in login screen is not r…
gk-4VII Jan 9, 2024
eceeeab
fix: add custom waiting duration (#88)
bunsy-0900 Jan 11, 2024
008a7bf
fix: show invalid transaction as a popup when resending otp (#89)
bunsy-0900 Jan 12, 2024
23f9392
fix: disallow leading and trailing whitespaces when filling the full …
bunsy-0900 Jan 12, 2024
f3d4024
ES-664: password mask/unmask icon is overlapped in specific browser v…
bunsy-0900 Jan 12, 2024
18bbe6a
ES-658: Fix issue where the back arrow in the signup card overlaps wi…
lengheang-0116 Jan 15, 2024
194c260
UI not match to user story (#92)
rathanak-0080 Jan 15, 2024
54c3beb
ES-498
ase-101 Jan 15, 2024
91bce3f
ES-498
ase-101 Jan 15, 2024
ab8ec56
fix: add missing imports
bunsy-0900 Jan 16, 2024
1b4093d
fix: fix overflow popup content
bunsy-0900 Jan 15, 2024
ec22c7a
fix: resize info icon on small screen
bunsy-0900 Jan 16, 2024
5601012
fix: fix truncated icons
bunsy-0900 Jan 17, 2024
eb29d86
fix: add margin to icon label
bunsy-0900 Jan 17, 2024
0e0fe64
fix: add default width and height to label icon
bunsy-0900 Jan 17, 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
Prev Previous commit
Next Next commit
fix: remove deprecated code
Signed-off-by: Sreang Rathanak <sreangrathanajk@yahoo.com>
Signed-off-by: bunsy-0900 <bunsy-chhay@mptc.gov.kh>
  • Loading branch information
bunsyy authored and bunsy-0900 committed Jan 17, 2024
commit d248515846b4820abc4013e12b59fac1baf80c4d
34 changes: 0 additions & 34 deletions signup-ui/src/services/api.service.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import axios, { AxiosError } from "axios";
import { StatusCodes } from "http-status-codes";
import { NavigateFunction } from "react-router-dom";

import { LOCAL_STORAGE_EVENT } from "~constants/localStorage";
import { SOMETHING_WENT_WRONG } from "~constants/routes";
import { ApiError } from "~typings/core";

export const API_BASE_URL = process.env.REACT_APP_BASE_URL ?? "/api/";

@@ -16,37 +13,6 @@ export class HttpError extends Error {
}
}

/**
* Converts possible AxiosError objects to normal Error objects
*
* @returns HttpError if AxiosError, else original error
*/
export const transformAxiosError = (error: Error): ApiError => {
if (axios.isAxiosError(error)) {
if (error.response) {
const statusCode = error.response.status;
if (statusCode === StatusCodes.TOO_MANY_REQUESTS) {
return new HttpError("Please try again later.", statusCode);
}
if (typeof error.response.data === "string") {
return new HttpError(error.response.data, statusCode);
}
if (error.response.data?.message) {
return new HttpError(error.response.data.message, statusCode);
}
if (error.response.statusText) {
return new HttpError(error.response.statusText, statusCode);
}
return new HttpError(`Error: ${statusCode}`, statusCode);
} else if (error.request) {
return new Error(
`There was a problem with your internet connection. Please check your network and try again. ${error.message}`
);
}
}
return error;
};

// Create own axios instance with defaults.
export const ApiService = axios.create({
withCredentials: true,