Skip to content

Remove superseded funding, wallet and notebook-adjacent files nothing imports - #1165

Merged
yattias merged 1 commit into
mainfrom
cleanup/2-funding-wallet-files
Oct 10, 2026
Merged

yattias merged 1 commit into
mainfrom
cleanup/2-funding-wallet-files

Conversation

@yattias

@yattias yattias commented Oct 10, 2026

Copy link
Copy Markdown
Member

Second chunk of the dead-code removal plan (docs/dead-code-report.md, kept local), following #1164. 59 files that no live code imports, confirmed by knip plus an import-graph resolve over the whole tree on today's main, and the handful of helpers only those files called.

What goes

  • Funding / grant / RFP UI that My Funding and the work header replaced: components/Grant/GrantInfo, components/Fund/GrantInfo, FundraiseProgressV2 and FundUtils, StatusCard (only those three used it), GrantList / GrantCarousel / GrantActionBar / getShortTitle, FundingDirectionIcon, the GrantModal, GrantDetailsModal, FundResearchModal and FundingRequestModal, store/grantStore, useFundingOverview, WorkLineItems / WorkPrimaryActions, the work-page ApplicantsSection / MetricsSection / SupportersSection / UpdatesSection with the ProgressUpdates, UpdateRateBadge and BarChart they rendered, KeyInsights/* and KeyInsightsModal, NextStepsPanel, BountyMetadataLine and the Bounty barrel, EarnRightSidebar, EarningOpportunityBanner / HaveYouPublishedBanner, LeaderboardOverview, ProposalCardSkeleton.
  • Wallet / Endaoment: DafListModal, DepositSuccessView, BalanceDisplay, NetworkSelectorSection and NetworkSelector, useWalletRSCBalance, DafTooltip / EndaomentTooltip, the Endaoment barrel and useEndaomentCallback, types/endaoment, YieldChart, CurrencyInput, useIsSafari.
  • Notebook-adjacent files already unreachable (independent of the notebook retirement itself): OrganizationSwitcher and its skeleton, SidebarSection, NoteStatus, FundingGoalSection / GrantApplicationDeadlineSection, NotebookToggle, NotebookTransition.
  • Helpers only they called: useCreateContribution in hooks/useFundraise.ts and the FundraiseService.createContribution alias behind it, getRSCForNetwork and TRANSFER_ABI in constants/tokens.ts, GRANT_STATUS_CONFIG in types/grant.ts, and everything in components/Funding/fundingDirection.ts except the FundingIntent type the workspace still uses.

64 files changed, 6,482 lines removed, nothing added. No behaviour change intended.

Checks

  • npm run lint: 0 errors (2 pre-existing warnings in untouched files)
  • npm run type-check: clean
  • knip re-run after the deletions: no unused files left, no new unused exports or dependencies
  • Dev server on the branch: home, feed tabs, peer review, journal, My Funding, proposal and RFP pages render; API calls succeed

Next

Chunk 3 (cleanup/3-tiptap-ai, the never-activated Tiptap AI path) follows once this is merged.

🤖 Generated with Claude Code

… imports

Second chunk of the dead-code plan: 59 files that no live code imports,
confirmed by knip plus an import-graph resolve over the whole tree on the
current main, grouped by the feature they belonged to.

- Funding / grant / RFP UI that the My Funding dashboard and the work
  header replaced: the old grant info cards and StatusCard, the V2 fundraise
  progress bar, GrantList/GrantCarousel/GrantActionBar, the Grant, Grant
  details, Fund research and Funding request modals, grantStore, the
  work-page applicants/metrics/supporters/updates sections and the
  ProgressUpdates, UpdateRateBadge and BarChart they rendered, Key Insights,
  NextStepsPanel, WorkLineItems/WorkPrimaryActions, the bounty metadata line
  and barrel, EarnRightSidebar, two banners, LeaderboardOverview and a
  skeleton.
- Wallet / Endaoment pieces: DAF list and deposit-success views, the balance
  and network-selector sections with NetworkSelector, useWalletRSCBalance,
  DAF/Endaoment tooltips, the Endaoment barrel and useEndaomentCallback,
  types/endaoment, YieldChart, CurrencyInput, useIsSafari.
- Notebook-adjacent files that were already unreachable: OrganizationSwitcher
  and its skeleton, SidebarSection, NoteStatus, two publishing-form sections,
  NotebookToggle, NotebookTransition.

With them go the helpers only they called: useCreateContribution and the
FundraiseService.createContribution alias behind it, getRSCForNetwork and
TRANSFER_ABI, GRANT_STATUS_CONFIG, and everything in fundingDirection.ts
except the FundingIntent type the workspace still uses.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@yattias
yattias requested a review from a team as a code owner October 10, 2026 13:24
@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 10, 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 10, 2026 1:26pm UTC

Request Review

@sonarqubecloud

Copy link
Copy Markdown

@yattias
yattias merged commit f5c051a into main Oct 10, 2026
4 of 5 checks passed
@yattias
yattias deleted the cleanup/2-funding-wallet-files branch October 10, 2026 13:27

This branch was successfully deployed

1 active deployment
Preview — 2762b38b Deployed Oct 10, 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