@stacksjs/defaults 0.75.612 → 0.75.613

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/ai/skills/stacks-actions/SKILL.md +208 -0
  2. package/ai/skills/stacks-api/SKILL.md +1 -1
  3. package/ai/skills/stacks-buddy/SKILL.md +1 -1
  4. package/ai/skills/stacks-dashboard/SKILL.md +79 -0
  5. package/ai/skills/stacks-middleware/SKILL.md +4 -1
  6. package/ai/skills/stacks-native/CATALOG.md +12 -12
  7. package/ai/skills/stacks-validation/SKILL.md +7 -0
  8. package/app/Actions/Storefront/AddToCartAction.ts +12 -15
  9. package/app/Actions/Storefront/CheckoutContactAction.ts +18 -10
  10. package/app/Actions/Storefront/CheckoutShippingAction.ts +20 -10
  11. package/app/Actions/Storefront/PlaceOrderAction.ts +9 -12
  12. package/app/Actions/Storefront/UpdateCartItemAction.ts +11 -9
  13. package/app/Middleware/Abilities.ts +4 -3
  14. package/app/Middleware/Csrf.ts +10 -1
  15. package/app/Middleware/Throttle.ts +4 -4
  16. package/ide/vscode/package.json +1 -1
  17. package/package.json +5 -5
  18. package/resources/components/Dashboard/Analytics/AnalyticsPageHeader.stx +3 -13
  19. package/resources/components/Dashboard/App/RequestsOverview.stx +3 -20
  20. package/resources/components/Dashboard/App/SourceInventory.stx +1 -5
  21. package/resources/components/Dashboard/Auth/AccessTokenCreateDialog.stx +11 -28
  22. package/resources/components/Dashboard/Commerce/CommerceCategoriesDashboard.stx +4 -8
  23. package/resources/components/Dashboard/Commerce/CommerceCategoryDialog.stx +9 -9
  24. package/resources/components/Dashboard/Commerce/CommerceCouponDialog.stx +14 -14
  25. package/resources/components/Dashboard/Commerce/CommerceCouponsDashboard.stx +5 -9
  26. package/resources/components/Dashboard/Commerce/CommerceCustomerDialog.stx +7 -7
  27. package/resources/components/Dashboard/Commerce/CommerceCustomersDashboard.stx +3 -7
  28. package/resources/components/Dashboard/Commerce/CommerceGiftCardDialog.stx +15 -15
  29. package/resources/components/Dashboard/Commerce/CommerceGiftCardsDashboard.stx +5 -9
  30. package/resources/components/Dashboard/Commerce/CommerceManufacturerDialog.stx +12 -15
  31. package/resources/components/Dashboard/Commerce/CommerceManufacturersDashboard.stx +4 -28
  32. package/resources/components/Dashboard/Commerce/CommerceOrderDialog.stx +15 -15
  33. package/resources/components/Dashboard/Commerce/CommerceOrdersDashboard.stx +4 -8
  34. package/resources/components/Dashboard/Commerce/CommerceOverviewDashboard.stx +3 -11
  35. package/resources/components/Dashboard/Commerce/CommercePaymentsDashboard.stx +8 -9
  36. package/resources/components/Dashboard/Commerce/CommercePosCatalog.stx +3 -20
  37. package/resources/components/Dashboard/Commerce/CommercePosCheckoutDialog.stx +4 -4
  38. package/resources/components/Dashboard/Commerce/CommerceProductDialog.stx +14 -14
  39. package/resources/components/Dashboard/Commerce/CommerceProductsDashboard.stx +4 -8
  40. package/resources/components/Dashboard/Commerce/CommerceReviewEditDialog.stx +14 -24
  41. package/resources/components/Dashboard/Commerce/CommerceReviewsDashboard.stx +5 -43
  42. package/resources/components/Dashboard/Commerce/CommerceTaxDialog.stx +22 -38
  43. package/resources/components/Dashboard/Commerce/CommerceTaxesDashboard.stx +5 -33
  44. package/resources/components/Dashboard/Commerce/CommerceUnitDialog.stx +16 -30
  45. package/resources/components/Dashboard/Commerce/CommerceUnitsDashboard.stx +4 -28
  46. package/resources/components/Dashboard/Commerce/CommerceVariantDialog.stx +15 -9
  47. package/resources/components/Dashboard/Commerce/CommerceVariantsDashboard.stx +8 -9
  48. package/resources/components/Dashboard/Commerce/Delivery/CourierDialog.stx +14 -12
  49. package/resources/components/Dashboard/Commerce/Delivery/DeliveryRouteDialog.stx +9 -11
  50. package/resources/components/Dashboard/Commerce/Delivery/DigitalDeliveryDialog.stx +15 -9
  51. package/resources/components/Dashboard/Commerce/Delivery/LicenseKeyDialog.stx +11 -7
  52. package/resources/components/Dashboard/Commerce/Delivery/ShippingMethodDialog.stx +14 -8
  53. package/resources/components/Dashboard/Commerce/Delivery/ShippingRateDialog.stx +11 -17
  54. package/resources/components/Dashboard/Commerce/Delivery/ShippingZoneDialog.stx +18 -12
  55. package/resources/components/Dashboard/Commerce/PaymentRefundDialog.stx +1 -1
  56. package/resources/components/Dashboard/Commerce/PrintDeviceDialog.stx +5 -5
  57. package/resources/components/Dashboard/Commerce/PrintDevicesDashboard.stx +4 -8
  58. package/resources/components/Dashboard/Commerce/PrintLogsDashboard.stx +5 -9
  59. package/resources/components/Dashboard/Commerce/ProductWaitlistDashboard.stx +2 -10
  60. package/resources/components/Dashboard/Commerce/ProductWaitlistEntryDialog.stx +14 -67
  61. package/resources/components/Dashboard/Commerce/RestaurantWaitlistDashboard.stx +3 -18
  62. package/resources/components/Dashboard/Commerce/RestaurantWaitlistEntryDialog.stx +23 -69
  63. package/resources/components/Dashboard/Content/AuthorEditorDialog.stx +4 -16
  64. package/resources/components/Dashboard/Content/BlogDashboard.stx +2 -19
  65. package/resources/components/Dashboard/Content/BlogPostEditorDialog.stx +31 -51
  66. package/resources/components/Dashboard/Content/CommentsDashboard.stx +1 -1
  67. package/resources/components/Dashboard/Content/ContentDashboard.stx +1 -11
  68. package/resources/components/Dashboard/Content/CreateFolderDialog.stx +1 -4
  69. package/resources/components/Dashboard/Content/FileManagerDashboard.stx +2 -2
  70. package/resources/components/Dashboard/Content/PageEditorDialog.stx +8 -17
  71. package/resources/components/Dashboard/Content/PostEditorDialog.stx +35 -45
  72. package/resources/components/Dashboard/Content/PostsDashboard.stx +1 -13
  73. package/resources/components/Dashboard/Content/SeoDashboard.stx +2 -20
  74. package/resources/components/Dashboard/Content/SeoEditorDialog.stx +4 -38
  75. package/resources/components/Dashboard/Content/TaxonomyEditorDialog.stx +8 -15
  76. package/resources/components/Dashboard/Data/ActivityLog.stx +1 -5
  77. package/resources/components/Dashboard/Deployments/DeploymentList.stx +2 -11
  78. package/resources/components/Dashboard/Email/InboxMessageList.stx +1 -5
  79. package/resources/components/Dashboard/Infrastructure/DnsDashboard.stx +2 -16
  80. package/resources/components/Dashboard/Infrastructure/LogsDashboard.stx +6 -10
  81. package/resources/components/Dashboard/Infrastructure/MailboxesDashboard.stx +1 -5
  82. package/resources/components/Dashboard/Infrastructure/ServersDashboard.stx +1 -5
  83. package/resources/components/Dashboard/Jobs/JobHistory.stx +3 -12
  84. package/resources/components/Dashboard/Kanban/KanbanCardDialog.stx +57 -51
  85. package/resources/components/Dashboard/Library/ComponentsDashboard.stx +4 -14
  86. package/resources/components/Dashboard/Library/DependenciesDashboard.stx +2 -15
  87. package/resources/components/Dashboard/Library/PackagesDashboard.stx +1 -8
  88. package/resources/components/Dashboard/Library/SourceScaffoldDialog.stx +1 -12
  89. package/resources/components/Dashboard/Management/PermissionsDashboard.stx +3 -3
  90. package/resources/components/Dashboard/Marketing/AbandonedCartsDashboard.stx +4 -4
  91. package/resources/components/Dashboard/Marketing/CampaignDeliveryDialog.stx +3 -5
  92. package/resources/components/Dashboard/Marketing/CampaignDialog.stx +59 -93
  93. package/resources/components/Dashboard/Marketing/CampaignsDashboard.stx +5 -5
  94. package/resources/components/Dashboard/Marketing/MarketingListDialog.stx +12 -26
  95. package/resources/components/Dashboard/Marketing/MarketingListsDashboard.stx +4 -4
  96. package/resources/components/Dashboard/Marketing/RecoveryCampaignDialog.stx +12 -43
  97. package/resources/components/Dashboard/Marketing/SocialPostDialog.stx +7 -41
  98. package/resources/components/Dashboard/Marketing/SocialPostsDashboard.stx +5 -5
  99. package/resources/components/Dashboard/Models/ModelRecordsDashboard.stx +7 -23
  100. package/resources/components/Dashboard/Models/ModelsOverview.stx +2 -12
  101. package/resources/components/Dashboard/Notifications/NotificationDeliveries.stx +4 -27
  102. package/resources/components/Dashboard/Notifications/NotificationDeliveryHistory.stx +4 -36
  103. package/resources/components/Dashboard/Operations/RecoveryDestinationDialog.stx +18 -47
  104. package/resources/components/Dashboard/Operations/RecoveryPolicyDialog.stx +24 -78
  105. package/resources/components/Dashboard/Operations/RecoveryRestoreDialog.stx +8 -19
  106. package/resources/components/Dashboard/Queries/QueryDashboard.stx +3 -21
  107. package/resources/components/Dashboard/Releases/ReleaseDashboard.stx +2 -9
  108. package/resources/components/Dashboard/Settings/SettingsDashboard.stx +1 -11
  109. package/resources/components/Dashboard/UI/Input.stx +50 -1
  110. package/resources/components/Dashboard/UI/SearchFilter.stx +27 -17
  111. package/resources/components/Dashboard/UI/Select.stx +4 -1
  112. package/resources/components/Dashboard/UI/Textarea.stx +16 -1
  113. package/resources/views/cart.stx +14 -0
  114. package/resources/views/checkout/contact.stx +15 -1
  115. package/resources/views/checkout/payment.stx +7 -0
  116. package/resources/views/checkout/shipping.stx +39 -5
