Skip to content

Commit 14c13b9

Browse files
committed
feat: Integrate PlaybooksView into DemoDashboard with tab and label
- Add PlaybooksView import and render for playbooks tab - Add playbooks to tab label mapping with translation fallback - Playbooks tab accessible to authenticated users
1 parent faa97e7 commit 14c13b9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/pages/DemoDashboard.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import ActivityLogView from '../components/DashboardViews/ActivityLogView';
2727
import WebhooksView from '../components/DashboardViews/WebhooksView';
2828
import NotificationCenter from '../components/DashboardViews/NotificationCenter';
2929
import InitialSetupDialog from '../components/DashboardViews/InitialSetupDialog';
30+
import PlaybooksView from '../components/DashboardViews/PlaybooksView';
3031
import { RescueCenterProvider } from '../contexts/RescueCenterContext';
3132

3233
import { AccessCodeProvider, useAccessCode } from '../contexts/AccessCodeContext';
@@ -83,6 +84,7 @@ function DemoDashboardContent() {
8384
customer_graph: t('sidebar.customerGraph'),
8485
system_prompt: t('sidebar.systemPrompt'),
8586
rescue_playbooks: t('sidebar.rescuePlaybooks'),
87+
playbooks: t('sidebar.playbooks') || 'AI Playbooks',
8688

8789
context_fields: t('sidebar.contextFields'),
8890
categories: t('sidebar.categories'),
@@ -217,6 +219,7 @@ function DemoDashboardContent() {
217219
{activeTab === 'billing' && <BillingView isDark={isDark} hasAccess={hasAccess} />}
218220
{activeTab === 'keys' && <KeysView isDark={isDark} hasAccess={hasAccess} />}
219221
{activeTab === 'team' && <TeamView isDark={isDark} />}
222+
{activeTab === 'playbooks' && <PlaybooksView isDark={isDark} />}
220223
{activeTab === 'integrations' && <IntegrationView isDark={isDark} />}
221224
{activeTab === 'activity_log' && <ActivityLogView isDark={isDark} />}
222225
{activeTab === 'webhooks' && <WebhooksView isDark={isDark} />}

0 commit comments

Comments
 (0)