-
Notifications
You must be signed in to change notification settings - Fork 2
fix: change ds folder and cleanup unused components #1571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this 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-smandtext-[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 meanstext-[13px]will overridetext-sm. Remove the redundanttext-smclass to avoid confusion.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Moved design-system folder to outside components folder and cleanup unused components to avoid dead code