Skip to content

Avoid props drilling multiple repositories#1000

Open
ChengShi-1 wants to merge 12 commits into
developfrom
AvoidPropsDrillingFileRepo
Open

Avoid props drilling multiple repositories#1000
ChengShi-1 wants to merge 12 commits into
developfrom
AvoidPropsDrillingFileRepo

Conversation

@ChengShi-1

@ChengShi-1 ChengShi-1 commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

In order to avoid prop-drilling, we could use context to share repository instances. (We have already completed for collection repository and dataset repository)

We could create a custom hook, useRepositories( ) for passing use cases, wrap everything inside its provider component. Storybook and Test files should also be modified to match the same pattern of use context.

Which issue(s) this PR closes:

Special notes for your reviewer:

Suggestions on how to test this:

I made changes on following repositories, please check if related pages are working well

  • file
  • guestbook
  • user
  • external tool repository

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

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

Additional documentation:

@coveralls

coveralls commented Jun 4, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 97.347% (-0.04%) from 97.385% — AvoidPropsDrillingFileRepo into develop

@ChengShi-1 ChengShi-1 self-assigned this Jun 4, 2026
@ChengShi-1 ChengShi-1 added Size: 10 A percentage of a sprint. 7 hours. GREI Re-arch GREI re-architecture-related FY26 Sprint 25 FY26 Sprint 25 (2026-06-03 - 2026-06-17) labels Jun 4, 2026
@ChengShi-1 ChengShi-1 moved this to Ready for Review ⏩ in IQSS Dataverse Project Jun 10, 2026
@ChengShi-1 ChengShi-1 marked this pull request as ready for review June 10, 2026 15:03
@ChengShi-1 ChengShi-1 moved this from Ready for Review ⏩ to In Progress 💻 in IQSS Dataverse Project Jun 10, 2026
@ChengShi-1 ChengShi-1 removed their assignment Jun 10, 2026
@ChengShi-1 ChengShi-1 moved this from In Progress 💻 to Ready for Review ⏩ in IQSS Dataverse Project Jun 10, 2026
@cmbz cmbz added the FY26 Sprint 26 FY26 Sprint 26 (2026-06-17 - 2026-07-01) label Jun 18, 2026
@cmbz cmbz added the FY27 Sprint 1 FY27 Sprint 1 (2026-07-01 - 2026-07-15) label Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FY26 Sprint 25 FY26 Sprint 25 (2026-06-03 - 2026-06-17) FY26 Sprint 26 FY26 Sprint 26 (2026-06-17 - 2026-07-01) FY27 Sprint 1 FY27 Sprint 1 (2026-07-01 - 2026-07-15) GREI Re-arch GREI re-architecture-related Size: 10 A percentage of a sprint. 7 hours.

Projects

Status: Ready for Review ⏩

Development

Successfully merging this pull request may close these issues.

Avoid prop-drilling for file/user/guestbook and all other repositories

3 participants