diff --git a/craft/src/panels/context-menu/ContextMenu.tsx b/craft/src/panels/context-menu/ContextMenu.tsx index b1eb0b8..fa9371d 100644 --- a/craft/src/panels/context-menu/ContextMenu.tsx +++ b/craft/src/panels/context-menu/ContextMenu.tsx @@ -16,6 +16,8 @@ interface ContextMenuProps { interface MenuItem { label: string; + /** Font Awesome icon suffix (e.g. 'magic' for fa-magic), rendered before the label. */ + icon?: string; shortcut?: string; action: () => void; danger?: boolean; @@ -189,7 +191,8 @@ export const ContextMenu: React.FC = ({ const items: MenuItem[] = [ { - label: '✨ Ask Sitesmith', + label: 'Ask Sitesmith', + icon: 'magic', action: askSitesmith, disabled: isRoot, dividerAfter: true, @@ -291,7 +294,10 @@ export const ContextMenu: React.FC = ({ (e.target as HTMLElement).style.background = 'transparent'; }} > - {item.label} + + {item.icon && } + {item.label} + {item.shortcut && ( { cursor: 'pointer', }} > - ✕ + ) : ( @@ -328,7 +328,7 @@ export const AssetsPanel: React.FC = () => { onMouseEnter={(e) => { (e.target as HTMLElement).style.opacity = '1'; }} onMouseLeave={(e) => { (e.target as HTMLElement).style.opacity = '0.7'; }} > - ✕ + )} diff --git a/craft/src/panels/left/PagesPanel.tsx b/craft/src/panels/left/PagesPanel.tsx index a7e90a4..8b36fde 100644 --- a/craft/src/panels/left/PagesPanel.tsx +++ b/craft/src/panels/left/PagesPanel.tsx @@ -394,7 +394,7 @@ export const PagesPanel: React.FC = () => { cursor: 'pointer', }} > - ✕ + )} diff --git a/craft/src/panels/sitesmith/SitesmithButton.tsx b/craft/src/panels/sitesmith/SitesmithButton.tsx index c25e81d..6bc306a 100644 --- a/craft/src/panels/sitesmith/SitesmithButton.tsx +++ b/craft/src/panels/sitesmith/SitesmithButton.tsx @@ -21,8 +21,8 @@ export const SitesmithButton: React.FC = ({ onClick }) => { color: '#fff', border: 'none', padding: '6px 12px', borderRadius: 6, cursor: 'pointer', fontWeight: 500, }} > - ✨ Sitesmith - {locked && 🔒} + Sitesmith + {locked && } {capped && !locked && (cap)} ); diff --git a/craft/src/panels/sitesmith/SitesmithModal.tsx b/craft/src/panels/sitesmith/SitesmithModal.tsx index 6bb9ac7..56e793b 100644 --- a/craft/src/panels/sitesmith/SitesmithModal.tsx +++ b/craft/src/panels/sitesmith/SitesmithModal.tsx @@ -103,7 +103,10 @@ export const SitesmithModal: React.FC = ({ onClose, target }) => { >
-
✨ Sitesmith
+
+ + Sitesmith +
{summary && summary.enabled && (
{summary.monthly_used} / {summary.monthly_cap} this month @@ -136,7 +139,7 @@ export const SitesmithModal: React.FC = ({ onClose, target }) => { ) )} - +
diff --git a/craft/src/panels/topbar/TemplateModal.tsx b/craft/src/panels/topbar/TemplateModal.tsx index 93b2227..75f3330 100644 --- a/craft/src/panels/topbar/TemplateModal.tsx +++ b/craft/src/panels/topbar/TemplateModal.tsx @@ -248,7 +248,7 @@ export const TemplateModal: React.FC = ({ open, onClose }) =