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

refactor: enhance IAM usage with actions #256

Merged
merged 58 commits into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from 45 commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
32bd20d
refactor: cleanup
JeffreyArt1 Jul 31, 2024
4a38b08
chore: update app dependencies
JeffreyArt1 Aug 5, 2024
5fd7b93
refactor(register): add refine step for password validation
JeffreyArt1 Aug 6, 2024
503f197
feat: add utility for handling query params
JeffreyArt1 Aug 6, 2024
02ab2b4
refactor(ory): use native flows (wip)
JeffreyArt1 Aug 6, 2024
64ad202
fix: remove return
JeffreyArt1 Aug 6, 2024
a284f2f
refactor: enhance error handling
JeffreyArt1 Aug 6, 2024
44acf21
fix: remove `console.log`
JeffreyArt1 Aug 6, 2024
80b9aa1
chore: update app dependencies
JeffreyArt1 Aug 6, 2024
ad16833
refactor: turn static class method into function
JeffreyArt1 Aug 6, 2024
b2f9c52
refactor: validate luhn on schema
JeffreyArt1 Aug 6, 2024
35c201e
fix: provide language to recaptcha
JeffreyArt1 Aug 6, 2024
96f1dc2
refactor(identification): enhance error handling (wip)
JeffreyArt1 Aug 6, 2024
e1c1c9b
fix: emotion undefined styles
JeffreyArt1 Aug 6, 2024
e51a29b
fix: add action base response
JeffreyArt1 Aug 6, 2024
c2ef0e4
chore: remove empty spaces
JeffreyArt1 Aug 6, 2024
99cee06
refactor: expand captured error scope
JeffreyArt1 Aug 6, 2024
2eb5223
refactor: expand captured error scope
JeffreyArt1 Aug 6, 2024
9a3d5db
fix: execution order
JeffreyArt1 Aug 6, 2024
d208dd6
fix: typo
JeffreyArt1 Aug 7, 2024
8dc8241
style: limit snack size
JeffreyArt1 Aug 7, 2024
bee7087
refactor: remove impossible case
JeffreyArt1 Aug 7, 2024
94073a1
refactor: localize error messages
JeffreyArt1 Aug 7, 2024
5cef1da
refactor: remove unused vars
JeffreyArt1 Aug 7, 2024
d3e7a26
fix: handle luhn valid incorrect `cedulas`
JeffreyArt1 Aug 7, 2024
fff14ad
refactor: improve action state types
JeffreyArt1 Aug 7, 2024
2c65265
refactor: use secure cookies in production only
JeffreyArt1 Aug 7, 2024
f5de590
fix: acces to undefined (safari)
JeffreyArt1 Aug 7, 2024
fd617f8
refactor: do not try reduce falsy values
JeffreyArt1 Aug 7, 2024
f0f1c8c
fix: error on landscape orientation on mobile
JeffreyArt1 Aug 8, 2024
c2132c5
chore: update app dependencies
JeffreyArt1 Aug 8, 2024
1eca56a
feat: reset liveness after 5 minutes of initialized its component
JeffreyArt1 Aug 12, 2024
8b6cea3
chore: update app dependencies
JeffreyArt1 Aug 12, 2024
66620b6
chore: update app dependencies
JeffreyArt1 Aug 13, 2024
0863e82
chore: update app dependencies
JeffreyArt1 Aug 15, 2024
4c84d7e
feat(css, ux): improve responsiveness and adjust modal app bar position
JE1999 Aug 15, 2024
b43837c
refactor: make liveness timeout configurable
JeffreyArt1 Aug 22, 2024
d5a7129
fix: provide default empty flow
JeffreyArt1 Aug 22, 2024
47b637c
fix: require registered unverified accounts to resend a code to activ…
JeffreyArt1 Aug 22, 2024
3814c31
chore: update app dependencies
JeffreyArt1 Aug 22, 2024
7ffecbf
refactor: enhance sentry exchange
JeffreyArt1 Aug 22, 2024
ff25976
bump: version `v1.5.0`
JeffreyArt1 Aug 22, 2024
1eedb3d
chore: update app dependencies
JeffreyArt1 Aug 26, 2024
bb3a1f9
style(liveness): fix positioning
JeffreyArt1 Aug 26, 2024
3fa899c
feat(register): add flow parameter to registration process state
JeffreyArt1 Aug 26, 2024
6f499dc
style(global): convert liveness mobile margin from `px` to `rem`
JeffreyArt1 Aug 26, 2024
a3d9bd0
fix: use correct link and name for `Soy Yo RD`
JeffreyArt1 Aug 26, 2024
2923dfa
feat: enable `Soy yo RD` link
JeffreyArt1 Aug 29, 2024
173c332
Merge branch 'master' into refactor/exception-enhancements
JeffreyArt1 Aug 29, 2024
c3b77fb
chore: update app dependencies
JeffreyArt1 Aug 30, 2024
69d6ab4
chore: update app dependencies
JeffreyArt1 Sep 1, 2024
b2db901
chore: update `postcss`
JeffreyArt1 Sep 2, 2024
c0f4ebb
feat: make input immutable
JeffreyArt1 Sep 3, 2024
186aff8
ci: add variables to example
JeffreyArt1 Sep 3, 2024
0c43c5d
fix: send activation code if logged from an inactive account
JeffreyArt1 Sep 3, 2024
75298c5
chore: update app dependencies
JeffreyArt1 Sep 3, 2024
75a9598
Merge branch 'master' into refactor/exception-enhancements
JeffreyArt1 Sep 3, 2024
71fb0d4
chore: update app dependencies
JeffreyArt1 Sep 5, 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
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ NEXT_PUBLIC_SENTRY_DSN=
SENTRY_ORG=
SENTRY_PROJECT=
SENTRY_AUTH_TOKEN=
NEXT_PUBLIC_LIVENESS_TIMEOUT_SECONDS=300
1 change: 1 addition & 0 deletions .github/workflows/sub-build-push-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
push: true
build-args: |
NEXT_PUBLIC_LIVENESS_TIMEOUT_SECONDS=${{ vars.NEXT_PUBLIC_LIVENESS_TIMEOUT_SECONDS }}
NEXT_PUBLIC_RECAPTCHA_SITE_KEY=${{ vars.NEXT_PUBLIC_RECAPTCHA_SITE_KEY }}
NEXT_PUBLIC_GTM_ID=${{ vars.NEXT_PUBLIC_GTM_ID }}
NEXT_PUBLIC_ORY_SDK_URL=${{ vars.NEXT_PUBLIC_ORY_SDK_URL }}
Expand Down
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ ENV NEXT_PUBLIC_ORY_SDK_URL=${NEXT_PUBLIC_ORY_SDK_URL}
ARG NEXT_PUBLIC_SENTRY_DSN
ENV NEXT_PUBLIC_SENTRY_DSN=${NEXT_PUBLIC_SENTRY_DSN}

