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

Edit Collection page #549

Open
wants to merge 46 commits into
base: develop
Choose a base branch
from
Open

Conversation

g-saracca
Copy link
Contributor

@g-saracca g-saracca commented Nov 15, 2024

What this PR does / why we need it:

Adds the edit collection page in the SPA.
Reuses the form to create a collection with a few refactors to be able to work for both modes (create and edit).

Which issue(s) this PR closes:

Special notes for your reviewer:

This can be reviewed as it is now, but for QA purposes I would wait until these two issues are merged first:

Suggestions on how to test this:

Step 1: Run the Development Environment

  1. Execute npm i.
  2. Navigate with cd packages/design-system && npm i && npm run build.
  3. Return with cd ../../.
  4. Ensure you have a .env file similar to .env.example, with the variable VITE_DATAVERSE_BACKEND_URL=http://localhost:8000.
  5. Navigate with cd dev-env.
  6. Start the environment using ./run-env.sh unstable.
  7. To verify the environment, visit http://localhost:8000 and check your local Dataverse installation.

Step 2: Test the feature
Create subcollections and edit them, go to edit them again and validate that the fields are changed.
Validate that works similar as in the JSF version.
Also validate that when editing the root collection the form also looks the same way as in JSF.

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

No, pretty much the same UI from the create collection page.

Is there a release notes update needed for this change?:

No

Additional documentation:

No

@g-saracca g-saracca added Size: 10 A percentage of a sprint. 7 hours. Original size: 10 labels Nov 15, 2024
@coveralls
Copy link

coveralls commented Nov 15, 2024

Coverage Status

coverage: 97.615% (+0.05%) from 97.561%
when pulling b6306f2 on feat/545-edit-collection-page
into 53a6a3f on develop.

@ekraffmiller ekraffmiller self-assigned this Nov 21, 2024
@cmbz cmbz added the FY25 Sprint 11 FY25 Sprint 11 (2024-11-20 - 2024-12-04) label Nov 21, 2024
Copy link
Contributor

@ekraffmiller ekraffmiller left a comment

Choose a reason for hiding this comment

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

This works really well! Some questions/comments added

src/collection/domain/models/Collection.ts Outdated Show resolved Hide resolved
src/router/routes.tsx Show resolved Hide resolved
src/sections/collection/Collection.tsx Outdated Show resolved Hide resolved
src/sections/collection/Collection.tsx Outdated Show resolved Hide resolved
@g-saracca
Copy link
Contributor Author

g-saracca commented Nov 25, 2024

@ekraffmiller all requested changes have been addressed, let me know if I have missed anything. Thanks!

@g-saracca g-saracca removed their assignment Nov 25, 2024
Copy link
Contributor

@ekraffmiller ekraffmiller left a comment

Choose a reason for hiding this comment

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

looks great, approved!

@g-saracca
Copy link
Contributor Author

Removing waiting tag since IQSS/dataverse-client-javascript#215 and IQSS/dataverse#11026 have been merged.

@g-saracca g-saracca added Size: 3 A percentage of a sprint. 2.1 hours. Original size: 3 and removed Waiting Size: 10 A percentage of a sprint. 7 hours. Original size: 10 labels Nov 26, 2024
@ofahimIQSS ofahimIQSS self-assigned this Dec 4, 2024
@cmbz cmbz added the FY25 Sprint 12 FY25 Sprint 12 (2024-12-04 - 2024-12-18) label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FY25 Sprint 10 FY25 Sprint 10 (2024-11-06 - 2024-11-20) FY25 Sprint 11 FY25 Sprint 11 (2024-11-20 - 2024-12-04) FY25 Sprint 12 FY25 Sprint 12 (2024-12-04 - 2024-12-18) GREI Re-arch GREI re-architecture-related integration Tasks involving the connection and interaction of UI features with the Dataverse API Original size: 3 Size: 3 A percentage of a sprint. 2.1 hours. SPA: Edit Collection Page SPA.Q4.3 Edit Collection Page
Projects
Status: QA ✅
Development

Successfully merging this pull request may close these issues.

Edit Collection Page
5 participants