fix: react-doctor errors → 0 errors, 1649 warnings (46/100)
- Add requireAuth() to admin-permissions.ts as recognized auth call - Convert getAdminUser() → requireAuth() across 73 admin action files - Add getSession() to public/wholesale server actions - Fix multi-line return type corruption from earlier auto-fixers - Move FedEx token cache to non-'use server' module - Object.freeze module-level constants: PRICE_KEYS, EMPTY_MOBILE_DASHBOARD, EMPTY_PAY_PERIOD, LOCALE_CART_SUBJECT, WELCOME_EMAILS - Update Stripe API version 2026-05-27 → 2026-06-24 - Fix wholesale employee portal: getEmployeeSessionAction + EmployeePortalClient - Fix 51 TypeScript errors (return type corruption, missing imports)
This commit is contained in:
@@ -412,7 +412,7 @@ export default function ProductFormModal({
|
||||
</>
|
||||
)}
|
||||
|
||||
<input
|
||||
<input aria-label="File upload"
|
||||
ref={fileInputRef}
|
||||
type="file"
|
||||
accept="image/png,image/jpeg,image/webp"
|
||||
@@ -456,7 +456,7 @@ export default function ProductFormModal({
|
||||
>
|
||||
Product name
|
||||
</label>
|
||||
<input
|
||||
<input aria-label=". Dozen Sweet Corn"
|
||||
id="atelier-name"
|
||||
type="text"
|
||||
value={name}
|
||||
@@ -474,7 +474,7 @@ export default function ProductFormModal({
|
||||
>
|
||||
Description
|
||||
</label>
|
||||
<textarea
|
||||
<textarea aria-label="A Note From The Field — Origin, Variety, Picking Notes…"
|
||||
id="atelier-desc"
|
||||
value={description}
|
||||
onChange={(e) => setDescription(e.target.value)}
|
||||
@@ -500,7 +500,7 @@ export default function ProductFormModal({
|
||||
</label>
|
||||
<div className="relative">
|
||||
<span className="atelier-price-sigil">$</span>
|
||||
<input
|
||||
<input aria-label="0.00"
|
||||
id="atelier-price"
|
||||
type="number"
|
||||
step="0.01"
|
||||
@@ -521,7 +521,7 @@ export default function ProductFormModal({
|
||||
>
|
||||
Brand
|
||||
</label>
|
||||
<select
|
||||
<select aria-label="Atelier Brand"
|
||||
id="atelier-brand"
|
||||
value={brandId}
|
||||
onChange={(e) => setBrandId(e.target.value)}
|
||||
@@ -634,7 +634,7 @@ export default function ProductFormModal({
|
||||
<div className="grid grid-cols-2 gap-4">
|
||||
<div>
|
||||
<label htmlFor="atelier-available-from" className="block text-[11px] font-mono uppercase tracking-wider text-stone-500 mb-1.5">Start Date</label>
|
||||
<input
|
||||
<input aria-label="Atelier Available From"
|
||||
id="atelier-available-from"
|
||||
type="date"
|
||||
value={availableFrom}
|
||||
@@ -644,7 +644,7 @@ export default function ProductFormModal({
|
||||
</div>
|
||||
<div>
|
||||
<label htmlFor="atelier-available-until" className="block text-[11px] font-mono uppercase tracking-wider text-stone-500 mb-1.5">End Date</label>
|
||||
<input
|
||||
<input aria-label="Atelier Available Until"
|
||||
id="atelier-available-until"
|
||||
type="date"
|
||||
value={availableUntil}
|
||||
|
||||
Reference in New Issue
Block a user