@@ -17,10 +17,11 @@ const includePatterns = state('')
17
17
  const excludePatterns = state('storage/framework/runtime,storage/framework/stx')
18
18
  const schedule = state('daily')
19
19
  const timezone = state('UTC')
20
- const keepLast = state(7)
21
- const expireAfterDays = state(30)
22
- const expectedRpoMinutes = state(1440)
23
- const expectedRtoMinutes = state(120)
20
+ // Text, as the shared input reports it; a number where it is sent.
21
+ const keepLast = state('7')
22
+ const expireAfterDays = state('30')
23
+ const expectedRpoMinutes = state('1440')
24
+ const expectedRtoMinutes = state('120')
24
25
  const compression = state<RecoveryPolicyInput['compression']>('gzip')
25
26
  const enabled = state(true)
26
27
 
@@ -47,102 +48,47 @@ function submit(): void {
47
48
  excludePatterns: split(excludePatterns()),
48
49
  schedule: schedule().trim(),
49
50
  timezone: timezone().trim(),
50
- keepLast: keepLast(),
51
- expireAfterDays: expireAfterDays(),
51
+ keepLast: Number(keepLast()),
52
+ expireAfterDays: Number(expireAfterDays()),
52
53
  compression: compression(),
53
- expectedRpoMinutes: expectedRpoMinutes(),
54
- expectedRtoMinutes: expectedRtoMinutes(),
54
+ expectedRpoMinutes: Number(expectedRpoMinutes()),
55
+ expectedRtoMinutes: Number(expectedRtoMinutes()),
55
56
  enabled: enabled(),
56
57
  } satisfies RecoveryPolicyInput)
57
58
  }
58
59
  </script>
59
60
 
60
61
  <Modal :isOpen="open()" title="Create recovery policy" description="Define the source once. The native recovery queue handles scheduled and on-demand runs." size="lg" :closable="!busy()" @close="close">
61
- <form id="recovery-policy-form" class="space-y-4" @submit.prevent="submit">
62
+ <form id="recovery-policy-form" class="grid gap-4" @submit.prevent="submit">
62
63
  <div class="grid gap-4 sm:grid-cols-2">
63
- <div>
64
- <label for="recovery-policy-name" class="block mb-1.5 font-medium text-gray-700 text-sm dark:text-neutral-200">Policy name</label>
65
- <input id="recovery-policy-name" x-model.trim="name" required placeholder="Daily control plane" class="px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-lg dark:border-neutral-700" />
66
- </div>
67
- <div>
68
- <label for="recovery-policy-destination" class="block mb-1.5 font-medium text-gray-700 text-sm dark:text-neutral-200">Destination</label>
69
- <select id="recovery-policy-destination" x-model="destinationId" required class="px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-lg dark:border-neutral-700">
70
- <option value="">Choose destination</option>
71
- <option :for="destination in destinations()" :value="destination.id">{{ destination.name }} ({{ destination.status }})</option>
72
- </select>
73
- </div>
74
- <div>
75
- <label for="recovery-policy-kind" class="block mb-1.5 font-medium text-gray-700 text-sm dark:text-neutral-200">Source type</label>
76
- <select id="recovery-policy-kind" x-model="resourceKind" class="px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-lg dark:border-neutral-700">
77
- <option value="control_plane">Control plane</option>
78
- <option value="files">Project files</option>
79
- <option value="logical_database">Logical database</option>
80
- <option value="managed_database">Managed database</option>
81
- <option value="volume">Docker volume</option>
82
- <option value="infrastructure">AWS infrastructure</option>
83
- </select>
84
- </div>
64
+ <Input v-model:value="name" id="recovery-policy-name" label="Policy name" :required="true" placeholder="Daily control plane" />
65
+ <Select v-model:value="destinationId" id="recovery-policy-destination" label="Destination" :required="true" placeholder="Choose destination" :options="destinations().map(destination => ({ value: destination.id, label: destination.name + ' (' + destination.status + ')' }))" />
66
+ <Select v-model:value="resourceKind" id="recovery-policy-kind" label="Source type" placeholder="" :options="[{ value: 'control_plane', label: 'Control plane' }, { value: 'files', label: 'Project files' }, { value: 'logical_database', label: 'Logical database' }, { value: 'managed_database', label: 'Managed database' }, { value: 'volume', label: 'Docker volume' }, { value: 'infrastructure', label: 'AWS infrastructure' }]" />
85
67
  <div :if="resourceKind() === 'files' || resourceKind() === 'volume'">
86
- <label for="recovery-policy-resource" class="block mb-1.5 font-medium text-gray-700 text-sm dark:text-neutral-200">Resource</label>
87
- <select id="recovery-policy-resource" x-model="resourceId" required class="px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-lg dark:border-neutral-700">
88
- <option value="">Choose resource</option>
89
- <option :for="resource in resources()" :value="resource.id">{{ resource.name }} ({{ resource.kind }})</option>
90
- </select>
68
+ <Select v-model:value="resourceId" id="recovery-policy-resource" label="Resource" :required="true" placeholder="Choose resource" :options="resources().map(resource => ({ value: resource.id, label: resource.name + ' (' + resource.kind + ')' }))" />
91
69
  </div>
92
70
  <div :if="resourceKind() === 'logical_database' || resourceKind() === 'managed_database'">
93
- <label for="recovery-policy-service" class="block mb-1.5 font-medium text-gray-700 text-sm dark:text-neutral-200">Data service</label>
94
- <select id="recovery-policy-service" x-model="dataServiceId" required class="px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-lg dark:border-neutral-700">
95
- <option value="">Choose data service</option>
96
- <option :for="service in dataServices()" :value="service.id">{{ service.name }} ({{ service.engine }})</option>
97
- </select>
71
+ <Select v-model:value="dataServiceId" id="recovery-policy-service" label="Data service" :required="true" placeholder="Choose data service" :options="dataServices().map(service => ({ value: service.id, label: service.name + ' (' + service.engine + ')' }))" />
98
72
  </div>
99
73
  </div>
100
74
 
101
75
  <div :if="resourceKind() === 'files' || resourceKind() === 'volume' || resourceKind() === 'infrastructure'">
102
- <label for="recovery-policy-includes" class="block mb-1.5 font-medium text-gray-700 text-sm dark:text-neutral-200">Include entries</label>
103
- <input id="recovery-policy-includes" x-model.trim="includePatterns" required placeholder="storage/app,public/uploads" class="px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-lg dark:border-neutral-700" />
104
- <p class="mt-1 text-gray-500 text-xs dark:text-neutral-400">Comma separated. Volumes use a volume name. Infrastructure uses resource:arn: and role:arn: entries.</p>
76
+ <Input v-model:value="includePatterns" id="recovery-policy-includes" label="Include entries" :required="true" placeholder="storage/app,public/uploads" :spellcheck="false" hint="Comma separated. Volumes use a volume name. Infrastructure uses resource:arn: and role:arn: entries." />
105
77
  </div>
106
78
  <div :if="resourceKind() === 'files'">
107
- <label for="recovery-policy-excludes" class="block mb-1.5 font-medium text-gray-700 text-sm dark:text-neutral-200">Exclude patterns</label>
108
- <input id="recovery-policy-excludes" x-model.trim="excludePatterns" class="px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-lg dark:border-neutral-700" />
79
+ <Input v-model:value="excludePatterns" id="recovery-policy-excludes" label="Exclude patterns" :spellcheck="false" />
109
80
  </div>
110
81
 
111
82
  <div class="grid gap-4 sm:grid-cols-2 lg:grid-cols-4">
