fix(capital): auto-generate CPP doc preview on step entry, restore section header formatting
Typecheck / desktop (pull_request) Failing after 20m30s
Typecheck / controller (pull_request) Successful in 12m40s

Preview for ГЕНЕРАТОР/БЛАГОРОСТ params no longer requires a manual button click on
first visit — onMounted now calls ensurePreview for the active wizard step. Also
fixes wizardStepOrder typing (was narrower than the runtime string values it holds).

Restores <h3> centered section-title markup in registry templates 994/995/996/998/999/1000
that was lost during the "parameterize CPP templates via private data" refactor, when
translations+context i18n structure was flattened into raw HTML.
This commit is contained in:
coopops
2026-07-17 15:21:01 +00:00
parent 5230fab7c6
commit a072364d00
7 changed files with 14 additions and 7 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -181,7 +181,7 @@ const wizardSteps = computed<StepperStep[]>(() => [
})),
]);
const wizardStepOrder = computed(() => [
const wizardStepOrder = computed<string[]>(() => [
...DOC_WIZARD_STEP_ORDER,
...COUNCIL_STEP_GROUP_ORDER,
]);
@@ -439,6 +439,13 @@ onMounted(async () => {
setWizardStepKey(normalizeWizardStepKey(activeWizardStep.value));
syncWizardStepWithCouncilProgress();
if (isDocWizardStep(activeWizardStep.value)) {
const registryId = getRegistryIdForDocWizardStep(activeWizardStep.value);
if (registryId != null) {
void ensurePreview(registryId);
}
}
if (shouldPollCouncilState.value) {
startCouncilPoll();
}