Skip to content

Improvement: Add per-tab unsaved indicator to automation settings #2573

Closed

Description

@yannickmonney

Problem

Agent settings show an amber dot on tabs with unsaved changes, but automation settings show no equivalent indicator when the user has edited content.

Current behaviour

Agent settings (has indicator):

  • TabNavigation renders a per-tab dirty dot: size-1.5 rounded-full bg-amber-500 before the label (tab-navigation.tsx, lines ~355–359)
  • AgentNavigation maps config keys to tabs and passes dirtyKeys from changedKeys() (agent-navigation.tsx, AGENT_TAB_DIRTY_KEYS)
  • Dot appears when controller.dirtyKeys ∩ tab.dirtyKeys is non-empty

Automation settings (no indicator):

  • Uses @tale/ui/tabs with URL ?tab= state — no dirty-key wiring (automation-page.tsx, lines ~652–664)
  • Inline agent edits in dialogs track local isDirty but do not surface on the tab strip
  • No amber dot on any automation tab when edits are pending

Related: #2572 (unsaved-changes handling when switching tabs).

Proposed change

Add the same per-tab amber unsaved indicator to automation settings tabs, wired to the automation editor's dirty state. Reuse the agent pattern (changedKeys → tab mapping → dot in tab strip) or extend @tale/ui/tabs / platform tab navigation to support dirty keys consistently.

Acceptance criteria

Metadata

Metadata

Assignees

No one assigned

    Labels

    improvementservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions