datacite / tasks

Issues for tasks for the DataCite organization https://www.datacite.org
0 stars 0 forks source link

DOD: Fabrica Improvements #108

Closed kjgarza closed 1 year ago

kjgarza commented 1 year ago

DOD: Fabrica Improvements

Development Checklist (@svogt0511 )

Product Engineering Checklist (@kjgarza )

kjgarza commented 1 year ago

Amazing work @svogt0511 @codycooperross @bklaing2 I think i only found minor issues in 3 features. The details are in: https://bracco-mft35bhdg-datacite.vercel.app/repositories/ethz.ubasojs/dois i added the comments to vercel (if you know how to see them)

Screenshot 2023-01-16 at 13 24 16

svogt0511 commented 1 year ago

@kjgarza and @bklaing2 - Regarding the vercel comment on formats, I think that for some reason we were confused about what you wanted to see in the Formats dropdown in the create/update dois form.

Sample from the IANA Media Types standard:

image

@kjgarza - Do you want to see the 'Name' value in the dropdown and selection and the 'template' value goes to the database?

I think the template value needs to be in the dropdown because, the name values are not unique. For example, the 'ogg' format has 3 template values, as shown in the screenshots, below. I think that precludes us from showing just the name value.

image image image
svogt0511 commented 1 year ago

@kjgarza and @codycooperross - Regarding vercel review comment

language doesn't seem to appear in the JSON response, even when it exist in the XML

I thought that this lupo change had been reviewed and merged and was in the staging environment. Mike just reviewed it and that should be working as soon as the pull request #893 is merged in lupo.

We can re-test to resolve this issue as soon as it is merged. Sorry about that!

kjgarza commented 1 year ago

@kjgarza and @bklaing2 - Regarding the vercel comment on formats, I think that for some reason we were confused about what you wanted to see in the Formats dropdown in the create/update dois form.

Sample from the IANA Media Types standard:

image

@kjgarza - Do you want to see the 'Name' value in the dropdown and selection and the 'template' value goes to the database?

I think the template value needs to be in the dropdown because, the name values are not unique. For example, the 'ogg' format has 3 template values, as shown in the screenshots, below. I think that precludes us from showing just the name value.

image image image

Ohhh I see what you mean.... I think my original assumption was that the relationship were one to one. Let me think about this.

svogt0511 commented 1 year ago

@kjgarza - Regarding the formats power-select dropdown issue

I think there is an issue with the format of the power-select. you can see you can scroll within the input field. that doesn't happen in any other compoenet (subejcts or languges)

I have fixed that with a style update. I will let you know when it has been deployed so you can take a look at it.

svogt0511 commented 1 year ago

@kjgarza - Regarding the export doi metadata file name issue

Could we change the file name to something more descriptive, such as: today_date + client_id + page_number

I have modified the file name to what you suggested. Also, I think I had the button showing on pages that it shouldn't have (ex, the top level /dois page). I modified that to show the button only on "repositories.show.dois.index" pages. I will let you know when it has been deployed so you can look at it.

svogt0511 commented 1 year ago

@kjgarza - Regarding changes to the create doi button html:

could we add a ID to the button and the dropdown click elements ('a') to track them. Something along the lines of omnipresent-new-doi , omnipresent-secondary-new-doi, omnipresent-upload-doi, export-metadata

Prrobably. I will give it a try to see if it can be done.

kjgarza commented 1 year ago

You can see how all other buttons have it already https://github.com/datacite/bracco/blob/391cb7bcb3ff5b7ef712903d3bc710f3bebc160a/app/templates/prefixes/index.hbs#L23

svogt0511 commented 1 year ago

You can see how all other buttons have it already https://github.com/datacite/bracco/blob/391cb7bcb3ff5b7ef712903d3bc710f3bebc160a/app/templates/prefixes/index.hbs#L23

So I am assuming that:

I have added those ids. The export-metadata button is actually a button and not an . I added the id to the button. Hopefully that can be tracked.

svogt0511 commented 1 year ago

@kjgarza - I think I have addressed all of the review comments. I will post the vercel link here as soon as a new fabrica has been deployed with the fixes.

Actually, we do need to address the 'formats' question tomorrow, so that one is left to finish.

svogt0511 commented 1 year ago

@kjgarza - I also changed the version shown on the /about page to "4.0.0". The second half of this is to remember to use the 4.0.0 release tag when deploying it.

I have deployed all changes from review comments to vercel here. Please take a look and let me know if you need anything else. We should only have the formats issue to finish.

kjgarza commented 1 year ago

@svogt0511 everything looks great. w/r/t Format, I guess the original design from @bklaing2 is the way to go. Unfortunately, I didn't consider the 1-to-many relation of extensions and mime-types. Apologies for all the extra back-and-forth.

then the behavior would be better if goes like this:

  1. as in the user searches using the name,
  2. they see the mimetypes
  3. they select the mimetype
  4. the mimestype is displayed

Could I leave that to you to change?, and we can consider verification finished

many thanks :thumbsup:

svogt0511 commented 1 year ago

@kjgarza - reverted that power-select to the original implementation by @bklaing2.

You can verify that in vercel at: https://bracco-hnrbo0blt-datacite.vercel.app/

Thanks! We are done!! Should be time to schedule deployment.

svogt0511 commented 1 year ago

@kjgarza - Closing this. You can reopen it if necessary.

github-actions[bot] commented 1 year ago

:fireworks: Well done @svogt0511 this is a wrap! Could you fill this small retrospective survey to share your experience during this release https://forms.gle/tUrjLfRrhCB7uQg39. :sparkles: