Skip to content

Redesign dataset provenance modal#389

Open
SanjeevLakhwani wants to merge 9 commits into
mainfrom
feat/provenance-modal-redesign
Open

Redesign dataset provenance modal#389
SanjeevLakhwani wants to merge 9 commits into
mainfrom
feat/provenance-modal-redesign

Conversation

@SanjeevLakhwani

@SanjeevLakhwani SanjeevLakhwani commented Jul 6, 2026

Copy link
Copy Markdown
Contributor
  • Redesign the dataset provenance modal UI (new header, side nav, sections, card layouts)

Extract ModalHeader, SideNav, SummarySection, SpatialCoverageSection,
ParticipantCriteriaSection, IdentifiersSection, and cards into separate
files. Main modal drops from 1113 to 357 lines. longDescExpanded state
is now local to SummarySection. Removes unused sectionRefs. Adds
styles.css for pm- modal styles.
Remove person avatars, fullscreen toggle, and logo section from the provenance modal.
…ader privacy pill

Publications now render as collapsible dense rows instead of full cards, since
datasets can carry 20+ entries. Person names no longer double up honorific
prefixes already present in the source name. Header meta strip no longer
repeats privacy (still shown in Access & License section).
…ards.tsx

DatasetProvenanceModal and its section/nav/header helpers now live under
Provenance/Modal/ instead of flat alongside unrelated page-level and catalogue
components. cards.tsx (382 lines, 8 unrelated components) is split into one
file per component under Modal/cards/, with shared type helpers extracted to
Modal/cards/helpers.ts.
@SanjeevLakhwani
SanjeevLakhwani marked this pull request as draft July 6, 2026 13:18
Reformat via prettier --fix. Replace the dataset-change reset effect with the
render-time state adjustment pattern (avoids setState-in-effect cascading
renders), rewrite a ternary-as-statement into if/else, and drop the unused
idx prop on FundingCard.
@SanjeevLakhwani
SanjeevLakhwani marked this pull request as ready for review July 6, 2026 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants