Add Super Admin AI prompt templates and business assignment UI.

Templates library plus per-business prompt list with edit, copy public link, and remove.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-26 15:28:41 +03:30
co-authored by Cursor
parent b50e4fd812
commit 0aab7b5529
13 changed files with 1209 additions and 132 deletions
@@ -4,6 +4,7 @@ import {
Building2,
Eraser,
ExternalLink,
FileText,
Globe,
MoreHorizontal,
Trash2,
@@ -22,6 +23,7 @@ interface BusinessActionsOverflowMenuProps {
businessName: string
/** Primary apex domain host when set — enables website / dashboard links. */
host?: string | null
onAiPrompts: () => void
onAllUsers: () => void
onWipeData: () => void
onRemove: () => void
@@ -46,6 +48,7 @@ function openHost(host: string) {
export function BusinessActionsOverflowMenu({
businessName,
host,
onAiPrompts,
onAllUsers,
onWipeData,
onRemove,
@@ -194,6 +197,18 @@ export function BusinessActionsOverflowMenu({
</button>
))}
{linkItems.length > 0 && <div className={styles.menuDivider} role="separator" />}
<button
type="button"
className={styles.item}
role="menuitem"
onClick={() => {
setOpen(false)
onAiPrompts()
}}
>
<FileText size={16} />
<span>AI prompts</span>
</button>
<button
type="button"
className={styles.item}