Skip to content

feat: add editable AI prompts to system tasks UI#818

Merged
chubes4 merged 1 commit intomainfrom
feat/system-task-prompt-editor
Mar 16, 2026
Merged

feat: add editable AI prompts to system tasks UI#818
chubes4 merged 1 commit intomainfrom
feat/system-task-prompt-editor

Conversation

@chubes4
Copy link
Member

@chubes4 chubes4 commented Mar 16, 2026

Summary

  • Expose system task AI prompts in the admin UI — the backend was fully built (prompt definitions, REST API, CLI, wp_options storage) but never surfaced. Tasks with AI prompts now have an "Edit Prompts" button in the System Tasks tab.
  • Move PromptField to @shared/components/ — was siloed in the pipelines webpack bundle. Now reusable across all admin bundles (agent, pipelines, settings, etc.)

How it works

┌─────────────────────────────────────────┐
│  Task Card                              │
│  ┌───────────────────────────────────┐  │
│  │ Alt Text Generation          [✓]  │  │
│  │ Generate alt text for images...   │  │
│  │                                   │  │
│  │ Trigger: ⚡ add_attachment hook   │  │
│  │ Last run: Mar 15, 2:30 PM        │  │
│  │ Total runs: 42                    │  │
│  │                                   │  │
│  │ [Run Now]  [Edit Prompts]         │  │
│  │                                   │  │
│  │ ┌─────────────────────────────┐   │  │
│  │ │ Alt Text Prompt             │   │  │
│  │ │ ┌───────────────────────┐   │   │  │
│  │ │ │ Write alt text for... │   │   │  │
│  │ │ │ {{context}}           │   │   │  │
│  │ │ └───────────────────────┘   │   │  │
│  │ │ Variables: {{context}}      │   │  │
│  │ │ [Reset to default]         │   │  │
│  │ └─────────────────────────────┘   │  │
│  └───────────────────────────────────┘  │
└─────────────────────────────────────────┘

Tasks with editable prompts (5 total)

Task Prompt Keys
Alt Text generate
Meta Description generate
Internal Linking insert_link
Daily Memory daily_summary, memory_cleanup

Files changed (4)

File Change
@shared/components/PromptField.jsx New — moved from pipelines shared, AUTO_SAVE_DELAY defined locally
PipelineStepCard.jsx Import updated to @shared path
systemTaskPrompts.js New — TanStack Query hooks for GET/PUT/DELETE prompts API
SystemTasksTab.jsx Added PromptEditor, prompt fetching, save/reset wiring, "Edit Prompts" button per task card

The backend infrastructure was fully built (getPromptDefinitions(),
REST API, CLI, storage) but the admin UI never exposed it. Tasks
with AI prompts now show an 'Edit Prompts' button that expands an
inline editor with auto-save, variable hints, and reset-to-default.

Changes:
- Move PromptField to @shared/components/ for cross-bundle reuse
- Update PipelineStepCard import to use @shared path
- Add systemTaskPrompts query hooks (GET/PUT/DELETE)
- Add PromptEditor and prompt section to SystemTasksTab TaskCard
- Tasks with editable prompts: Alt Text, Meta Description,
  Internal Linking, Daily Memory (5 prompts total)
@github-actions
Copy link

github-actions bot commented Mar 16, 2026

Homeboy Results — data-machine

Lint

⚡ Scope: changed files only

lint (changed files only)

Test

⚡ Scope: changed files only

test (changed files only)

Audit

⚡ Scope: changed files only

audit (changed files only)

Tooling versions
  • Homeboy CLI: homeboy 0.78.0+01729422
  • Extension: wordpress from https://github.com/Extra-Chill/homeboy-extensions
  • Extension revision: unknown
  • Action: Extra-Chill/homeboy-action@v1

Homeboy Action v1

@chubes4 chubes4 merged commit cf2ace8 into main Mar 16, 2026
3 checks passed
@chubes4 chubes4 deleted the feat/system-task-prompt-editor branch March 16, 2026 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant