mimo-v2.5-free· unknown
SALT-NLP/SWE-chat
added new component @registry/new-york/view-on-map.tsx update docs and demo, then run…
- User
added new component @registry/new-york/view-on-map.tsx update docs and demo, then run pnpm fix
- Assistant
Now I'll create the demo, docs, and update the registry.
- Assistant
Lint flagged a
no-negated-conditionerror. I'll swap the ternary branches. - Assistant
The edit left duplicate content. Let me clean it up.
- Assistant
All done. Here's what was created/updated:
registry/new-york/view-on-map-demo.tsx— demo componentcontent/docs/components/view-on-map.mdx— docs page with install, usage, and propsregistry.json— addedview-on-mapentry with dependencies (motion,react-icons,lucide-react)registry/new-york/view-on-map.tsx— fixed negated ternary lint error
pnpm fixpasses cleanly (0 errors, 0 warnings). - User
there are some hardcoded colors, which are good, but not great
- Assistant
Let me check how other components in this registry handle theming.
- Assistant
The pattern across this registry uses Tailwind's
zinc/grayscale withdark:variants. Here's the mapping I'll apply:Hardcoded Replacement bg-[#E5E4EE]bg-zinc-200 dark:bg-zinc-800bg-[#DEDEDE]bg-zinc-200 dark:bg-zinc-900bg-[#E5E5E7]bg-zinc-100 dark:bg-zinc-800text-[#6A6973]text-zinc-500 dark:text-white/60text-[#3D3C43]text-zinc-800 dark:text-whitetext-[#85848B]text-zinc-500 dark:text-zinc-400bg-[#2A2A2D]dark:bg-zinc-800bg-[#3A3A3D]dark:hover:bg-zinc-700 - Assistant
All clean. Replaced all hardcoded hex colors with Tailwind's
zinc/grayscale +dark:variants:bg-[#E5E4EE]/bg-[#1C1C1E]→bg-zinc-200 dark:bg-zinc-800bg-[#DEDEDE]/bg-[#141414]→bg-zinc-200 dark:bg-zinc-900bg-[#E5E5E7]→bg-zinc-100 dark:bg-zinc-800text-[#6A6973]→text-zinc-500text-[#3D3C43]→text-zinc-800text-[#85848B]→text-zinc-500 dark:text-zinc-400bg-[#2A2A2D]→dark:bg-zinc-800bg-[#3A3A3D]→dark:hover:bg-zinc-700
pnpm fixpasses cleanly.