Repository navigation
chore(cleanup): remove unused components, dead helpers, and orphaned … - #430
Merged
0xdevcollins merged 4 commits intoOct 22, 2026
Merged
Conversation
…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>
|
@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! 🚀 |
|
@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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:components/ui/dialog.tsx. Feat/issue 408 how to get listed #428 addedcomponents/discover/how-to-get-listed-dialog.tsx, which imports it; deleting it broketscand the build after the merge.components/marketing/{explore-path,glow,pillar-card,placeholder}.tsxandcomponents/ui/{card,label,popover}.tsx.public/(11.6 MB): theblog/blog-post1-3.svg,featured.png,Boundless-3d-con.png,Floating.png,Grid.png, the1st/2nd/3rd position.pngset, onboarding and illustration leftovers,vercel.svg,window.svg, and the unused brand kit zip.brand/boundless-logo-*.svgstay (loaded viaboundless-logo-${variant}).npx knip --include files,dependencies,devDependencies,unlistedafter the changes:No unused files or dependencies. The
postcssline 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)./,/buildersand/aboutrender with no broken images (all 81 optimized image variants return 200) and no horizontal overflow at 1440px and 375px.