-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update uploader widget to follow ckan 2.10 design #2
base: main
Are you sure you want to change the base?
Conversation
@aivuk this is getting better, but there's one piece missing, which is that the buttons and controls should be mutually exclusive, i.e.
This is shown in the screencast included in #1: create_resource.mp4 |
@amercader sorry, I missed that in your mockup. I did the change now, but I did need to add the field label "Data" to the ckan-upload component (before it was written on the ckanext-validation upload scheming template https://github.com/frictionlessdata/ckanext-validation/blob/feature/80-new-upload-widget/ckanext/validation/templates/scheming/form_snippets/ckan_uploader.html#L12) and removed from the ckanext-validation, otherwise it will not be simple to remove it from the js upload. What do you think? This is how it looks now: Screencast.from.03-30-2023.12.27.25.PM.webm |
I have some questions about the behaviour of the 'remove' button. With the upload we add automatically the filename and the schema when I a file is uploaded. What to do when I click remove, delete the content from the schema, mime type and name? Currently the old names keep in the fields. |
Great, that'es exactly what I meant. The changes you mention make sense
The schema for sure. Check what happens in vanilla ckan with regards to name and format, but I think they are left there (which we might want to change tbh) |
@aivuk some quick comments :
And one pending issue is the cleanup of unfinished resources. I think that should happen we clicking the "Remove" button or leaving the page. Both should ping an endpoint that calls "resource_delete" (I think there's a builtin CKAN core one, maybe we can just call that one) |
No description provided.