feat: migrate icon system from lucide-react to doo-iconik#110
Open
yamyr wants to merge 1 commit into
Open
Conversation
Replace all lucide-react icons (44 unique across 19 files) and 12 inline SVGs with the doo-iconik hand-drawn icon set via a typed bridge module. - Add src/lib/icons/ bridge: DooIcon component + 60-icon data subset extracted from ajentik/doo-iconik (MIT) - Migrate 19 component files to use <DooIcon name="..." /> - Remove lucide-react dependency (-577KB from bundle) - Update constitution and README to reflect new icon convention - Fix a11y: DooIcon defaults to aria-hidden="true" for decorative icons - Zero lint errors, zero type errors, build passes clean
bfb528a to
2f5b363
Compare
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.
Summary
Replaces the entire lucide-react icon system with hand-drawn doodle-style icons from ajentik/doo-iconik (MIT), giving AskSUSSi a distinctive, cohesive visual identity.
src/lib/icons/with a<DooIcon name="..." />componentlucide-reactdependency entirely (~577KB saved from node_modules)next buildArchitecture
Why a bridge module (not npm install)?
@doo-iconik/reactis not yet published to npm. The monorepo uses workspacefile:links that npm cannot resolve from git URLs. Instead, we extract a 60-icon subset from the upstream source-of-truth intosrc/lib/icons/icon-data.ts:This gives us:
IconNameunion type)aria-hidden="true"by default on all iconssize,className, and all standard SVG propsMigration map (selected)
MapPinlocation-pinSendsendCalendarcalendarNavigationnavigationXcrossStarstarDynamic icon patterns preserved
categoryIconMap: Record<string, IconName>replacesRecord<string, LucideIcon>CAPABILITIESarray usesIconNamestring literals instead of component referencesFiles changed (26)
New
src/lib/icons/DooIcon.tsx— Bridge componentsrc/lib/icons/icon-data.ts— Icon data subset (60 icons from 592)src/lib/icons/index.ts— Barrel exportModified (19 components)
src/components/layout/AppShell.tsxsrc/components/layout/HeroIntro.tsxsrc/components/layout/Onboarding.tsxsrc/components/chat/ChatInput.tsxsrc/components/chat/ChatPanel.tsxsrc/components/chat/VoiceButton.tsxsrc/components/chat/ToolResultCard.tsxsrc/components/map/POIPopup.tsxsrc/components/map/EventPopup.tsxsrc/components/map/AerialViewButton.tsxsrc/components/map/StreetViewPanel.tsxsrc/components/events/EventCard.tsxsrc/components/events/EventsPanel.tsxsrc/components/ui/POICard.tsxsrc/components/ui/VenueCard.tsxsrc/components/ui/select.tsxsrc/components/ui/sonner.tsxsrc/components/ui/error-state.tsxsrc/components/ui/empty-state.tsxUpdated docs
.specify/memory/constitution.md— Icon convention updatedREADME.md— Tech stack constraint updatedpackage.json—lucide-reactremovedValidation
npm run lintnpm run buildnpx tsc --noEmitgrep -r lucide-react src/Related issues
Not in scope (intentional)
aria-hidden/suss-logo.png) — not icons, out of scope