fix(vps): drop Windows License toggle from estimator

Windows BYOL is free and doesn't change the price, so the toggle
was UI clutter. The Included With All Plans card already
communicates the BYOL requirement (line updated to read
"Linux included; Windows supported (bring your own license)" for
clarity), and OS template selection at checkout still lets users
pick a Windows image when they're ready to deploy.

- AddOnsPanel.vue: removed the Windows License switch
- EstimatorSection.vue: removed onWindowsChange handler
- stores/estimator.ts: removed windowsLicense state, dropped from
  share/checkout URL params and hydration
- ConfigOptionSeeder.php: dropped the legacy 'Windows License'
  option from the VPS Add-ons group (deletes existing row)
- CheckoutController.php: removed ?windows=1 query-param handling
  from buildPrefilledSelections
- VpsHosting.vue: tightened the BYOL line in the Included card

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-26 16:28:03 -04:00
parent bc5ccf1731
commit 66a65263c3
6 changed files with 8 additions and 58 deletions

View File

@@ -165,11 +165,12 @@ class ConfigOptionSeeder extends Seeder
// IPv4 Addresses (quantity)
$ipv4Option = $this->seedQuantityOption($vpsAddons, 'IPv4 Addresses', 1, 8, 'addresses', 8.00, 1);
// Windows License (checkbox)
$winOption = $this->seedCheckboxOption($vpsAddons, 'Windows License', 2);
$this->seedValues($winOption, [
['label' => 'Yes (Free BYOL)', 'value' => 'yes', 'monthly' => 0, 'is_default' => false],
]);
// Drop the legacy Windows License option if it exists (BYOL is now communicated
// via marketing copy + OS template selection at checkout).
PlanConfigOption::query()
->where('group_id', $vpsAddons->id)
->where('name', 'Windows License')
->delete();
// Attach to all active VPS plans
$vpsSlugs = ['vps-1', 'vps-2', 'vps-3-custom', 'vps-4', 'vps-8', 'vps-16', 'vps-32', 'stor-500', 'stor-1tb'];