Skip to content

Conversation

@brunod-e
Copy link
Contributor

@brunod-e brunod-e commented Jan 22, 2026

Moved design-system folder to outside components folder and cleanup unused components to avoid dead code

@vercel
Copy link

vercel bot commented Jan 22, 2026

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

Project Deployment Review Updated (UTC)
anticapture Ready Ready Preview, Comment Jan 22, 2026 8:16pm
anticapture-storybook Ready Ready Preview, Comment Jan 22, 2026 8:16pm

Request Review

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR restructures the design system by moving it from shared/components/design-system/ to shared/design-system/ and removes several unused components to eliminate dead code.

Changes:

  • Moved entire design-system folder from nested location to be a sibling of the components folder
  • Removed unused components: DaoTemplate, TheTable, SkeletonDaoInfoCards, TelegramBotMessage, Sparkline, SwitchCardDaoInfoItem, BaseCardDaoInfo, Badge, InlineAlert (old version), BannerAlert (old version)
  • Updated all import paths across the codebase from @/shared/components/design-system/* to @/shared/design-system/*
  • Updated documentation in .cursor/rules/design.mdc to reflect new import paths

Reviewed changes

Copilot reviewed 131 out of 167 changed files in this pull request and generated no comments.

Show a summary per file
File Description
apps/dashboard/templates/index.ts Removed export of deleted DaoTemplate
apps/dashboard/templates/DaoTemplate.tsx Deleted unused DAO template component
apps/dashboard/shared/design-system/* Moved design-system components from nested location (83 files added)
apps/dashboard/shared/components/design-system/* Removed old design-system location (27 files deleted)
apps/dashboard/shared/components/index.ts Updated exports to reference new design-system location
apps/dashboard/shared/components/**/!(index).tsx Updated import paths throughout codebase (100+ files)
apps/dashboard/features/**/!(index).tsx Updated import paths in feature files (50+ files)
apps/dashboard/app/**/page.tsx Updated import paths in page components (15+ files)
.cursor/rules/design.mdc Updated documentation with new import paths
Deleted components Removed 9 unused components including Badge, BaseCardDaoInfo, TheTable, etc.
Comments suppressed due to low confidence (1)

apps/dashboard/shared/design-system/links/underlined-link/UnderlinedLink.tsx:20

  • The className string contains both text-sm and text-[13px] which specify conflicting text sizes. In Tailwind CSS, when multiple utilities of the same property are present, the last one in the source order wins. This means text-[13px] will override text-sm. Remove the redundant text-sm class to avoid confusion.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@pikonha pikonha marked this pull request as draft January 27, 2026 12:38
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.

2 participants