|
|
|
|
@ -159,6 +159,13 @@ $selectPlanEnd = $selectPlanStart === false ? false
|
|
|
|
|
: strpos($runtimeDeployScript, 'async function openCreate(', $selectPlanStart);
|
|
|
|
|
$selectPlan = $selectPlanStart === false || $selectPlanEnd === false ? ''
|
|
|
|
|
: substr($runtimeDeployScript, $selectPlanStart, $selectPlanEnd - $selectPlanStart);
|
|
|
|
|
$assert($selectPlan !== ''
|
|
|
|
|
&& !str_contains($selectPlan, 'renderPlanPicker();')
|
|
|
|
|
&& str_contains($selectPlan,
|
|
|
|
|
"byId('vm-plan-picker').querySelectorAll('.plan-option').forEach(button => {")
|
|
|
|
|
&& str_contains($selectPlan,
|
|
|
|
|
"button.setAttribute('aria-pressed', String(button.dataset.planId === String(plan.id)));"),
|
|
|
|
|
'Selecting a plan must preserve the focused row instead of replacing the plan list.');
|
|
|
|
|
$openCreateStart = strpos($runtimeDeployScript, 'async function openCreate(');
|
|
|
|
|
$openCreateEnd = $openCreateStart === false ? false
|
|
|
|
|
: strpos($runtimeDeployScript, 'async function loadGlobalTemplates()', $openCreateStart);
|
|
|
|
|
@ -245,6 +252,23 @@ $cardVersionRule = strpos($baseStyles,
|
|
|
|
|
'.template-version-option{width:100%;display:grid;gap:3px;');
|
|
|
|
|
$flatVersionRule = strpos($baseStyles,
|
|
|
|
|
'.template-version-option{min-height:44px;padding:11px 4px;border:0;');
|
|
|
|
|
$assert(str_contains($mobileDeploymentStyles,
|
|
|
|
|
'.plan-option{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:auto auto;gap:12px 8px;min-height:108px;')
|
|
|
|
|
&& str_contains($mobileDeploymentStyles,
|
|
|
|
|
'.plan-option-name{grid-column:1/3;grid-row:1;align-self:center;font-size:14px}')
|
|
|
|
|
&& str_contains($mobileDeploymentStyles,
|
|
|
|
|
'.plan-option-price{display:block;grid-column:3/5;grid-row:1;align-self:center;justify-self:end;padding-right:30px;')
|
|
|
|
|
&& str_contains($mobileDeploymentStyles,
|
|
|
|
|
'.plan-option-value{display:grid;grid-row:2;gap:4px;white-space:normal}')
|
|
|
|
|
&& str_contains($mobileDeploymentStyles,
|
|
|
|
|
'.plan-option>:nth-child(2){grid-column:1}.plan-option>:nth-child(3){grid-column:2}.plan-option>:nth-child(4){grid-column:3}.plan-option>:nth-child(5){grid-column:4}')
|
|
|
|
|
&& str_contains($mobileDeploymentStyles,
|
|
|
|
|
'.plan-option[aria-pressed="true"]{box-shadow:inset 4px 0 0 #20a8b1}')
|
|
|
|
|
&& str_contains($mobileDeploymentStyles,
|
|
|
|
|
'.plan-option-price::before{display:none;content:none}')
|
|
|
|
|
&& !str_contains($mobileDeploymentStyles,
|
|
|
|
|
'.plan-option{grid-template-columns:repeat(2,minmax(0,1fr))'),
|
|
|
|
|
'Mobile deployment plans must use a compact two-row comparison layout without replacing semantic plan buttons.');
|
|
|
|
|
$assert(str_contains($baseStyles,
|
|
|
|
|
'.template-catalog{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));align-items:start;')
|
|
|
|
|
&& str_contains($baseStyles,
|
|
|
|
|
|