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

Feature/340 collection host input #399

Merged
merged 14 commits into from
May 22, 2024
Merged

Conversation

ekraffmiller
Copy link
Contributor

@ekraffmiller ekraffmiller commented May 20, 2024

What this PR does / why we need it:
Adds a read only input field for the host collection in Create Dataset Page

Which issue(s) this PR closes:

Closes #340

Special notes for your reviewer:

Suggestions on how to test this:
Create a new collection then navigate to the collection page. From the collection page, select the "Add Dataset" dropdown. On the Create Dataset page, the Host Collection input should be prefilled with the alias of the new collection.

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

Screenshot 2024-05-19 at 8 57 43 PM

Is there a release notes update needed for this change?:
no
Additional documentation:
none

@ekraffmiller ekraffmiller marked this pull request as ready for review May 20, 2024 01:07
Copy link
Member

@pdurbin pdurbin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm adding a suggestion but I'm so happy that the collection is read only until you click edit! 🎉

public/locales/en/createDataset.json Outdated Show resolved Hide resolved
@g-saracca g-saracca self-assigned this May 20, 2024
@g-saracca g-saracca added pm.GREI-d-2.7.1 NIH, yr2, aim7, task1: R&D UI modules for creating datasets and supporting publishing workflows pm.GREI-d-2.7.2 NIH, yr2, aim7, task2: Implement UI modules for creating datasets and publishing workflows SPA: Create Dataset Form Size: 3 A percentage of a sprint. 2.1 hours. labels May 20, 2024
Copy link
Contributor

@g-saracca g-saracca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ekraffmiller Looks great, just a few comments.
@pdurbin thanks for that catch!

@g-saracca g-saracca assigned ekraffmiller and unassigned g-saracca May 20, 2024
@coveralls
Copy link

coveralls commented May 20, 2024

Coverage Status

coverage: 97.804% (-0.03%) from 97.829%
when pulling fb95ff9 on feature/340-collection-host-input
into 2ace63e on develop.

Base automatically changed from feature/376-add-dynamic-field-types-to-create-dataset-form to develop May 20, 2024 14:24
@@ -42,15 +45,20 @@ export function CreateDataset({

return (
<article>
<NotImplementedModal show={isModalOpen} handleClose={hideModal} />
Copy link
Contributor

@g-saracca g-saracca May 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should live outside the article element, you can use a react fragment like this:

return (
  <>
    <article>
    .....
    </article>
    <NotImplementedModal show={isModalOpen} handleClose={hideModal} />
  <>
)

@g-saracca g-saracca assigned ekraffmiller and unassigned g-saracca May 21, 2024
@ekraffmiller
Copy link
Contributor Author

@GermanSaracca I made the changes you suggested, thank you

Copy link
Contributor

@g-saracca g-saracca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good! Approved

@g-saracca g-saracca removed their assignment May 21, 2024
@GPortas GPortas self-assigned this May 22, 2024
Copy link
Contributor

@GPortas GPortas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Just tested it for a new dataset under root and under a subcollection and displays the correct collection alias.

@GPortas GPortas merged commit 0976d1d into develop May 22, 2024
14 checks passed
@GPortas GPortas deleted the feature/340-collection-host-input branch May 22, 2024 14:36
jayanthkomarraju pushed a commit to jayanthkomarraju/dataverse-frontend that referenced this pull request May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pm.GREI-d-2.7.1 NIH, yr2, aim7, task1: R&D UI modules for creating datasets and supporting publishing workflows pm.GREI-d-2.7.2 NIH, yr2, aim7, task2: Implement UI modules for creating datasets and publishing workflows Size: 3 A percentage of a sprint. 2.1 hours. SPA: Create Dataset Form
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add functional Host Collection field to the Create Dataset Form
5 participants