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

feat: property page #38

Merged
merged 164 commits into from
Oct 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
164 commits
Select commit Hold shift + click to select a range
0b95e21
Merge branch 'refactor/components' of github.com:utfprapps-pb/idr-web…
Minozzzi Apr 1, 2024
882d0ad
feat: add pagination rules to dataTable
Minozzzi Mar 31, 2024
2666ef3
feat: add table container
Minozzzi Mar 31, 2024
47e971c
style: fix input container styles
Minozzzi Apr 1, 2024
e6ed549
fix: pagination ellipsis broken screen
Minozzzi Apr 1, 2024
5257fa4
feat: pagintion item add isDisabled variant
Minozzzi Apr 1, 2024
d586538
chore: fix eslint rule
Minozzzi Apr 2, 2024
8c90eb4
feat: wip add page container
Minozzzi Apr 2, 2024
790a72e
fix: use correct sorting prop on Datatable stories
Minozzzi Apr 2, 2024
ad651c6
feat: add msw and faker setup
Minozzzi Apr 5, 2024
42bd875
feat: add msw middlewares
Minozzzi Apr 5, 2024
957f27d
feat: add msw user module with login service
Minozzzi Apr 5, 2024
7eb7524
feat: add scripts to generate a fake database for each mocked server …
Minozzzi Apr 5, 2024
8e01a90
feat: add sort for apiHttpClient
Minozzzi Apr 5, 2024
be80042
feat: add getProperties integration, export older integrations and st…
Minozzzi Apr 6, 2024
c8ebcb4
feat: add shared functions to mock endpoints
Minozzzi Apr 7, 2024
edb532d
feat: add get properties mock service
Minozzzi Apr 7, 2024
da12cdb
feat: add api mocked env
Minozzzi Apr 7, 2024
e85c48c
chore: use module import
Minozzzi Apr 7, 2024
e9fd43d
refactor: add mocked api prefix
Minozzzi Apr 10, 2024
84c0ee8
feat: add catchError util decorator
Minozzzi Apr 7, 2024
34bce8d
chore: export utils module
Minozzzi Apr 7, 2024
cdffe87
refactor(components/ui/dataTable): add correct pagination logic and l…
Minozzzi Apr 7, 2024
4efe75d
chore(components/ui/header): unify import
Minozzzi Apr 8, 2024
a0f93f6
refactor: remove unnecessary factory
Minozzzi Apr 8, 2024
f574aa5
style(components/ui/input): add w-full class
Minozzzi Apr 8, 2024
a381fe7
style(components/ui/loading): use className prop
Minozzzi Apr 8, 2024
041fa1a
style(components/ui/pagination): add cursor-default class in ellipsis
Minozzzi Apr 8, 2024
f783a91
feat(main/factories): add property factories
Minozzzi Apr 10, 2024
4993e55
refactor(presentation/containers): rename table container file name a…
Minozzzi Apr 10, 2024
409e085
feat(presentation/containers/pageContainer): add pageContainer
Minozzzi Apr 10, 2024
ed888f8
refactor(data/useCases): how to type method
Minozzzi Apr 11, 2024
a2a50e3
feat(domain/shared): add shared interfaces and types
Minozzzi Apr 11, 2024
080445c
refactor(domain/useCases): use base Request Interface
Minozzzi Apr 11, 2024
1debb79
fix(mocks/shared): logic to filter data
Minozzzi Apr 11, 2024
171702a
fix(mocks/modules/property/services/getPropertiesService): totalRegis…
Minozzzi Apr 11, 2024
40bbcd4
feat(presentation/hooks): add custom hook to dataTable params
Minozzzi Apr 11, 2024
834926d
fix(data/useCases/property): data response
Minozzzi Apr 12, 2024
1ee5df8
feat(presentation/pages/property): use custom pageContainer hook and …
Minozzzi Apr 12, 2024
44600be
feat(main): use mocks according env
Minozzzi Apr 12, 2024
80cbe8c
refactor: specific better the generic name
Minozzzi Apr 13, 2024
6f9aca5
feat: add badRequestError
Minozzzi Apr 13, 2024
eb0984b
feat: add forbiddenError
Minozzzi Apr 13, 2024
46ce89c
chore: export new errors
Minozzzi Apr 13, 2024
43c3076
feat: add create property integration
Minozzzi Apr 14, 2024
cbd1471
feat: add delete property integration
Minozzzi Apr 14, 2024
ba503b4
feat(remoteCreateUser): add badRequest validation error
Minozzzi Apr 21, 2024
6858e7c
refactor: rename CreatePropertyModel to PropertyDetailsModel
Minozzzi Apr 14, 2024
9ce95e1
feat: add get one property integration
Minozzzi Apr 19, 2024
80d1527
feat: add forbidden error validation on property integrations
Minozzzi Apr 19, 2024
139ebfb
feat: add update property integration
Minozzzi Apr 19, 2024
757b27d
feat: add command component
Minozzzi Apr 20, 2024
12be1e8
feat: add dialog component
Minozzzi Apr 20, 2024
32a0043
refactor: move useHookForm to shared hooks
Minozzzi Apr 20, 2024
b98deee
feat: add popover component
Minozzzi Apr 20, 2024
722dbb0
style: responsive sheet content
Minozzzi Apr 20, 2024
f293837
style(presentation/tabs/trigger): change bg color
Minozzzi Apr 21, 2024
d1b9824
chore: export and add packages for new components
Minozzzi Apr 21, 2024
ec21707
refactor: rename domain interfaces and domain types to be more concise
Minozzzi Apr 21, 2024
24fa4b4
feat(domain/shared/file.type): add FileType
Minozzzi Apr 21, 2024
46cd859
refactor: remove id from PropertyDetailsModel
Minozzzi Apr 21, 2024
8824852
refactor(main/factories/components/formFieldFactory): use renderProps…
Minozzzi Apr 21, 2024
fcfd503
feat(main/utils/axios/catchError): add custom message error prop
Minozzzi Apr 21, 2024
f3f785b
feat(presentation/hooks): add useModalHook
Minozzzi Apr 22, 2024
b79ee3c
feat(presentation/hooks): remove useHandleChange
Minozzzi Apr 22, 2024
fa02201
feat(presentation/hooks): add createUpdateHook builder
Minozzzi Apr 23, 2024
9f25819
feat(presentation/hooks): add listHook builder
Minozzzi Apr 23, 2024
d5d1985
feat(presentation/hooks): add listDeleteHook builder
Minozzzi Apr 23, 2024
8ae9217
feat(presentation/hooks): add pageContainerHook builder
Minozzzi Apr 24, 2024
7ae6dcd
fix(mocks/modules/property): use path params to get one property
Minozzzi Apr 24, 2024
e7118f1
fix(mocks/modules/user/services/loginService): add api prefix
Minozzzi Apr 25, 2024
dc06ddc
feat(presentation/containers): add sheetContainer and add columns wit…
Minozzzi Apr 25, 2024
1a7feb8
feat(presentation/hooks): export hooks
Minozzzi Apr 26, 2024
371f9ad
feat(presentation/containers/sheetContainer): not show buttons when l…
Minozzzi Apr 26, 2024
e90a21b
fix(mocks/modules/property/services/getPropertyService): return corre…
Minozzzi Apr 28, 2024
eaf34a4
fix(data/useCases/proeprty/remoteGetProperties): returned body
Minozzzi Apr 28, 2024
9bb75e7
refactor(domain/models/propertyModel): keep standard PropertyDetailsM…
Minozzzi Apr 28, 2024
ba1bc72
feat(main/factories/components/formFieldFactory): add key prop
Minozzzi Apr 28, 2024
439b46b
feat(scripts/seed/data): add seed for simulate all users (technical) …
Minozzzi Apr 28, 2024
b99ea4f
feat(domain/models/propertyModel): add property id
Minozzzi Apr 28, 2024
23afb5f
feat(domain/useCases/user): add getAllUser contract
Minozzzi Apr 29, 2024
cc6d98d
feat(data/useCases/user): implement getAllUsers contract
Minozzzi Apr 29, 2024
af982bf
refactor(domain/shared/option): change property from id to label
Minozzzi Apr 30, 2024
4f42baf
feat(domain/shared/listParams): add Sort and Filters type
Minozzzi Apr 30, 2024
35fbd00
fix(mocks/modules/property/services/getPropertyService): return types…
Minozzzi May 1, 2024
228ac37
feat(mocks/modules/user/services/getAllUsersService): add method to r…
Minozzzi May 1, 2024
b8ea9eb
feat(mocks/shared/filterData): validate if key is valid
Minozzzi May 1, 2024
1d063fa
refactor(main/factories/components/formFieldFactory): formFieldFactor…
Minozzzi May 2, 2024
32f9503
refactor(main/factories/useCases/cep): import domain module as types
Minozzzi May 2, 2024
715d6ae
refactor(main/factories/useCases/property): import domain module as t…
Minozzzi May 2, 2024
9cc906c
refactor(main/factories/useCases/user): import domain module as types
Minozzzi May 2, 2024
f12d399
feat(main/factories/useCases/user/remoteGetAllUsersFactory): add fact…
Minozzzi May 3, 2024
f2ee673
feat(presentation/components/ui/combobox): add combobox component
Minozzzi May 3, 2024
5d2270d
feat(presentation/components/ui/command): add loading compound compon…
Minozzzi May 3, 2024
5673c81
refactor(presentation/pages/signUp): satisfy the types useInputData
Minozzzi May 4, 2024
73d9614
refactor(presentation/pages/login): satisfy the types useInputData
Minozzzi May 4, 2024
4252ae5
feat(presentation/hooks/useModal): add callback function to call when…
Minozzzi May 5, 2024
72a29db
feat(presentation/hooks/usePageContainer): add dependencesHook
Minozzzi May 6, 2024
0602bdb
chore(presentation/components/ui): export components
Minozzzi May 6, 2024
6433c14
feat(presentation/components/ui): add missing stories
Minozzzi May 7, 2024
93e2b82
feat(masker/mask): add float mask
Minozzzi May 7, 2024
08ef538
feat(masker/mask): add money mask
Minozzzi May 7, 2024
236ac55
chore(masker/mask): export masks
Minozzzi May 7, 2024
7875a08
refactor(domain/shared): move types to types folder
Minozzzi Jun 25, 2024
99a6f6a
refactor(presentation/components/ui/dataTable): use project types ins…
Minozzzi Jun 25, 2024
b160de2
refactor(presentation/components/utils/compose): improve to accept props
Minozzzi Jun 25, 2024
37de837
chore: remove custom hooks
Minozzzi Jun 25, 2024
08e546b
feat: add react query
Minozzzi Jun 25, 2024
7981f78
feat: wip fetch properties
Minozzzi Jun 25, 2024
7872bdc
fix(domain): imports
Minozzzi Jul 24, 2024
47d36c8
feat(domain/shared/types): add nested keyof
Minozzzi Jul 24, 2024
4c3bbe6
feat(data/useCases/property): use id to update property
Minozzzi Jul 24, 2024
6963931
feat: add min number validator
Minozzzi Jul 24, 2024
efa8434
fix: nested object validation
Minozzzi Jul 24, 2024
5459e8e
feat: add flatten object
Minozzzi Jul 24, 2024
9490130
refactor: remove form field factory
Minozzzi Jul 24, 2024
3a44b27
feat: add delete container
Minozzzi Jul 24, 2024
a7ea2b5
feat: wip add property page
Minozzzi Jul 24, 2024
26cf336
fix(hooks): imports
Minozzzi Jul 24, 2024
466296a
refactor: use debouce
Minozzzi Jul 24, 2024
76964c8
fix: money mask to clear money symbol
Minozzzi Jul 24, 2024
71a3795
feat: add alert dialog
Minozzzi Jul 24, 2024
be9bc81
feat(combobox): add is error
Minozzzi Jul 24, 2024
d9314e4
refactor(input): remove debounce logic
Minozzzi Jul 24, 2024
f59cf97
refactor(datatable): sort and pagination logic
Minozzzi Jul 24, 2024
37d07ab
chore: remove use modal hook
Minozzzi Jul 24, 2024
6cc0259
fix(mocks/modules/property/services/deletePropertyService): return co…
Minozzzi Jul 24, 2024
982a378
fix(mocks/modules/property/services/getPropertiesService): total regi…
Minozzzi Jul 24, 2024
2ec4c5e
feat(mocks/modules/property/services): add update property service
Minozzzi Jul 24, 2024
80ac241
feat: add alert dialog radix package
Minozzzi Jul 24, 2024
ce3d6ba
feat(pages/propertyPage): add request to get all users tab and struct…
Minozzzi Jul 29, 2024
7938578
chore: rename store folder to contexts folder
Minozzzi Jul 29, 2024
22ad3d0
chore: remove presentation/factories folder
Minozzzi Jul 29, 2024
97782a0
refactor: use zod instead of custom validation builder and composite
Minozzzi Aug 19, 2024
5627ec1
perf: improve data table render performance
Minozzzi Aug 19, 2024
16c028a
refactor: remove generic containers
Minozzzi Aug 19, 2024
fb8b338
feat: add property page with its own containers
Minozzzi Aug 19, 2024
381e182
refactor: signup page
Minozzzi Aug 19, 2024
8a00adb
feat: add react query devtools
Minozzzi Aug 19, 2024
f798420
chore: disable eslint no shadow rule
Minozzzi Aug 19, 2024
0f25557
chore: update .nvmrc to use latest node version
Minozzzi Aug 19, 2024
6e3584d
chore: add new packages
Minozzzi Aug 19, 2024
6bdcf1b
refactor: move utils from main to shared folder
Minozzzi Aug 19, 2024
f701544
refactor: move env from main to shared folder
Minozzzi Aug 19, 2024
1e7572c
refactor: improve state management
Minozzzi Aug 26, 2024
113b617
feat: add me service data, move login service data to its own module,…
Minozzzi Sep 7, 2024
ca8f374
fix: build
Minozzzi Sep 7, 2024
b25534a
fix: pre push hook
Minozzzi Sep 7, 2024
9ede498
chore: update packages
Minozzzi Sep 7, 2024
fa6beb8
fix: me service get user name
Minozzzi Sep 7, 2024
25613cf
fix: signout when token expires
Minozzzi Sep 7, 2024
9a0a760
fix: upgrade @radix-ui/react-dropdown-menu to solve freezinh ui after…
Minozzzi Sep 14, 2024
0d83a39
fix: change current page UI of pagination
Minozzzi Sep 14, 2024
aee9c62
fix: filters with pagination
Minozzzi Sep 14, 2024
55ebb5c
fix: allow sort to be null
Minozzzi Sep 16, 2024
a0158e6
feat: add dropzone component
Minozzzi Sep 19, 2024
406a666
feat: add localization tab with dropzone
Minozzzi Sep 22, 2024
c2ab76f
fix: build errors
Minozzzi Sep 22, 2024
5a60cc6
refactor: use FileType instead of File with dropzone on forms
Minozzzi Sep 30, 2024
079ea56
chore: change way to export validators
Minozzzi Sep 30, 2024
df95238
feat: add fileType Schema
Minozzzi Sep 30, 2024
61d4298
chore: update radix react dialog version
Minozzzi Sep 30, 2024
33fd3df
feat: add latitude and longitude on localization tab
Minozzzi Oct 5, 2024
59154d6
Merge branch 'develop' of github.com:utfprapps-pb/idr-web into feat/p…
Minozzzi Oct 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
VITE_API_BASE_URL=
VITE_API_BASE_URL=
VITE_API_MOCKED=
9 changes: 8 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"no-shadow": "off",
"no-restricted-syntax": "off",
"no-useless-constructor": "off",
"no-continue": "off",
"no-empty-function": [
"error",
{
Expand Down Expand Up @@ -87,7 +88,7 @@
"import/prefer-default-export": "off",
"import/no-unresolved": "off",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-shadow": "error",
"@typescript-eslint/no-shadow": "off",
"@typescript-eslint/naming-convention": [
"error",
{
Expand All @@ -111,6 +112,12 @@
"react/prop-types": "off",
"react/require-default-props": "off",
"react/function-component-definition": "off",
"react/no-unstable-nested-components": [
"error",
{
"allowAsProps": true
}
],
"class-methods-use-this": "off"
},
"overrides": [
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,7 @@ storybook-docs
docs-build

# Cache
.eslintcache
.eslintcache

# Mocked Database
database
5 changes: 5 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm type:check
pnpm build
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.14
lts/*
79 changes: 47 additions & 32 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,66 +16,76 @@
"type:check": "tsc --noEmit",
"lint:staged": "lint-staged",
"storybook:dev": "storybook dev -p 6006",
"storybook:build": "storybook build -o docs-build"
"storybook:build": "storybook build -o docs-build",
"seed:mock": "node ./scripts/seed/index.mjs"
},
"dependencies": {
"@hookform/resolvers": "^3.9.0",
"@radix-ui/react-alert-dialog": "^1.1.1",
"@radix-ui/react-avatar": "^1.0.4",
"@radix-ui/react-dialog": "^1.0.5",
"@radix-ui/react-dropdown-menu": "^2.0.6",
"@radix-ui/react-dialog": "^1.1.1",
"@radix-ui/react-dropdown-menu": "^2.1.1",
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-popover": "^1.0.7",
"@radix-ui/react-slot": "^1.0.2",
"@radix-ui/react-tabs": "^1.0.4",
"@radix-ui/react-tooltip": "^1.0.7",
"@tanstack/react-query": "^5.45.1",
"@tanstack/react-table": "^8.15.0",
"axios": "^1.4.0",
"axios": "^1.6.7",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"cmdk": "^1.0.0",
"lucide-react": "^0.320.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hook-form": "^7.50.1",
"react-hot-toast": "^2.4.1",
"react-router-dom": "^6.14.2",
"react-router-dom": "^6.21.3",
"tailwind-merge": "^2.2.1",
"tailwindcss-animate": "^1.0.7",
"validator": "^13.11.0"
"validator": "^13.11.0",
"zod": "^3.23.8"
},
"devDependencies": {
"@commitlint/config-conventional": "^17.7.0",
"@faker-js/faker": "^8.0.2",
"@storybook/addon-actions": "^7.3.0",
"@storybook/addon-essentials": "^7.3.0",
"@storybook/addon-interactions": "^7.3.0",
"@storybook/addon-links": "^7.3.0",
"@commitlint/config-conventional": "^17.8.1",
"@faker-js/faker": "^8.4.0",
"@storybook/addon-actions": "^7.6.12",
"@storybook/addon-essentials": "^7.6.12",
"@storybook/addon-interactions": "^7.6.12",
"@storybook/addon-links": "^7.6.12",
"@storybook/addon-themes": "^7.6.12",
"@storybook/preview-web": "^7.3.0",
"@storybook/react": "^7.3.0",
"@storybook/react-vite": "^7.3.0",
"@types/react": "^18.2.20",
"@types/react-dom": "^18.2.7",
"@types/validator": "^13.11.1",
"@typescript-eslint/eslint-plugin": "^6.13.1",
"@typescript-eslint/parser": "^6.13.1",
"@vitejs/plugin-react": "^4.0.4",
"@storybook/preview-web": "^7.6.12",
"@storybook/react": "^7.6.12",
"@storybook/react-vite": "^7.6.12",
"@tanstack/eslint-plugin-query": "^5.43.1",
"@tanstack/react-query-devtools": "^5.51.23",
"@types/react": "^18.2.48",
"@types/react-dom": "^18.2.18",
"@types/validator": "^13.11.8",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@typescript-eslint/parser": "^6.20.0",
"@vitejs/plugin-react": "^4.2.1",
"autoprefixer": "^10.4.17",
"commitlint": "^17.7.0",
"eslint": "^8.55.0",
"commitlint": "^17.8.1",
"eslint": "^8.56.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-storybook": "^0.6.13",
"eslint-plugin-storybook": "^0.6.15",
"husky": "^8.0.3",
"lint-staged": "^13.2.3",
"lint-staged": "^13.3.0",
"msw": "^2.2.13",
"postcss": "^8.4.33",
"prettier": "^3.1.0",
"storybook": "^7.3.0",
"prettier": "^3.2.4",
"storybook": "^7.6.12",
"tailwindcss": "^3.4.1",
"typescript": "^5.1.6",
"vite": "^4.4.9"
"tailwindcss-animate": "^1.0.7",
"typescript": "^5.3.3",
"vite": "^4.5.2"
},
"lint-staged": {
"*.{ts,tsx}": [
Expand All @@ -87,5 +97,10 @@
"engines": {
"node": ">=18.0.0",
"npm": ">=6.14.13"
},
"msw": {
"workerDirectory": [
"public"
]
}
}
Loading
Loading