Skip to content

feat(harness): per-row delegate Edit and Remove in detail pane#251

Merged
eyelock merged 1 commit into
developfrom
feat/harness-delegate-editor
May 2, 2026
Merged

feat(harness): per-row delegate Edit and Remove in detail pane#251
eyelock merged 1 commit into
developfrom
feat/harness-delegate-editor

Conversation

@eyelock
Copy link
Copy Markdown
Owner

@eyelock eyelock commented May 2, 2026

Summary

Adds Edit and Remove affordances on each delegate card in the harness detail pane, gated to non-registry harnesses. Mirrors the per-row include affordances shipped in #250.

The "Add Delegate" entry point is deferred. An attempt to land it as an inline embed didn't fit how users pick a delegate (typically a harness already in the library, not a URL or path to type). That flow will be reintroduced once a unified source-picker pattern exists for Add Include, Add Delegate, Add Marketplace, and Install Harness.

What's in

  • DelegateMutator — wraps ynh delegate add / remove / update
  • HarnessDelegateEditor — coordinator for per-row Edit and Remove
  • EditDelegateSheet — ref + path fields with command preview
  • ••• menu on each delegate card with Edit and Remove
  • Remove confirmation dialog
  • Strings translated across all 40 supported languages

Test plan

  • Open a harness that has delegates; ••• menu appears on each delegate card.
  • Open a registry harness; delegate cards have no ••• menu.
  • Edit Delegate: change ref or path; command preview matches; Save persists; detail re-fetches.
  • Remove Delegate: confirm dialog → confirm → delegate vanishes; detail refreshes.

Adds the row-level affordances for delegates that mirror what we just
shipped for includes — ••• menu with Edit / Remove on each delegate
card, gated to non-registry harnesses, plus the underlying YNH wrapper.

The "Add Delegate" entry point is intentionally absent. The first
attempt landed an inline embed that didn't fit how users actually
think about picking a delegate target (a harness already in their
library, not a path to type or browse to). That flow will be
reintroduced once we agree on a unified source-picker pattern that
covers Add Include, Add Delegate, Add Marketplace, and Install
Harness consistently.

What's in:
- DelegateMutator service (ynh delegate add / remove / update)
- HarnessDelegateEditor coordinator for per-row Edit and Remove
- EditDelegateSheet (ref + path text fields + command preview)
- Per-row ••• menu on delegate cards in HarnessDetailDependencyView
- Remove confirmation dialog
- Strings translated across all 40 supported languages

What's deliberately missing (deferred):
- "Add Delegate" entry point — depends on unified picker design

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@eyelock eyelock force-pushed the feat/harness-delegate-editor branch from 9f6f1df to cff3180 Compare May 2, 2026 17:20
@eyelock eyelock changed the title feat(harness): inline delegate editor in detail pane feat(harness): per-row delegate Edit and Remove in detail pane May 2, 2026
@eyelock eyelock merged commit 8e6d82d into develop May 2, 2026
7 checks passed
@eyelock eyelock deleted the feat/harness-delegate-editor branch May 2, 2026 19:18
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