feat(reuses): invite users to propose a reuse on dataset pages#92
Merged
Conversation
Add a 'inviteUserReuses' switch to the dataset page reuses config (shown only when the global allowUserReuses toggle is on and the display mode is card). When enabled, the reuses section stays visible even with no reuse and shows a paragraph inviting visitors to submit one from their personal space, with a link that preselects the current dataset in the reuse creation flow.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add an
inviteUserReusesswitch to a dataset page's reuses config. When the portal allows user-submitted reuses and the reuses display is "card", enabling it keeps the reuses section always visible and shows a paragraph inviting visitors to propose a reuse from their personal space, with a link that preselects the current dataset in the creation flow.Why: restore the v1 behaviour where portal visitors are prompted to submit a reuse of a dataset, now as an opt-in per-portal configuration.
Heads-up: no automated test — the config-editor gate (visible only when the global toggle is on and display is card) was verified manually in the browser; the portal-side render wasn't exercised end-to-end (no data-fair-dataset e2e precedent in the repo).