improvement(home): consolidate chat context kind icon registry#4397
improvement(home): consolidate chat context kind icon registry#4397waleedlatif1 merged 3 commits intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview Refactors Reviewed by Cursor Bugbot for commit 13409d7. Configure here. |
Summary
CHAT_CONTEXT_KIND_REGISTRYkeyed byChatContextKindas the single source of truth for chip icon/label; theRecord<ChatContextKind, …>typing makes it a compile error to add a new kind without an icon entrymapResourceToContextwith a typedRecord<MothershipResourceType, …>map; also wires the previously missinglog → logsconversion so logs chips carry an executionIdType of Change
Testing
Tested manually — @-mention each resource type (workflow, knowledge, table, file, folder, past chat, logs) and confirmed each chip renders the correct icon.
Checklist