Skip to content

[ASAP-1733] - Grant Document Components - #5244

Merged
diegonvs merged 9 commits into
masterfrom
ASAP-1733-grant-document-components
Oct 6, 2026
Merged

diegonvs merged 9 commits into
masterfrom
ASAP-1733-grant-document-components

Conversation

@diegonvs

@diegonvs diegonvs commented Oct 1, 2026

Copy link
Copy Markdown
Collaborator

ref: https://asaphub.atlassian.net/browse/ASAP-1733

Adds the Grant Document components from the designs (presentational, exported individually so they can be reused on other pages):

  • GrantDocumentHeaderCard: Project Output / output type / grant type labels, title, project, team, Date Added • Last Updated and Access Output
  • GrantDocumentOverviewCard
  • GrantDocumentPdfCard: embeds the output link as a PDF
  • GrantDocumentGrantsCard: original and supplement grants with their periods; the other grant's name links to its output
  • GrantDocumentTagsCard: 4 tags per line on desktop, 2 on mobile (new large and perLine options on TagList)
  • Two new toasts: "This is an original grant proposal. A supplement version is now available." and "The funding period for this grant has closed."

The research output page uses this layout when the output has grantDocument data, only behind STAGING_MODE. The backend integration that fills grantDocument is a separate ticket, so nothing changes in the app yet.

You can test the changes on storybook:

  • Organisms > Grant Document: each card and toast on its own
  • Templates > Shared Research > Grant Document: the full page for Original Only, Original With Supplement, Supplement and Grant Ended

@codecov

codecov Bot commented Oct 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

<div css={grantFieldStyles}>
<Subtitle noMargin>Grant Period</Subtitle>
<Paragraph noMargin accent="lead">
{`${formatProjectDate(startDate)} - ${

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I believe we might have the same issue here, sorry I didn't point it out earlier

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

See 3e1680c

@gabiayako gabiayako left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

really nice 👏

This branch was successfully deployed

1 active deployment
Branch — 3e1680c2 Deployed Oct 6, 2026 by diegonvs via crn-sls-remove #4088
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