From 13ff3ad237f5fa9992c0c4c0a358a53aad18c9ec Mon Sep 17 00:00:00 2001 From: nicktytarenko Date: Fri, 20 Nov 2026 21:52:19 +0200 Subject: [PATCH 1/2] Trim the proposal sidebar's RFP and prize cards The linked RFP card now shows only the RFP's title and its organization. The amount, the open or closed status and the proposal count are gone: the prize card above already shows the money, and Kobe asked for less text across the site. The prize card's Awarded step drops its funder lines, " picks who wins the prize once results are posted." while open and "From " once awarded, since the RFP card names the funder. "The prize has closed" stays. --- components/work/AwardProposalCard.tsx | 10 +++---- components/work/LinkedRfpCard.tsx | 39 ++------------------------- 2 files changed, 5 insertions(+), 44 deletions(-) diff --git a/components/work/AwardProposalCard.tsx b/components/work/AwardProposalCard.tsx index 01e3c9471..4e22c4a6e 100644 --- a/components/work/AwardProposalCard.tsx +++ b/components/work/AwardProposalCard.tsx @@ -75,7 +75,6 @@ export function AwardProposalCard({ grantOpen, fundraise, }); - const funder = linkedGrant.organization.trim(); const headline = phase === 'none' ? formatCurrency({ @@ -108,12 +107,9 @@ export function AwardProposalCard({ key: 'awarded', label: 'Awarded', date: awardedDate, - // Only a named funder says anything the step doesn't already. - detail: awarded - ? funder && `From ${funder}` - : stillOpen - ? funder && `${funder} picks who wins the prize once results are posted.` - : 'The prize has closed', + // Only a prize that closed without an award needs saying; the RFP card + // below already names the funder. + detail: !awarded && !stillOpen ? 'The prize has closed' : undefined, done: awarded, disabled: !awarded && !stillOpen, }, diff --git a/components/work/LinkedRfpCard.tsx b/components/work/LinkedRfpCard.tsx index f5116b4f3..fb9d67dc3 100644 --- a/components/work/LinkedRfpCard.tsx +++ b/components/work/LinkedRfpCard.tsx @@ -6,62 +6,27 @@ import { DocumentThumbnail } from '@/components/Funding/dashboard/DocumentThumbn import { isAwardMechanism } from '@/components/Funding/lib/fundingMechanism'; import { SidebarCard } from '@/components/ui/SidebarCard'; import { getLinkedGrantLink } from '@/components/work/lib/linkedGrant'; -import { useCurrencyPreference } from '@/contexts/CurrencyPreferenceContext'; -import { useExchangeRate } from '@/contexts/ExchangeRateContext'; import type { Work } from '@/types/work'; -import { formatCurrencyAmount } from '@/utils/currency'; -import { pluralizeSuffix } from '@/utils/stringUtils'; -import { cn } from '@/utils/styles'; /** * The RFP a proposal answers, in its sidebar under the funding card: the RFP's - * image, name, funder and amount, whether it is still open and how many - * proposals it has. The whole row opens the RFP. + * image, name and funder, kept short on purpose. The whole row opens the RFP. */ export function LinkedRfpCard({ work }: { work: Work }) { - const { showUSD } = useCurrencyPreference(); - const { exchangeRate } = useExchangeRate(); const grant = work.linkedGrant; const { title, href } = getLinkedGrantLink(work); if (!grant || !title) return null; const isPrize = isAwardMechanism(grant.fundingMechanism); - const isOpen = grant.status === 'OPEN'; - const count = grant.applicantCount; - const amount = - grant.fundingAmount > 0 - ? formatCurrencyAmount({ - amount: grant.fundingAmount, - currency: grant.currency === 'USD' ? 'USD' : 'RSC', - showUSD, - exchangeRate, - shorten: true, - }) - : undefined; // The title falls back to the organization, so don't name it twice. const funder = grant.organization.trim() !== title ? grant.organization.trim() : ''; - const byline = [funder, amount].filter(Boolean).join(' · '); const row = ( <> {title} - {byline && {byline}} - - + {funder && {funder}} ); From 9ca2b9d44db912fc01d3a2fa9d7fbb9a55302538 Mon Sep 17 00:00:00 2001 From: nicktytarenko Date: Fri, 20 Nov 2026 22:09:37 +0200 Subject: [PATCH 2/2] Drop the Awarded step's comment --- components/work/AwardProposalCard.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/components/work/AwardProposalCard.tsx b/components/work/AwardProposalCard.tsx index 4e22c4a6e..48735cbd5 100644 --- a/components/work/AwardProposalCard.tsx +++ b/components/work/AwardProposalCard.tsx @@ -107,8 +107,6 @@ export function AwardProposalCard({ key: 'awarded', label: 'Awarded', date: awardedDate, - // Only a prize that closed without an award needs saying; the RFP card - // below already names the funder. detail: !awarded && !stillOpen ? 'The prize has closed' : undefined, done: awarded, disabled: !awarded && !stillOpen,