supermemory/apps/web/components/settings/proactiveness.tsx
MaheshtheDev 97888ce859 feat(web): Company Brain proactiveness (automations) settings (#1207)
Adds the **Proactiveness** settings tab for Company Brain channel/DM automations.

- Accordion list of automations — collapsed rows with an instant enable toggle + **Run now**, expand to edit.
- Two-column editor: prompt (left) / deliver-to channel or DM, frequency, day, time (right), with local-timezone-aware cron.
- Preset gallery (connection-first, category-diverse) for empty state + a New-automation menu.
- DM delivery option with a tooltip explaining channel visibility + personal-connection fallback.
- Profile-menu entry (gated on Company Brain).

Pairs with the API automations work: **supermemoryai/mono#2480**.
2026-07-07 21:20:50 +00:00

26 lines
632 B
TypeScript

"use client"
import { cn } from "@lib/utils"
import { useHasCompanyBrain } from "@/hooks/use-company-brain"
import { dmSans125ClassName } from "@/lib/fonts"
import CompanyBrainAutomations from "./company-brain-automations"
export default function Proactiveness() {
const isCompanyBrain = useHasCompanyBrain()
if (!isCompanyBrain) {
return (
<div className="px-1 pt-2">
<p className={cn(dmSans125ClassName(), "text-[13px] text-[#6B6B6B]")}>
Company Brain isn't enabled for this organization.
</p>
</div>
)
}
return (
<div className="flex flex-col gap-6">
<CompanyBrainAutomations />
</div>
)
}