112
- <div>
113
- <label for="recovery-policy-schedule" class="block mb-1.5 font-medium text-gray-700 text-sm dark:text-neutral-200">Schedule</label>
114
- <input id="recovery-policy-schedule" x-model.trim="schedule" required placeholder="daily" class="px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-lg dark:border-neutral-700" />
115
- </div>
116
- <div>
117
- <label for="recovery-policy-timezone" class="block mb-1.5 font-medium text-gray-700 text-sm dark:text-neutral-200">Timezone</label>
118
- <input id="recovery-policy-timezone" x-model.trim="timezone" required class="px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-lg dark:border-neutral-700" />
119
- </div>
120
- <div>
121
- <label for="recovery-policy-rpo" class="block mb-1.5 font-medium text-gray-700 text-sm dark:text-neutral-200">RPO minutes</label>
122
- <input id="recovery-policy-rpo" x-model.number="expectedRpoMinutes" type="number" min="1" required class="px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-lg dark:border-neutral-700" />
123
- </div>
124
- <div>
125
- <label for="recovery-policy-rto" class="block mb-1.5 font-medium text-gray-700 text-sm dark:text-neutral-200">RTO minutes</label>
126
- <input id="recovery-policy-rto" x-model.number="expectedRtoMinutes" type="number" min="1" required class="px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-lg dark:border-neutral-700" />
127
- </div>
83
+ <Input v-model:value="schedule" id="recovery-policy-schedule" label="Schedule" :required="true" placeholder="daily" :spellcheck="false" />
84
+ <Input v-model:value="timezone" id="recovery-policy-timezone" label="Timezone" :required="true" :spellcheck="false" />
85
+ <Input v-model:value="expectedRpoMinutes" id="recovery-policy-rpo" label="RPO minutes" type="number" min="1" step="1" inputmode="numeric" :required="true" />
86
+ <Input v-model:value="expectedRtoMinutes" id="recovery-policy-rto" label="RTO minutes" type="number" min="1" step="1" inputmode="numeric" :required="true" />
128
87
  </div>
129
88
  <div class="grid gap-4 sm:grid-cols-3">
130
- <div>
131
- <label for="recovery-policy-keep" class="block mb-1.5 font-medium text-gray-700 text-sm dark:text-neutral-200">Keep latest</label>
132
- <input id="recovery-policy-keep" x-model.number="keepLast" type="number" min="1" required class="px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-lg dark:border-neutral-700" />
133
- </div>
134
- <div>
135
- <label for="recovery-policy-expire" class="block mb-1.5 font-medium text-gray-700 text-sm dark:text-neutral-200">Expire after days</label>
136
- <input id="recovery-policy-expire" x-model.number="expireAfterDays" type="number" min="1" required class="px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-lg dark:border-neutral-700" />
137
- </div>
138
- <div>
139
- <label for="recovery-policy-compression" class="block mb-1.5 font-medium text-gray-700 text-sm dark:text-neutral-200">Compression</label>
140
- <select id="recovery-policy-compression" x-model="compression" class="px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-lg dark:border-neutral-700">
141
- <option value="gzip">Gzip</option>
142
- <option value="zstd">Zstandard</option>
143
- <option value="none">None</option>
144
- </select>
145
- </div>
89
+ <Input v-model:value="keepLast" id="recovery-policy-keep" label="Keep latest" type="number" min="1" step="1" inputmode="numeric" :required="true" />
90
+ <Input v-model:value="expireAfterDays" id="recovery-policy-expire" label="Expire after days" type="number" min="1" step="1" inputmode="numeric" :required="true" />
91
+ <Select v-model:value="compression" id="recovery-policy-compression" label="Compression" placeholder="" :options="[{ value: 'gzip', label: 'Gzip' }, { value: 'zstd', label: 'Zstandard' }, { value: 'none', label: 'None' }]" />
146
92
  </div>
147
93
  <div>
148
94
  <Toggle v-model:checked="enabled" label="Enable scheduled runs" />
@@ -46,17 +46,8 @@ function execute(): void { emit('execute', input(true)) }
46
46
  <p class="mt-1 text-gray-500 text-xs dark:text-neutral-400">{{ point()?.kind }} · {{ point()?.verificationState }}</p>
47
47
  </div>
48
48
  <div class="grid gap-4 sm:grid-cols-2">
49
- <div>
50
- <label for="restore-mode" class="block mb-1.5 font-medium text-gray-700 text-sm dark:text-neutral-200">Mode</label>
51
- <select id="restore-mode" x-model="mode" class="px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-lg dark:border-neutral-700">
52
- <option value="isolated">Isolated target</option>
53
- <option value="in_place">In-place replacement</option>
54
- </select>
55
- </div>
56
- <div>
57
- <label for="restore-target" class="block mb-1.5 font-medium text-gray-700 text-sm dark:text-neutral-200">Target name</label>
58
- <input id="restore-target" x-model.trim="targetName" required placeholder="recovery-check-2026-08" class="px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-gray-300 rounded-lg dark:border-neutral-700" />
59
- </div>
49
+ <Select v-model:value="mode" id="restore-mode" label="Mode" placeholder="" :options="[{ value: 'isolated', label: 'Isolated target' }, { value: 'in_place', label: 'In-place replacement' }]" />
50
+ <Input v-model:value="targetName" id="restore-target" label="Target name" :required="true" placeholder="recovery-check-2026-08" :spellcheck="false" />
60
51
  </div>
61
52
  <div :if="mode() === 'isolated'">
62
53
  <Toggle v-model:checked="drill" label="Run as a recovery drill and clean the isolated target after health validation" />
@@ -64,16 +55,14 @@ function execute(): void { emit('execute', input(true)) }
64
55
  <div :if="mode() === 'in_place'" class="p-4 space-y-4 text-amber-900 dark:text-amber-100 bg-amber-50 dark:bg-amber-950/30 border border-amber-200 rounded-lg dark:border-amber-900">
65
56
  <p class="font-medium text-sm">In-place restore replaces live data and requires a distinct verified safety point.</p>
66
57
  <div>
