Skip to content

Shared parameter definitions: management UI (2/2)#32

Merged
StuartMeeks merged 1 commit into
mainfrom
feat/shared-parameters-ui
May 30, 2026
Merged

Shared parameter definitions: management UI (2/2)#32
StuartMeeks merged 1 commit into
mainfrom
feat/shared-parameters-ui

Conversation

@StuartMeeks

Copy link
Copy Markdown
Owner

Part 2 of the shared parameter definitions feature (task #1) — the management UI on top of the part-1 resolution engine (PR #31, merged).

What this adds

  • CLI-scoped parameters — a "Shared parameters" section in the CLI editor dialog, reusing the existing parameter-row editor. CliEditorViewModel gains an editable Parameters collection (add/remove), and BuildUpdatedCli writes them.
  • Global parameters — a new "Shared parameters" entry in the left pane footer (Trash-style), opening a GlobalParametersViewModel content view with add/remove rows and a Save (persisted by ShellViewModel.SaveGlobalParameters). Per your call, global params live in the main UI, not Settings.

Both surfaces reuse ParameterEditorRowViewModel and the same param-row layout as the Snip editor, so authoring is consistent everywhere.

Behaviour

With the part-1 resolver already merged, a snip now actually inherits these: {env} with no local env picks up the CLI's env, or a global region, by name (local > CLI > global). The feature is now fully usable end to end.

Tests

  • GlobalParametersViewModelTests (load / add+build / remove), extended CliEditorViewModelTests (load+rebuild params, add/remove rows), and a ShellViewModel test that SaveGlobalParameters persists edited rows to the document. Full suite: 175 passing.
  • WinUI head builds clean on the Windows build agent.

Manual check (can't from Linux)

A quick visual pass that the CLI-editor "Shared parameters" section and the pane-footer "Shared parameters" view render and save as expected.

🤖 Generated with Claude Code

Adds the authoring surfaces for the shared-parameter resolution landed in
part 1:
- CLI-scoped params: a "Shared parameters" section in the CLI editor dialog
  (reuses the existing parameter-row editor); CliEditorViewModel gains an
  editable Parameters collection.
- Global params: a new GlobalParametersViewModel content view, opened from a
  "Shared parameters" entry in the pane footer (Trash-style), with add/remove
  rows and a Save persisted by ShellViewModel.SaveGlobalParameters. Global
  params live in the main UI, not Settings, per the agreed design.

Both reuse ParameterEditorRowViewModel and the existing param-row layout.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@StuartMeeks StuartMeeks merged commit c48eb1c into main May 30, 2026
4 checks passed
@StuartMeeks StuartMeeks deleted the feat/shared-parameters-ui branch May 30, 2026 12:39
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