ultisuite-client/components/gmail/settings/sections/automation-settings-section.tsx
R3D347HR4Y 9e9fd208ad
Some checks are pending
E2E / Playwright e2e (push) Waiting to run
feat(admin-settings): enhance admin settings with new components and layout improvements
- Introduced new components for managing admin settings, including AdminListControls, AdminSettingsCard, and TechBrandSelectLabel.
- Implemented dynamic loading for admin settings sections to optimize performance.
- Enhanced the layout of various admin settings sections for better user experience.
- Updated the AiAssistantSection to include LLM provider management and improved model selection.
- Refactored authentication settings to streamline configuration and improve accessibility.
2026-06-15 00:22:20 +02:00

47 lines
2.0 KiB
TypeScript

"use client"
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"
import { SettingsSectionHeader } from "@/components/gmail/settings/settings-section-header"
import { AutomationRulesPanel } from "@/components/gmail/settings/automation/automation-rules-panel"
import { WebhooksPanel } from "@/components/gmail/settings/automation/webhooks-panel"
import { LLMProvidersPanel } from "@/components/gmail/settings/automation/llm-providers-panel"
import { SearchProvidersPanel } from "@/components/gmail/settings/automation/search-providers-panel"
import { ApiTokensPanel } from "@/components/gmail/settings/automation/api-tokens-panel"
import { MAIL_SETTINGS_TABS_LIST_CLASS } from "@/lib/mail-chrome-classes"
export function AutomationSettingsSection() {
return (
<>
<SettingsSectionHeader
title="Automatisations"
description="Règles et webhooks pour les événements mail, Drive, contacts et agenda — conditions et actions adaptées au déclencheur."
/>
<Tabs defaultValue="rules">
<TabsList className={MAIL_SETTINGS_TABS_LIST_CLASS}>
<TabsTrigger value="rules">Règles</TabsTrigger>
<TabsTrigger value="webhooks">Webhooks</TabsTrigger>
<TabsTrigger value="llm">Fournisseurs LLM</TabsTrigger>
<TabsTrigger value="search">Recherche</TabsTrigger>
<TabsTrigger value="tokens">Tokens API</TabsTrigger>
</TabsList>
<TabsContent value="rules" className="mt-4">
<AutomationRulesPanel />
</TabsContent>
<TabsContent value="webhooks" className="mt-4">
<WebhooksPanel />
</TabsContent>
<TabsContent value="llm" className="mt-4">
<LLMProvidersPanel />
</TabsContent>
<TabsContent value="search" className="mt-4 w-full">
<SearchProvidersPanel />
</TabsContent>
<TabsContent value="tokens" className="mt-4">
<ApiTokensPanel />
</TabsContent>
</Tabs>
</>
)
}