CDLUC3 / dmptool

DMPTool version of the DMPRoadmap codebase
https://dmptool.org
MIT License
56 stars 13 forks source link

Added a different TypeAhead component that we can use in the Research Output page #590

Closed jupiter007 closed 1 month ago

jupiter007 commented 1 month ago

Fixes #580

Changes proposed in this PR:

github-actions[bot] commented 1 month ago
1 Warning
:warning: This PR is too big! Consider breaking it down into smaller PRs.

Generated by :no_entry_sign: Danger

jupiter007 commented 1 month ago

Hi @briri. I added a new TypeAhead component, but I stored my code updates to the Research Outputs page in a temporary file, because we need to make some code updates to accommodate the new "Other Repository Name" field, otherwise the form will break. I was wondering how we want to handle making those changes.

jupiter007 commented 1 month ago

This looks good to me Juliet. I also think that adding 'Other ...' to the labels for the name, description and URL will help them associate it with their selection of 'Other'. Good thinking!

As for attaching the input values to the larger DMP JSON object, we will want to update the src/model.js. The Rails side has logic in it already to determine if the DataRepository class that is sent in is new or existing. Would it be difficult to reuse that class? At least in the current DMPTool? We can revaluate and handle this all differently rebuild

Thanks Brian. I will take a look and see if I can figure out how to add the new field into the model.

briri commented 1 month ago

Thanks Brian. I will take a look and see if I can figure out how to add the new field into the model.

Would you be able to map those fields onto the existing ones in the model rather than adding new fields to the model?