ARG NEXT_PUBLIC_LIVENESS_TIMEOUT_SECONDS
ENV NEXT_PUBLIC_LIVENESS_TIMEOUT_SECONDS=${NEXT_PUBLIC_LIVENESS_TIMEOUT_SECONDS}

ARG SENTRY_AUTH_TOKEN
ENV SENTRY_AUTH_TOKEN=${SENTRY_AUTH_TOKEN}

Expand Down
1 change: 1 addition & 0 deletions env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace NodeJS {
interface ProcessEnv {
NODE_ENV?: 'development' | 'production';
CEDULA_API?: string;
CEDULA_API_KEY?: string;
JCE_PHOTO_API?: string;
Expand Down
58 changes: 29 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "cuenta-unica-registry",
"description": "Portal de registro de Cuenta Única",
"version": "v1.4.0",
"version": "v1.5.0",
"private": false,
"author": "OGTIC",
"license": "MIT",
Expand Down Expand Up @@ -35,58 +35,58 @@
}
},
"dependencies": {
"@aws-amplify/adapter-nextjs": "^1.2.7",
"@aws-amplify/ui-react": "^6.1.13",
"@aws-amplify/ui-react-liveness": "^3.1.1",
"@aws-sdk/client-rekognition": "^3.614.0",
"@emotion/cache": "^11.11.0",
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@aws-amplify/adapter-nextjs": "^1.2.14",
"@aws-amplify/ui-react": "^6.2.0",
"@aws-amplify/ui-react-liveness": "^3.1.4",
"@aws-sdk/client-rekognition": "^3.637.0",
"@emotion/cache": "^11.13.1",
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"@formatjs/intl-localematcher": "^0.5.4",
"@hookform/resolvers": "^3.9.0",
"@mui/icons-material": "^5.16.4",
"@mui/material": "^5.16.4",
"@next/third-parties": "^14.2.5",
"@ory/client": "^1.14.0",
"@mui/icons-material": "^5.16.7",
"@mui/material": "^5.16.7",
"@next/third-parties": "^14.2.6",
"@ory/client": "^1.14.4",
"@ory/integrations": "^1.2.1",
"@sentry/nextjs": "^8.18.0",
"aws-amplify": "^6.4.0",
"@sentry/nextjs": "^8.26.0",
"aws-amplify": "^6.5.2",
"check-password-strength": "^2.0.10",
"hibp": "^14.1.1",
"hibp": "^14.1.2",
"negotiator": "^0.6.3",
"next": "^14.2.5",
"next": "^14.2.6",
"next-recaptcha-v3": "^1.4.1",
"react": "^18.3.1",
"react-gtm-module": "^2.0.11",
"react-hook-form": "7.52.1",
"react-hook-form": "7.52.2",
"react-imask": "^7.6.1",
"typescript": "^5.5.3",
"typescript": "^5.5.4",
"zod": "^3.23.8"
},
"devDependencies": {
"@commitlint/cli": "^19.3.0",
"@commitlint/cli": "^19.4.0",
"@commitlint/config-conventional": "^19.2.2",
"@testing-library/react": "^16.0.0",
"@types/cookie": "^0.6.0",
"@types/negotiator": "^0.6.3",
"@types/node": "^20.14.11",
"@types/react": "^18.3.3",
"@types/node": "^20.16.1",
"@types/react": "^18.3.4",
"@types/react-dom": "^18.3.0",
"@types/react-google-recaptcha": "^2.1.9",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@vitejs/plugin-react": "^4.3.1",
"aws-crt": "^1.21.3",
"aws-crt": "^1.21.8",
"eslint": "^8.57.0",
"eslint-config-next": "^14.2.5",
"eslint-config-next": "^14.2.6",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5.1.3",
"husky": "^9.0.11",
"jsdom": "^24.1.0",
"lint-staged": "^15.2.7",
"eslint-plugin-prettier": "^5.2.1",
"husky": "^9.1.5",
"jsdom": "^24.1.3",
"lint-staged": "^15.2.9",
"prettier": "^3.3.3",
"vitest": "^2.0.3"
"vitest": "^2.0.5"
}
}
Loading