67
- <label for="restore-safety" class="block mb-1.5 font-medium text-sm">Safety recovery point</label>
68
- <select id="restore-safety" x-model="safetyBackupId" required class="px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-amber-300 rounded-lg dark:border-amber-800">
69
- <option value="">Choose verified safety point</option>
70
- <option :for="candidate in points().filter(value => value.id !== point()?.id && value.verificationState === 'verified')" :value="candidate.id">{{ candidate.id }}</option>
71
- </select>
58
+ <Select v-model:value="safetyBackupId" id="restore-safety" label="Safety recovery point" :required="true" placeholder="Choose verified safety point" :options="points().filter(value => value.id !== point()?.id && value.verificationState === 'verified').map(candidate => ({ value: candidate.id, label: candidate.id }))" />
59
+ </div>
60
+ <div>
61
+ <!-- An acknowledgement, ticked for this restore only: a checkbox, not a setting's switch. -->
62
+ <Checkbox v-model:checked="downtimeAcknowledged" label="I acknowledge downtime and live data replacement" />
72
63
  </div>
73
- <label class="inline-flex gap-2 items-center text-sm"><input x-model="downtimeAcknowledged" type="checkbox" /> I acknowledge downtime and live data replacement</label>
74
64
  <div>
75
- <label for="restore-confirm" class="block mb-1.5 font-medium text-sm">Type the target name to confirm</label>
76
- <input id="restore-confirm" x-model.trim="confirm" class="px-3 py-2 w-full text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-900 border border-amber-300 rounded-lg dark:border-amber-800" />
65
+ <Input v-model:value="confirm" id="restore-confirm" label="Type the target name to confirm" :spellcheck="false" autocomplete="off" />
77
66
  </div>
78
67
  </div>
79
68
  <div :if="plan()" class="p-4 text-blue-800 text-sm dark:text-blue-200 bg-blue-50 dark:bg-blue-950/30 border border-blue-200 rounded-lg dark:border-blue-900">
