Skip to content

Add support for per-phase user scripts#899

Open
mihaelabalutoiu wants to merge 6 commits into
cloudbase:masterfrom
mihaelabalutoiu:add-user-script-phases
Open

Add support for per-phase user scripts#899
mihaelabalutoiu wants to merge 6 commits into
cloudbase:masterfrom
mihaelabalutoiu:add-user-script-phases

Conversation

@mihaelabalutoiu

Copy link
Copy Markdown
Member

This PR has the following changes:

  • Add the OS-morphing phase model used by per-phase user scripts;
  • Add applyUserScriptsChange state helper;
  • Add the per-phase Choose Scripts modal;
  • Integrate the per-phase scripts modal into every flow:
    • WizardScripts now manages scripts through the per-target modal and a single onScriptsChange callback, applied across the flows via applyUserScriptsChange.
  • Update summary to show the phase label;
  • Populate instance details after execution without a refresh:
    • Polling refreshed transfer.info once an execution collected the VM export_info but never re-derived the instance details, so after executing a transfer those sections stayed empty until a manual page refresh.

Add the phase model and the extended UserScriptValue format

Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
Centralize the uploaded/removed user-script state
transition, recording a null removed entry when a
target is cleared so it serializes to null.

Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
`WizardScripts` now manages scripts through the
per-target modal and a single `onScriptsChange` callback,
applied across the flows via `applyUserScriptsChange`.

Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
Polling refreshed `transfer.info` once an execution
collected the VM `export_info` but never re-derived
the instance details, so after executing a transfer
those sections stayed empty until a manual page refresh.

Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
@mihaelabalutoiu mihaelabalutoiu force-pushed the add-user-script-phases branch from 879c29a to 2a44c7d Compare June 12, 2026 13:09
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