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

Add ImportButton #327

Merged
merged 14 commits into from
Apr 13, 2021
Merged

Add ImportButton #327

merged 14 commits into from
Apr 13, 2021

Conversation

umutzd
Copy link
Contributor

@umutzd umutzd commented Apr 8, 2021

Resolves #59

Work In Progress

Test me! 'MASTER'
Link to IMPORT-BUTTON

@umutzd umutzd changed the title add buttons and basic import logic Add ImportButton Apr 8, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Apr 9, 2021

Jest Coverage

File % Stmts % Branch % Funcs % Lines Uncovered Line #s
All files 73.63 49.6 52.23 73.24
File % Stmts % Branch % Funcs % Lines Uncovered Line #s
All files 73.63 49.6 52.23 73.24
_core/src/components 100 100 0 100
_ index.ts 100 100 0 100
_core/src/components/authenticated 30 100 0 37.5
_ index.tsx 30 100 0 37.5 8-15
_core/src/components/buttons 100 100 50 100
_ index.ts 100 100 50 100
_core/src/components/buttons/clone 94.12 0 50 94.12
_ index.tsx 94.12 0 50 94.12 28
_core/src/components/buttons/create 92.86 0 50 92.86
_ index.tsx 92.86 0 50 92.86 23
_core/src/components/buttons/delete 92.31 50 33.33 91.67
_ index.tsx 92.31 50 33.33 91.67 58-60
_core/src/components/buttons/edit 94.44 75 50 94.44
_ index.tsx 94.44 75 50 94.44 35
_core/src/components/buttons/export 61.67 18.75 66.67 58.82
_ index.tsx 61.67 18.75 66.67 58.82 49,55-91,96
_core/src/components/buttons/import 74.42 41.67 42.86 72.97
_ index.tsx 74.42 41.67 42.86 72.97 43,48-65
_core/src/components/buttons/list 93.33 100 50 93.33
_ index.tsx 93.33 100 50 93.33 27
_core/src/components/buttons/refresh 95.24 75 50 94.74
_ index.tsx 95.24 75 50 94.74 41
_core/src/components/buttons/save 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/components/buttons/show 94.12 37.5 50 94.12
_ index.tsx 94.12 37.5 50 94.12 32
_core/src/components/containers 100 100 0 100
_ index.ts 100 100 0 100
_core/src/components/containers/admin 95.65 28.57 50 94.87
_ index.tsx 95.65 28.57 50 94.87 74,98
_core/src/components/containers/resource 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/components/containers/routeProvider 14.81 0 0 16
_ index.tsx 14.81 0 0 16 23-152
_core/src/components/crud 100 100 14.29 100
_ index.ts 100 100 14.29 100
_core/src/components/crud/create 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/components/crud/edit 95.45 92.86 50 95.45
_ index.tsx 95.45 92.86 50 95.45 66
_core/src/components/crud/list 95.83 80 100 95.83
_ index.tsx 95.83 80 100 95.83 42
_core/src/components/crud/show 97.06 85 80 96.43
_ index.tsx 97.06 85 80 96.43 52
_core/src/components/crud/show/showSimple 92.86 75 100 92.86
_ index.tsx 92.86 75 100 92.86 32
_core/src/components/crud/show/showTab 92.86 75 100 90
_ index.tsx 92.86 75 100 90 18
_core/src/components/crud/show/showTab/tab 93.33 75 100 91.67
_ index.tsx 93.33 75 100 91.67 30
_core/src/components/fields 100 100 16.67 100
_ index.ts 100 100 16.67 100
_core/src/components/fields/boolean 100 83.33 100 100
_ index.tsx 100 83.33 100 100 24,26
_core/src/components/fields/date 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/components/fields/email 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/components/fields/file 100 66.67 100 100
_ index.tsx 100 66.67 100 100 40-58
_core/src/components/fields/image 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/components/fields/markdown 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/components/fields/number 100 80 100 100
_ index.tsx 100 80 100 100 39
_core/src/components/fields/reference 24.14 0 0 25.93
_ index.tsx 24.14 0 0 25.93 16-63
_core/src/components/fields/richtext 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/components/fields/tag 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/components/fields/text 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/components/fields/url 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/components/layout 77.55 66.67 45.45 78.05
_ index.tsx 77.55 66.67 45.45 78.05 55-56,64-71,75,88,159-162
_core/src/components/layout/components 100 100 0 100
_ index.ts 100 100 0 100
_core/src/components/layout/components/error 50 100 0 50
_ index.tsx 50 100 0 50 7-16
_core/src/components/notification 90 75 83.33 90
_ index.tsx 90 75 83.33 90 92-97
_core/src/components/notification/components 100 100 100 100
_ index.ts 100 100 100 100
_core/src/components/notification/components/notificationProgress 100 75 100 100
_ index.tsx 100 75 100 100 17
_core/src/components/pages 100 100 50 100
_ index.tsx 100 100 50 100
_core/src/components/pages/login 31.25 100 0 31.25
_ index.tsx 31.25 100 0 31.25 14-34
_core/src/components/pages/ready 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/components/reference 91.43 50 80 88
_ index.tsx 91.43 50 80 88 60-61,75
_core/src/components/table 100 100 100 100
_ index.ts 100 100 100 100
_core/src/components/table/components 100 100 0 100
_ index.ts 100 100 0 100
_core/src/components/table/components/filterDropdown 15.63 0 0 16.67
_ index.tsx 15.63 0 0 16.67 10-64
_core/src/contexts/admin 28.57 100 50 33.33
_ index.tsx 28.57 100 50 33.33 16-24
_core/src/contexts/auth 10.26 100 0 11.76
_ index.tsx 10.26 100 0 11.76 6-12,20-60
_core/src/contexts/components 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/contexts/data 62.96 100 16.67 62.96
_ index.tsx 62.96 100 16.67 62.96 7-16
_core/src/contexts/notification 90.91 75 88.89 89.66
_ actionTypes.ts 100 100 100 100
_ index.ts 100 100 100 100
_ notificationContext.tsx 87.5 66.67 80 85.71 27-29,39
_core/src/contexts/resource 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/contexts/translation 90 100 75 90
_ index.tsx 90 100 75 90 9
_core/src/definitions 100 100 100 100
_ index.ts 100 100 100 100
_core/src/definitions/config 100 100 100 100
_ index.ts 100 100 100 100
_core/src/definitions/helpers 100 100 50 100
_ index.ts 100 100 50 100
_core/src/definitions/helpers/importCSVMapper 100 100 100 100
_ index.ts 100 100 100 100
_core/src/definitions/helpers/userFriendlySeconds 100 100 100 100
_ index.ts 100 100 100 100
_core/src/definitions/render 86.36 78.57 100 86.36
_ index.tsx 86.36 78.57 100 86.36 12,19,37
_core/src/definitions/table 72.73 50 70 70.21
_ index.ts 72.73 50 70 70.21 22,42-52,110-124
_core/src/definitions/upload 11.11 0 0 11.76
_ index.ts 11.11 0 0 11.76 13-23,32-52
_core/src/hooks 68.52 10 46.15 72.55
_ index.ts 100 100 100 100
_ useFileUploadState.ts 17.65 0 0 21.43 5-17,21-30
_ useListResourceQueries.ts 87.5 50 75 87.5 10,34,38
_core/src/hooks/admin 100 100 100 100
_ index.ts 100 100 100 100
_ useMutationMode.ts 100 100 100 100
_ useSyncWithLocation.ts 100 100 100 100
_core/src/hooks/admin/useWarnAboutChange 100 100 100 100
_ index.ts 100 100 100 100
_core/src/hooks/auth 42.25 0 0 40.98
_ index.ts 100 100 0 100
_ useAuthenticated.ts 36.36 0 0 36.36 24-35
_ useGetIdentity.ts 28.57 0 0 33.33 29-60
_ useLogin.ts 38.46 100 0 38.46 21-39
_ useLogout.ts 36.36 0 0 40 17-26
_ usePermissions.ts 25 100 0 30 28-48
_core/src/hooks/data 66.25 43.42 64.71 66.99
_ index.ts 100 100 70 100
_ useApiUrl.ts 100 100 100 100
_ useCreate.ts 93.75 100 75 93.33 34
_ useCreateMany.tsx 93.75 100 75 93.33 30
_ useDelete.ts 48.53 30.3 54.55 50.85 53,69-95,104-138,149-151,158-161,168-171
_ useDeleteMany.ts 28.57 0 0 30.77 17-37
_ useList.ts 100 100 100 100
_ useMany.ts 100 100 100 100
_ useOne.ts 100 100 100 100
_ useUpdate.ts 48.44 37.04 50 50 53,68-94,103-138,154-156,163
_ useUpdateMany.ts 91.67 50 100 90.91 27
_core/src/hooks/form 50 0 0 50
_ index.ts 100 100 0 100
_ useForm.ts 27.27 0 0 33.33 35-64
_core/src/hooks/form/useCloneForm 100 82.35 75 100
_ index.ts 100 100 0 100
_ useCloneForm.ts 100 82.35 100 100 28-30
_core/src/hooks/form/useCreateForm 62.96 25 25 59.18
_ index.ts 100 100 100 100
_ useCreateForm.ts 61.54 25 14.29 58.33 65-94,104-105,110-113,119
_core/src/hooks/form/useEditForm 67.95 50 36.36 65.75
_ index.ts 100 100 100 100
_ useEditForm.ts 67.11 50 30 65.28 116-162,171-172,177-180,186
_core/src/hooks/form/useModalForm 13.33 0 0 11.9
_ index.ts 100 100 0 100
_ useModalForm.ts 9.3 0 0 9.76 25-136
_core/src/hooks/form/useStepsForm 50 0 0 44.44
_ index.ts 100 100 0 100
_ useStepsForm.ts 37.5 0 0 37.5 15-26
_core/src/hooks/navigation 100 87.5 100 100
_ index.ts 100 87.5 100 100 44-48
_core/src/hooks/notification 100 100 100 100
_ index.ts 100 100 100 100
_ useNotification.ts 100 100 100 100
_core/src/hooks/notification/useCancelNotification 100 100 100 100
_ index.tsx 100 100 100 100
_core/src/hooks/redirection 100 100 100 100
_ index.ts 100 100 100 100
_core/src/hooks/resource 100 100 100 100
_ index.ts 100 100 100 100
_core/src/hooks/resource/useResource 100 100 100 100
_ index.ts 100 100 100 100
_core/src/hooks/resource/useResourceWithRoute 90.91 50 100 90
_ index.ts 90.91 50 100 90 12
_core/src/hooks/table 100 100 100 100
_ index.ts 100 100 100 100
_core/src/hooks/table/useEditableTable 82.35 100 42.86 86.67
_ index.ts 100 100 0 100
_ useEditableTable.ts 80 100 50 85.71 14,19
_core/src/hooks/table/useTable 73.85 59.38 66.67 68.52
_ index.ts 100 100 100 100
_ useTable.ts 73.02 59.38 50 67.92 43,55-68,103-119
_core/src/hooks/translate 100 75 100 100
_ index.ts 100 100 100 100
_ useGetLocale.ts 100 100 100 100
_ useSetLocale.ts 100 100 100 100
_ useTranslate.ts 100 75 100 100 9
_core/src/hooks/util 11.63 0 0 12.9
_ index.ts 100 100 0 100
_ useBase64Upload.ts 7.32 0 0 10 12-62
_core/test 97.67 87.5 92.86 97.56
_ dataMocks.ts 92.86 100 90.91 92.86 34
_ index.tsx 100 87.5 100 100 64
_json-server/src 91.55 89.66 84 90
_ index.ts 91.55 89.66 84 90 27-29,81-82,142
_json-server/test/create 100 100 100 100
_ index.mock.ts 100 100 100 100
_json-server/test/deleteMany 100 100 100 100
_ index.mock.ts 100 100 100 100
_json-server/test/deleteOne 100 100 100 100
_ index.mock.ts 100 100 100 100
_json-server/test/getList 100 100 100 100
_ index.mock.ts 100 100 100 100
_json-server/test/getMany 100 100 100 100
_ index.mock.ts 100 100 100 100
_json-server/test/getOne 100 100 100 100
_ index.mock.ts 100 100 100 100
_json-server/test/update 100 100 100 100
_ index.mock.ts 100 100 100 100
_json-server/test/updateMany 100 100 100 100
_ index.mock.ts 100 100 100 100
_nestjsx-crud/src 83.95 71.88 84.62 85.07
_ index.ts 83.95 71.88 84.62 85.07 30-41,141-146,184
_nestjsx-crud/test/create 100 100 100 100
_ index.mock.ts 100 100 100 100
_nestjsx-crud/test/deleteMany 100 100 100 100
_ index.mock.ts 100 100 100 100
_nestjsx-crud/test/deleteOne 100 100 100 100
_ index.mock.ts 100 100 100 100
_nestjsx-crud/test/getList 100 100 100 100
_ index.mock.ts 100 100 100 100
_nestjsx-crud/test/getMany 100 100 100 100
_ index.mock.ts 100 100 100 100
_nestjsx-crud/test/getOne 100 100 100 100
_ index.mock.ts 100 100 100 100
_nestjsx-crud/test/update 100 100 100 100
_ index.mock.ts 100 100 100 100
_nestjsx-crud/test/updateMany 100 100 100 100
_ index.mock.ts 100 100 100 100

packages/core/src/hooks/data/useCreate.ts Outdated Show resolved Hide resolved
packages/core/src/hooks/data/useCreateMany.tsx Outdated Show resolved Hide resolved
@refine-bot refine-bot merged commit 2bf6a89 into master Apr 13, 2021
@omeraplak omeraplak deleted the import-button branch April 13, 2021 12:51
This was linked to issues Apr 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

import button useCreateMany support useCreateMany yapalım mı? CSV Import
5 participants