Skip to content

My Funding: polish pass and a live feed for signed-out visitors - #1158

Merged
yattias merged 4 commits into
mainfrom
my-funding/polish
Oct 8, 2026
Merged

yattias merged 4 commits into
mainfrom
my-funding/polish

Conversation

@yattias

@yattias yattias commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

Follow-up to #1155.

Changes

  • Research you funded: the latest update or review now spans the whole row, under both the title and "You gave". Before, it stopped short of the amount. Its label and date sit on their own line above the text, and the row has a little more room.
  • See all links: one shared, quieter style (SeeAllButton in DashboardSectionHeader.tsx), with grey 13px text and an arrow that nudges forward on hover. It is used by every section and the rail (12px there), and also by the empty state's "All proposals" and "All open RFPs".
  • Hero deck covers: funded proposals show their cover image. A proposal without one keeps the icon card.
  • Moderator "view as": the page now reads in the first person ("You've given…"). It shows that user's proposals, peer reviews, earnings and funders, as they would see them; before, only what they gave and their RFPs appeared. The user's author profile comes from the moderator user details (useViewedAuthorId). Drafts, the Funding power card and the "new activity" marks stay the moderator's own.
  • Signed out: the header swaps the sample cards for a live feed (MyFundingLiveHero). It has a "Your funding dashboard" badge, the headline "Your corner of science, live." and example events scrolling upward. The feed pauses on hover and stays still under reduced motion. It sits beside the text on wide screens and under the buttons on phones. The scrolling uses a new Tailwind animation, feed-scroll.
  • Deleting drafts: each draft in the left sidebar has a ⋯ menu with Delete. The menu shows on hover, on the open row and on touch screens. The open draft has the same menu after its title in the top bar, through a new titleActions slot in TopBarSlotContext. Delete asks for confirmation (DeleteDraftModal) and removes the row at once. Deleting the open draft goes to My Funding. Published documents have no menu.
  • Your funders: a user who gave to their own proposal is no longer listed as their own funder.

Backend dependency

The covers and the moderator's author id need ResearchHub/researchhub-backend#4257. Without it the page still works: funded proposals keep the icon card, and the moderator view leaves out the user's updates and reviews.

Testing

  • npm run lint and npm run type-check pass.
  • Signed in, checked against a local backend with a temporary Playwright script, not committed. It used real funder data (5 funded proposals, one with an update), first as the funder's own page and then as a moderator viewing that funder.
  • Signed out, checked at 1440px and 375px.
  • Draft deletion, checked with a temporary Playwright script; the delete request was intercepted, so nothing was deleted. Covered the sidebar menu, the confirmation, the row being removed, the top-bar menu on an open draft, the move to My Funding afterwards, and the error toast when the request fails.

🤖 Generated with Claude Code

yattias and others added 2 commits October 8, 2026 12:37
…, first-person moderator view

- Research you funded: the latest update or review spans the whole row,
  under both the title and the amount, with its label on its own line.
- Every "See all" link shares one quiet style: grey text with an arrow.
- Funded proposals show their cover in the hero deck (`image_url` from the
  funding overview).
- A moderator viewing another user sees the page as that user does: first
  person, with their proposals, peer reviews and earnings. Their author
  profile comes from the moderator user details. Drafts, Funding power and
  seen marks stay the moderator's own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… page

The signed-out header swaps the sample cards for a "Your funding dashboard"
badge, the headline "Your corner of science, live." and a feed of example
events (updates, money in, proposals for an RFP, reviews, bounties) scrolling
upward on its own. It pauses on hover and stays still under reduced motion.
The feed sits beside the text on wide screens and under the buttons on phones.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@yattias
yattias requested a review from a team as a code owner October 8, 2026 16:38
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@vercel

vercel Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
web Ready Ready Preview Oct 8, 2026 4:54pm UTC

Request Review

yattias and others added 2 commits October 8, 2026 12:52
…ent's title

Each draft row in the sidebar has a ⋯ menu (shown on hover, on the open row
and on touch screens), and the open draft has the same menu after its title
in the top bar, through a new title-actions slot in TopBarSlotContext. Delete
asks first, removes the row at once, and deleting the open draft goes to
My Funding. Published documents have no menu.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Someone who gave to their own proposal was listed under Your funders.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sonarqubecloud

sonarqubecloud Bot commented Oct 8, 2026

Copy link
Copy Markdown

@yattias
yattias merged commit 70ddfc0 into main Oct 8, 2026
4 of 5 checks passed
@yattias
yattias deleted the my-funding/polish branch October 8, 2026 16:54

This branch was successfully deployed

1 active deployment
Preview — ad5f8f30 Deployed Oct 8, 2026 by vercel[bot]
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.

1 participant