Automations: move from Settings to a sidebar workspace with a task dropdown

The Automations caret in the main sidebar lists the user's tasks (status
dot, persisted expand state, live refresh via AUTOMATIONS_CHANGED) and
deep-links /automations?task=<id>, which scrolls to the card and highlights
it. The management surface (compiler, task list, run history) moves to the
standalone /automations route; the settings tab is removed and legacy
?tab=automations deep links redirect. Assistant proposal creation notifies
the sidebar too. README/RUNNING/help wording follows; browser regression
covers the dropdown, deep link, redirect and mobile overflow.
This commit is contained in:
Andrew S Erwin
2026-11-23 14:19:37 -06:00
parent 6e8525014d
commit 53127cc8fa
10 changed files with 153 additions and 30 deletions
+4 -2
View File
@@ -15,6 +15,7 @@ import { Sparkles, Loader2, Send, FilePlus2, Wand2, Check } from 'lucide-react'
import ReactMarkdown from 'react-markdown'
import remarkGfm from 'remark-gfm'
import { toast } from 'sonner'
import { notifyAutomationsChanged } from '@/lib/automations'
type Spec = {
condition: { type: string; url?: string; question?: string; op?: string; threshold?: number; text?: string; keyword?: string }
@@ -107,7 +108,8 @@ export function Assistant() {
})
const data = await res.json().catch(() => null)
if (res.ok) {
toast.success('Automation created — see Settings → Automations')
toast.success('Automation created — see Automations in the sidebar')
notifyAutomationsChanged()
setMessages(messages.map((m, i) => i === msgIndex ? { ...m, proposalState: 'created' as const } : m))
} else {
toast.error(data?.error ?? 'Could not create the automation')
@@ -183,7 +185,7 @@ export function Assistant() {
)}
{unavailable && (
<p className="text-xs text-destructive">
No AI available — add your provider and key in Settings → AI (Automations tab shows the same hint).
No AI available — add your provider and key in Settings → AI (the Automations page shows the same hint).
</p>
)}
{messages.map((m, i) => (