feat(frontend): show stacked integration icons on sidebar hover
Add a compact stacked icon preview when hovering the Publish & Integrations menu item so users can see available channels before opening the page. Centralize integration tab metadata in config for easier future additions.
This commit is contained in:
@@ -2,3 +2,22 @@ export const CHROME_EXTENSION_URL =
|
||||
'https://chromewebstore.google.com/detail/jpemjbopikggjlmikmclgbmkhhopjdgd?utm_source=item-share-cb'
|
||||
|
||||
export const CLAWHUB_SKILL_URL = 'https://clawhub.ai/lyingbug/weknora'
|
||||
|
||||
export type IntegrationTab = 'im' | 'embed' | 'chrome' | 'claw'
|
||||
|
||||
export const INTEGRATION_TABS: IntegrationTab[] = ['im', 'embed', 'chrome', 'claw']
|
||||
|
||||
export type IntegrationPreviewIcon =
|
||||
| { type: 'icon'; name: string }
|
||||
| { type: 'emoji'; value: string }
|
||||
|
||||
/** Sidebar hover preview + Integrations modal nav — add new entries here. */
|
||||
export const INTEGRATION_PREVIEW_ITEMS: Array<{
|
||||
key: IntegrationTab
|
||||
icon: IntegrationPreviewIcon
|
||||
}> = [
|
||||
{ key: 'im', icon: { type: 'icon', name: 'chat-message' } },
|
||||
{ key: 'embed', icon: { type: 'icon', name: 'code' } },
|
||||
{ key: 'chrome', icon: { type: 'icon', name: 'extension' } },
|
||||
{ key: 'claw', icon: { type: 'emoji', value: '🦞' } },
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user