From 7b2ed7c7b0197d760ea04c59de393b2f7a478ebc Mon Sep 17 00:00:00 2001 From: Alireza Hassani Date: Wed, 26 Aug 2026 15:47:27 +0330 Subject: [PATCH] Tighten AI prompts modal actions and drop Templates home card. Co-authored-by: Cursor --- .../src/pages/BusinessesPage.module.css | 14 -- apps/super-admin/src/pages/BusinessesPage.tsx | 122 ++++++++---------- apps/super-admin/src/pages/HomePage.tsx | 9 +- 3 files changed, 58 insertions(+), 87 deletions(-) diff --git a/apps/super-admin/src/pages/BusinessesPage.module.css b/apps/super-admin/src/pages/BusinessesPage.module.css index 3a93e4e..546c361 100644 --- a/apps/super-admin/src/pages/BusinessesPage.module.css +++ b/apps/super-admin/src/pages/BusinessesPage.module.css @@ -608,20 +608,6 @@ font-size: 12px; } -.promptsListHeader { - display: flex; - align-items: center; - justify-content: space-between; - gap: 12px; - margin-bottom: 12px; -} - -.promptsListTitle { - font-size: 13px; - font-weight: 600; - color: var(--text-secondary); -} - .promptsRowActions { display: flex; align-items: center; diff --git a/apps/super-admin/src/pages/BusinessesPage.tsx b/apps/super-admin/src/pages/BusinessesPage.tsx index 545382a..2417e51 100644 --- a/apps/super-admin/src/pages/BusinessesPage.tsx +++ b/apps/super-admin/src/pages/BusinessesPage.tsx @@ -1680,72 +1680,55 @@ export function BusinessesPage() { {promptsLoading ? (

Loading…

) : promptsBusiness?.domainId ? ( - <> -
- - {domainPrompts.length} prompt{domainPrompts.length === 1 ? '' : 's'} - - + domainPrompts.length === 0 ? ( +
+
- - {domainPrompts.length === 0 ? ( -
-
- ) : ( -
    - {domainPrompts.map((prompt) => ( -
  • -
    - {prompt.name} - {prompt.body} -
    -
    - - - -
    -
  • - ))} -
- )} - + ) : ( +
    + {domainPrompts.map((prompt) => ( +
  • +
    + {prompt.name} + {prompt.body} +
    +
    + + + +
    +
  • + ))} +
+ ) ) : null}
@@ -1758,6 +1741,15 @@ export function BusinessesPage() { > Close +
diff --git a/apps/super-admin/src/pages/HomePage.tsx b/apps/super-admin/src/pages/HomePage.tsx index 336257b..9f2e71b 100644 --- a/apps/super-admin/src/pages/HomePage.tsx +++ b/apps/super-admin/src/pages/HomePage.tsx @@ -1,4 +1,4 @@ -import { CalendarDays, Building2, Users, Globe, FileText, Settings } from 'lucide-react' +import { CalendarDays, Building2, Users, Globe, Settings } from 'lucide-react' import { useAuth } from '../context/AuthContext' import { SectionCard } from '../components/SectionCard' import styles from '../components/PageContent.module.css' @@ -25,13 +25,6 @@ const sections = [ linkText: 'View websites', href: '/websites', }, - { - icon: FileText, - title: 'Templates', - description: 'AI prompt templates per website with shareable public links.', - linkText: 'View templates', - href: '/templates', - }, { icon: Settings, title: 'Settings',