Skip to content

chore(cleanup): remove unused components, dead helpers, and orphaned … - #430

Merged
0xdevcollins merged 4 commits into
boundlessfi:mainfrom
DANTE-1903:chore/remove-unused-components
Oct 22, 2026
Merged

0xdevcollins merged 4 commits into
boundlessfi:mainfrom
DANTE-1903:chore/remove-unused-components

Conversation

@DANTE-1903

@DANTE-1903 DANTE-1903 commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Closes #411

Summary

Delete unused components (components/marketing/, components/ui/) and dead helpers (lib/crop-image.ts, components/ui/command.tsx, components/marketing/faq-accordion.tsx, components/marketing/faq-data.ts).
Remove unused dependencies (react-hook-form, react-easy-crop, sonner, cmdk) and regenerate package-lock.json with npm install.
Remove public images referenced only by deleted files.
Verification

npm run lint ✓
npx tsc --noEmit ✓
npm run build ✓
npx knip → no unused files or dependencies


Maintainer update

Synced with main (which now includes #402 and #404, plus #428) and re-checked:

  • Kept components/ui/dialog.tsx. Feat/issue 408 how to get listed #428 added components/discover/how-to-get-listed-dialog.tsx, which imports it; deleting it broke tsc and the build after the merge.
  • Removed 7 more unused files knip still reported: components/marketing/{explore-path,glow,pillar-card,placeholder}.tsx and components/ui/{card,label,popover}.tsx.
  • Removed 29 unreferenced images from public/ (11.6 MB): the blog/blog-post1-3.svg, featured.png, Boundless-3d-con.png, Floating.png, Grid.png, the 1st/2nd/3rd position.png set, onboarding and illustration leftovers, vercel.svg, window.svg, and the unused brand kit zip. brand/boundless-logo-*.svg stay (loaded via boundless-logo-${variant}).

npx knip --include files,dependencies,devDependencies,unlisted after the changes:

Unlisted dependencies (1)
postcss  postcss.config.mjs

No unused files or dependencies. The postcss line is the Tailwind PostCSS config, unchanged by this PR.

Checks: npm run lint, npx tsc --noEmit, npm run build, npm run seo:check (5/5). /, /builders and /about render with no broken images (all 81 optimized image variants return 200) and no horizontal overflow at 1440px and 375px.

…dependencies

Merge after boundlessfi#402 and boundlessfi#404. Both remove code, which leaves more files unused.

Context
--------
Much of components/ was copied from the main Boundless app and the old
bounties app, and nothing here imports it. Unused code makes the repo harder
to read, sends contributors to the wrong examples, and keeps dependencies in
package.json for nothing.

Scope
------
- Delete the files below, then repeat until nothing is left that only deleted
  files used (e.g. components/ui/command.tsx, components/marketing/faq-data.ts,
  lib/crop-image.ts).
- Remove the dependencies that end up unused and regenerate package-lock.json
  with npm install.
- Remove images in public/ that only the deleted files referenced.

Removed components
-------------------
- components/marketing/: article-card, brand-kit-cta, cta-pill, cta-ticker,
  cta-band(-kept), escrow-flow, faq (+faq-accordion, faq-data), four-steps,
  funding-paths, funding-programs, get-started-modal, intro-section, personas,
  prize-pool, team-section, testimonials, trust-bar, youtube-embed, explore-path,
  glow, pillar-card, placeholder
- components/ui/: avatar-group, command, country-select, dialog, entity-row,
  form, glow-banner, hover-card, image-cropper, input, option-card, select,
  snapshot-card, sonner, sparks-icon, success-dialog, tabs, textarea,
  token-amount, label, popover

Removed helpers and dependencies
---------------------------------
- lib/crop-image.ts (only used by deleted image-cropper)
- Dependencies unused after the above: react-hook-form, react-easy-crop,
  sonner, cmdk

Removed public assets
----------------------
- brand/Boundless-mark-card.svg, brand/boundless-mark.svg, brand/usdc.png,
  currency/sparks.svg, onboarding/success-badge.svg, social/linkedin.svg,
  team/team1.svg, team/team2.svg, team/team3.svg, team/team4.svg
- (plus a handful of other public images that are unreferenced after this
  cleanup)

Standing rules
--------------
- If something here turns out to be needed later, port it from the main app
  again; that is the repo's rule in README.md.

Co-Authored-By: Buffy <noreply@codebuff.com>
@drips-wave

drips-wave Bot commented Oct 18, 2026

Copy link
Copy Markdown

@DANTE-1903 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@vercel

vercel Bot commented Oct 18, 2026

Copy link
Copy Markdown

@DANTE-1903 is attempting to deploy a commit to the Threadflow Team on Vercel.

A member of the Team first needs to authorize it.

- Keep components/ui/dialog.tsx: since this branch was cut, boundlessfi#428 added
  components/discover/how-to-get-listed-dialog.tsx, which imports it.
  Deleting it broke tsc and the build once merged with main.
- Remove the 7 files knip still reports as unused after syncing with main:
  components/marketing/{explore-path,glow,pillar-card,placeholder}.tsx and
  components/ui/{card,label,popover}.tsx.
29 files (11.6 MB) left over from the archived bounties app and earlier
removals; nothing in app/, components/, lib/, scripts or docs points at
them. brand/boundless-logo-*.svg stay: they load through a template path.
@0xdevcollins
0xdevcollins merged commit 4443169 into boundlessfi:main Oct 22, 2026
1 check failed
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.

Delete unused components and dependencies

2 participants