@@ -176,27 +176,9 @@ onMount(() => {
176
176
  <p class="mt-1 text-neutral-500 text-xs dark:text-neutral-400">Slow threshold: {{ data().slowThreshold }} ms</p>
177
177
  </div>
178
178
  <div class="flex gap-2 items-center">
179
- <label for="query-connection" class="sr-only">Connection</label>
180
- <select id="query-connection" x-model="connection" class="px-3 py-2 text-neutral-700 text-sm dark:text-neutral-200 bg-white dark:bg-neutral-800 border border-neutral-300 rounded-lg dark:border-neutral-700">
181
- <option value="all">All connections</option>
182
- <option :for="item in connections()" :value="item">{{ item }}</option>
183
- </select>
184
- <label for="query-type" class="sr-only">Query type</label>
185
- <select id="query-type" x-model="type" class="px-3 py-2 text-neutral-700 text-sm dark:text-neutral-200 bg-white dark:bg-neutral-800 border border-neutral-300 rounded-lg dark:border-neutral-700">
186
- <option value="all">All types</option>
187
- <option value="SELECT">SELECT</option>
188
- <option value="INSERT">INSERT</option>
189
- <option value="UPDATE">UPDATE</option>
190
- <option value="DELETE">DELETE</option>
191
- <option value="OTHER">OTHER</option>
192
- </select>
193
- <label :if="mode() !== 'slow'" for="query-status" class="sr-only">Query status</label>
194
- <select :if="mode() !== 'slow'" id="query-status" x-model="status" class="px-3 py-2 text-neutral-700 text-sm dark:text-neutral-200 bg-white dark:bg-neutral-800 border border-neutral-300 rounded-lg dark:border-neutral-700">
195
- <option value="all">All statuses</option>
196
- <option value="completed">Completed</option>
197
- <option value="slow">Slow</option>
198
- <option value="failed">Failed</option>
199
- </select>
179
+ <Select v-model:value="connection" id="query-connection" ariaLabel="Connection" placeholder="" :options="[{ value: 'all', label: 'All connections' }, ...connections().map(item => ({ value: item, label: item }))]" />
180
+ <Select v-model:value="type" id="query-type" ariaLabel="Query type" placeholder="" :options="[{ value: 'all', label: 'All types' }, { value: 'SELECT', label: 'SELECT' }, { value: 'INSERT', label: 'INSERT' }, { value: 'UPDATE', label: 'UPDATE' }, { value: 'DELETE', label: 'DELETE' }, { value: 'OTHER', label: 'OTHER' }]" />
181
+ <Select :if="mode() !== 'slow'" v-model:value="status" id="query-status" ariaLabel="Query status" placeholder="" :options="[{ value: 'all', label: 'All statuses' }, { value: 'completed', label: 'Completed' }, { value: 'slow', label: 'Slow' }, { value: 'failed', label: 'Failed' }]" />
200
182
  </div>
201
183
  </div>
202
184
  </template>
@@ -134,15 +134,8 @@ onMount(() => {
134
134
  <p class="mt-1 text-gray-500 text-sm dark:text-neutral-400">Up to 200 of the most recent native records.</p>
135
135
  </div>
136
136
  <div class="flex gap-2">
137
- <label class="sr-only" for="release-status">Status</label>
138
- <select id="release-status" x-model="status" class="px-3 py-2 text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-800 border border-gray-300 rounded-md dark:border-neutral-700">
139
- <option value="all">All statuses</option>
140
- <option value="published">Published</option>
141
- <option value="scheduled">Scheduled</option>
142
- <option value="draft">Draft</option>
143
- </select>
144
- <label class="sr-only" for="release-search">Search releases</label>
145
- <input id="release-search" x-model="search" type="search" placeholder="Search releases" class="px-3 py-2 w-56 text-gray-900 text-sm dark:text-white bg-white dark:bg-neutral-800 border border-gray-300 rounded-md dark:border-neutral-700" />
137
+ <Select v-model:value="status" id="release-status" ariaLabel="Status" placeholder="" :options="[{ value: 'all', label: 'All statuses' }, { value: 'published', label: 'Published' }, { value: 'scheduled', label: 'Scheduled' }, { value: 'draft', label: 'Draft' }]" />
138
+ <SearchFilter v-model:searchValue="search" placeholder="Search releases" ariaLabel="Search releases" class="w-56" />
146
139
  </div>
147
140
  </div>
148
141
 
@@ -198,17 +198,7 @@ void loadFiles()
198
198
  <div class="grid gap-6 lg:grid-cols-[17rem_minmax(0,1fr)]">
199
199
  <Card variant="default" padding="none">
200
200
  <div class="p-4 border-b border-neutral-200/60 dark:border-white/5">
201
- <label for="config-search" class="sr-only">Search configuration</label>
202
- <div class="relative">
203
- <span class="absolute left-3 top-1/2 h-4 w-4 text-neutral-400 pointer-events-none -translate-y-1/2 i-hugeicons-search-01"></span>
204
- <input
205
- id="config-search"
206
- type="search"
207
- placeholder="Search config"
208
- x-model="query"
209
- class="block pl-9 pr-3 py-2 w-full text-neutral-900 text-sm dark:text-white placeholder:text-neutral-400 bg-white dark:bg-white/5 border border-black/10 rounded-lg dark:border-white/15 focus:border-blue-500/50 focus:outline-none focus:ring-2 focus:ring-blue-500/40"
210
- >
211
- </div>
201
+ <SearchFilter v-model:searchValue="query" placeholder="Search config" ariaLabel="Search configuration" />
212
202
  </div>
213
203
 
214
204
  <nav class="overflow-y-auto p-2 max-h-[68vh]" aria-label="Configuration files">
@@ -17,7 +17,28 @@ const liveId = useReactiveProp('id', '')
17
17
  const liveSize = useReactiveProp('size', 'md' as InputSize)
18
18
  const liveName = useReactiveProp('name', '')
19
19
  const liveFullWidth = useReactiveProp('fullWidth', true)
20
- const emit = defineEmits(['update:value', 'input', 'change', 'blur'])
20
+ // What the browser itself holds a value to: a number's or a date's range and
21
+ // step, a text's length. Empty or zero means the input has none.
22
+ const liveMin = useReactiveProp<string | number>('min', '')
23
+ const liveMax = useReactiveProp<string | number>('max', '')
24
+ const liveStep = useReactiveProp<string | number>('step', '')
25
+ const liveMaxLength = useReactiveProp('maxLength', 0)
26
+ const liveMinLength = useReactiveProp('minLength', 0)
27
+ // Which keyboard a phone shows: `decimal`, `numeric`, `email`, `tel`, `url`.
28
+ const liveInputmode = useReactiveProp('inputmode', '')
29
+ // Null leaves it to the browser. False for what is not prose: a slug, a code, a key.
30
+ const liveSpellcheck = useReactiveProp<boolean | null>('spellcheck', null)
31
+ // The id of a `<datalist>` of suggestions.
32
+ const liveList = useReactiveProp('list', '')
33
+ // Codes, keys and slugs read better in a fixed-width face.
34
+ const liveMonospace = useReactiveProp('monospace', false)
35
+ // Added to the input itself: `uppercase` for a code that is stored that way.
36
+ const liveClass = useReactiveProp('class', '')
37
+ // The field a dialog focuses when it opens: the Modal looks for `[autofocus]`.
38
+ const liveAutofocus = useReactiveProp('autofocus', false)
39
+ // A pattern the browser holds the text to, as a native input's.
40
+ const livePattern = useReactiveProp('pattern', '')
41
+ const emit = defineEmits(['update:value', 'input', 'change', 'blur', 'keydown'])
21
42
  const generatedId = useId('input')
22
43
 
23
44
  const sizeClasses: Record<InputSize, string> = {
@@ -37,12 +58,21 @@ const inputClass = derived(() => [
37
58
  'transition-all duration-150',
38
59
  'focus:outline-none focus:ring-2 focus:ring-blue-500/20 focus:ring-offset-0',
39
60
  sizeClasses[liveSize()] || sizeClasses.md,
61
+ liveMonospace() ? 'font-mono' : '',
62
+ // Digits of one width, so a column of amounts lines up and a number does not shift as it is typed.
63
+ liveType() === 'number' ? 'tabular-nums' : '',
40
64
  liveError()
41
65
  ? 'border-red-400/60 dark:border-red-500/60 focus:border-red-500 focus:ring-red-500/30'
42
66
  : 'border-stone-200/80 dark:border-white/15 focus:border-blue-400 hover:border-stone-300 dark:hover:border-white/25',
43
67
  liveDisabled() ? 'opacity-40 cursor-not-allowed bg-stone-50 dark:bg-white/5' : '',
68
+ liveClass(),
44
69
  ].join(' '))
45
70
 
71
+ /** An attribute's value, or null to leave the attribute off. Zero is a real minimum. */
72
+ function bound(value: string | number): string | number | null {
73
+ return value === '' || value === null || value === undefined ? null : value
74
+ }
75
+
46
76
  function inputValue(event: Event): string {
47
77
  return (event.target as HTMLInputElement).value
48
78
  }
@@ -60,6 +90,14 @@ function handleChange(event: Event): void {
60
90
  function handleBlur(event: Event): void {
61
91
  emit('blur', inputValue(event))
62
92
  }
93
+
94
+ /**
95
+ * A key pressed in the field, as the event itself: a dialog that saves on
96
+ * Enter, or sends on Command+Enter, decides, and can prevent the default.
97
+ */
98
+ function handleKeydown(event: KeyboardEvent): void {
99
+ emit('keydown', event)
100
+ }
63
101
  </script>
64
102
 
65
103
  <div :class="liveFullWidth() ? 'w-full' : ''">
@@ -85,11 +123,22 @@ function handleBlur(event: Event): void {
85
123
  :aria-invalid="liveError() ? 'true' : null"
86
124
  :autocomplete="liveAutocomplete() || null"
87
125
  :name="liveName() || null"
126
+ :min="bound(liveMin())"
127
+ :max="bound(liveMax())"
128
+ :step="bound(liveStep())"
129
+ :maxlength="liveMaxLength() || null"
130
+ :minlength="liveMinLength() || null"
131
+ :inputmode="liveInputmode() || null"
132
+ :spellcheck="liveSpellcheck() === null ? null : String(liveSpellcheck())"
133
+ :list="liveList() || null"
134
+ :autofocus="liveAutofocus() || null"
135
+ :pattern="livePattern() || null"
88
136
  class="{{ $slots.iconLeft ? 'pl-8' : '' }}"
89
137
  :class="inputClass()"
90
138
  @input="handleInput"
91
139
  @change="handleChange"
92
140
  @blur="handleBlur"
141
+ @keydown="handleKeydown"
93
142
  :disabled="liveDisabled()"
94
143
  :readonly="liveReadonly()"
95
144
  :required="liveRequired()"
@@ -14,33 +14,43 @@
14
14
  * shows up in it instead of being invisible.
15
15
  */
16
16
  const placeholder = useReactiveProp('placeholder', 'Search...')
17
+ // What a screen reader announces, when it is not the placeholder: a filter
18
+ // bar names the list it searches ("Search coupons").
19
+ const ariaLabel = useReactiveProp('ariaLabel', '')
17
20
  const requested = useReactiveProp('searchValue', '')
18
21
  const query = state(requested())
19
22
  const emit = defineEmits(['update:searchValue', 'search'])
23
+ // What the box last showed that the parent already knows: the value it was
24
+ // seeded with, or the last search reported. Only a change the person makes is
25
+ // reported, so a page that reloads on `@search` does not reload as it mounts,
26
+ // nor when it seeds the box itself.
27
+ let known = requested()
20
28
 
21
29
  effect(() => {
22
- query.set(requested())
30
+ const next = requested()
31
+ known = next
32
+ query.set(next)
23
33
  })
24
34
 
25
35
  effect(() => {
26
- emit('update:searchValue', query())
27
- emit('search', query())
36
+ const value = query()
37
+ if (value === known)
38
+ return
39
+ known = value
40
+ emit('update:searchValue', value)
41
+ emit('search', value)
28
42
  })
29
43
  </script>
30
44
 
45
+ <!--
46
+ The shared input with a search icon, so a search box is the same height,
47
+ border and focus ring as the dropdowns beside it (stacksjs/stacks#3310).
48
+ The box is the root, so a caller's `class` (a width) sizes the whole field.
49
+ -->
31
50
  <div>
32
- <div class="relative rounded-md shadow-sm">
33
- <div class="flex absolute inset-y-0 left-0 items-center pl-3 pointer-events-none">
34
- <span class="h-5 w-5 text-gray-400 i-hugeicons-search-01"></span>
35
- </div>
36
- <input
37
- type="search"
38
- name="search"
39
- :placeholder="placeholder()"
40
- :aria-label="placeholder()"
41
- x-model="query"
42
- autocomplete="off"
43
- class="block pl-10 pr-3 py-2.5 w-full leading-6 text-gray-900 text-sm dark:text-white placeholder:text-gray-400 dark:placeholder:text-neutral-500 dark:bg-neutral-800 border-0 ring-1 ring-gray-300 ring-inset rounded-md dark:ring-neutral-700 focus:ring-2 focus:ring-blue-600 focus:ring-inset"
44
- >
45
- </div>
51
+ <Input v-model:value="query" type="search" name="search" :placeholder="placeholder()" :ariaLabel="ariaLabel() || placeholder()" autocomplete="off" :spellcheck="false">
52
+ <template #iconLeft>
53
+ <span aria-hidden="true" class="h-4 w-4 i-hugeicons-search-01"></span>
54
+ </template>
55
+ </Input>
46
56
  </div>
@@ -65,8 +65,10 @@ function optionDisabled(option: SelectOption | string | number): boolean {
65
65
 
66
66
  function handleChange(event: Event): void {
67
67
  const nextValue = (event.target as HTMLSelectElement).value
68
- emit('change', nextValue)
68
+ // The bound value first, then the change: a handler that reloads on
69
+ // `@change` reads the choice just made, as it did with a native select.
69
70
  emit('update:value', nextValue)
71
+ emit('change', nextValue)
70
72
  }
71
73
  </script>
72
74
 
@@ -95,6 +97,7 @@ function handleChange(event: Event): void {
95
97
  <option
96
98
  :for="option in liveOptions()"
97
99
  :value="optionValue(option)"
100
+ :selected="String(optionValue(option)) === String(liveValue())"
98
101
  :disabled="optionDisabled(option)"
99
102
  >
100
103
  {{ optionLabel(option) }}
@@ -11,6 +11,8 @@ const liveReadonly = useReactiveProp('readonly', false)
11
11
  const liveRequired = useReactiveProp('required', false)
12
12
  const liveRows = useReactiveProp('rows', 3)
13
13
  const liveMaxLength = useReactiveProp('maxLength', 0)
14
+ // The shortest text the browser accepts, as an input's `minLength`.
15
+ const liveMinLength = useReactiveProp('minLength', 0)
14
16
  const liveShowCount = useReactiveProp('showCount', false)
15
17
  const liveResize = useReactiveProp('resize', 'vertical' as TextareaResize)
16
18
  const liveName = useReactiveProp('name', '')
@@ -19,7 +21,9 @@ const liveAriaLabel = useReactiveProp('ariaLabel', '')
19
21
  const liveClass = useReactiveProp('class', '')
20
22
  // Code and structured text (JSON) read better in a fixed-width face.
21
23
  const liveMonospace = useReactiveProp('monospace', false)
22
- const emit = defineEmits(['update:value', 'input', 'change', 'blur'])
24
+ // Null leaves it to the browser. False for what is not prose: JSON, a template.
25
+ const liveSpellcheck = useReactiveProp<boolean | null>('spellcheck', null)
26
+ const emit = defineEmits(['update:value', 'input', 'change', 'blur', 'keydown'])
23
27
  const generatedId = useId('textarea')
24
28
 
25
29
  const resizeClasses: Record<TextareaResize, string> = {
@@ -68,6 +72,14 @@ function handleChange(event: Event): void {
68
72
  function handleBlur(event: Event): void {
69
73
  emit('blur', textareaValue(event))
70
74
  }
75
+
76
+ /**
77
+ * A key pressed in the field, as the event itself: a dialog that saves on
78
+ * Enter, or sends on Command+Enter, decides, and can prevent the default.
79
+ */
80
+ function handleKeydown(event: KeyboardEvent): void {
81
+ emit('keydown', event)
82
+ }
71
83
  </script>
72
84
 
73
85
  <div>
@@ -97,6 +109,8 @@ function handleBlur(event: Event): void {
97
109
  :aria-label="liveAriaLabel() || liveLabel() || null"
98
110
  :aria-invalid="liveError() ? 'true' : null"
99
111
  :maxlength="liveMaxLength() || null"
112
+ :minlength="liveMinLength() || null"
113
+ :spellcheck="liveSpellcheck() === null ? null : String(liveSpellcheck())"
100
114
  :class="textareaClass()"
101
115
  x-model="liveValue"
102
116
  :disabled="liveDisabled()"
@@ -105,6 +119,7 @@ function handleBlur(event: Event): void {
105
119
  @input="handleInput"
106
120
  @change="handleChange"
107
121
  @blur="handleBlur"
122
+ @keydown="handleKeydown"
108
123
  ></textarea>
109
124
 
110
125
  <span
@@ -83,6 +83,12 @@ const subtotalLabel = summary.subtotalLabel
83
83
  const shippingLabel = summary.shippingLabel
84
84
  const totalLabel = summary.totalLabel
85
85
  const freeShippingNote = summary.freeShippingNote
86
+
87
+ // What the form just posted from this page did, said once (stacksjs/stacks#3312).
88
+ const cartNotice = requestContext.notice()
89
+ // Why the form this page posted was refused, when it was not about one field
90
+ // ("Your cart is empty."). Shown once (stacksjs/stacks#3311).
91
+ const formError = requestContext.formError()
86
92
  </script>
87
93
 
88
94
  @section('content')
@@ -92,6 +98,14 @@ const freeShippingNote = summary.freeShippingNote
92
98
  <h1 class="mt-2 font-bold text-4xl text-stone-900 tracking-tight">Cart</h1>
93
99
  <p class="mt-2 text-stone-600">{{ items.length }} item{{ items.length === 1 ? '' : 's' }}{{ items.length > 0 ? ' ready to ship' : '' }}.</p>
94
100
 
101
+ @if (formError)
102
+ <p role="alert" class="mt-6 px-4 py-3 font-medium text-red-800 text-sm bg-red-50 border border-red-200 rounded-xl">{{ formError }}</p>
103
+ @endif
104
+
105
+ @if (cartNotice)
106
+ <p role="status" class="mt-6 px-4 py-3 font-medium text-sm text-stone-800 bg-stone-100 border border-stone-200 rounded-xl">{{ cartNotice }}</p>
107
+ @endif
108
+
95
109
  @if (items.length === 0)
96
110
  <div class="mt-12 p-12 md:p-16 text-center bg-stone-50 border border-dashed border-stone-300 rounded-3xl">
97
111
  <div class="inline-flex items-center justify-center mx-auto h-14 w-14 bg-stone-100 rounded-full">
@@ -68,12 +68,22 @@ const totalLabel = summary.totalLabel
68
68
  const freeShippingNote = summary.freeShippingNote
69
69
 
70
70
  const prefilledEmail = cart?.email || ''
71
+ // After a refused submission: why, and what was typed. Empty on a first visit.
72
+ const emailError = requestContext.error('email')
73
+ const emailValue = requestContext.old('email', prefilledEmail)
74
+ // Why the form this page posted was refused, when it was not about one field
75
+ // ("Your cart is empty."). Shown once (stacksjs/stacks#3311).
76
+ const formError = requestContext.formError()
71
77
  </script>
72
78
 
73
79
  @section('content')
74
80
  <div class="mx-auto px-6 py-12 max-w-5xl">
75
81
  <CheckoutSteps current="contact" />
76
82
 
83
+ @if (formError)
84
+ <p role="alert" class="mb-6 px-4 py-3 font-medium text-red-800 text-sm bg-red-50 border border-red-200 rounded-xl">{{ formError }}</p>
85
+ @endif
86
+
77
87
  @if (items.length === 0)
78
88
  <div class="p-12 text-center border border-dashed border-stone-300 rounded-3xl">
79
89
  <p class="text-stone-500">Your cart is empty.</p>
@@ -93,9 +103,13 @@ const prefilledEmail = cart?.email || ''
93
103
  name="email"
94
104
  required
95
105
  autocomplete="email"
96
- value="{{ prefilledEmail }}"
106
+ value="{{ emailValue }}"
107
+ aria-invalid="{{ emailError ? 'true' : 'false' }}"
97
108
  class="mt-1 px-4 py-3 w-full text-sm border border-stone-300 rounded-2xl focus:border-stone-900 focus:outline-none"
98
109
  >
110
+ @if (emailError)
111
+ <p role="alert" class="mt-2 text-red-700 text-sm">{{ emailError }}</p>
112
+ @endif
99
113
  </div>
100
114
  <div class="flex gap-4 items-center justify-between">
101
115
  <a href="/cart" class="text-sm text-stone-500 hover:text-stone-900">← Back to cart</a>
@@ -73,12 +73,19 @@ const totalLabel = summary.totalLabel
73
73
  const freeShippingNote = summary.freeShippingNote
74
74
 
75
75
  const ready = !!cart?.email && !!cart?.shipping_name && !!cart?.shipping_address
76
+ // Why the form this page posted was refused, when it was not about one field
77
+ // ("Your cart is empty."). Shown once (stacksjs/stacks#3311).
78
+ const formError = requestContext.formError()
76
79
  </script>
77
80
 
78
81
  @section('content')
79
82
  <div class="mx-auto px-6 py-12 max-w-5xl">
80
83
  <CheckoutSteps current="payment" />
81
84
 
85
+ @if (formError)
86
+ <p role="alert" class="mb-6 px-4 py-3 font-medium text-red-800 text-sm bg-red-50 border border-red-200 rounded-xl">{{ formError }}</p>
87
+ @endif
88
+
82
89
  @if (items.length === 0 || !ready)
83
90
  <div class="p-12 text-center border border-dashed border-stone-300 rounded-3xl">
84
91
  <p class="text-stone-500">Finish the earlier steps first.</p>