style(wizard): rename CAS references to CASPOS
All checks were successful
Staging Build / build (push) Successful in 2m49s
All checks were successful
Staging Build / build (push) Successful in 2m49s
Replace all occurrences of 'CAS-Lizenz' and related strings with 'CASPOS' across license-lookup-panel, step-billing, and order-wizard. Update mock key to 995502-00 (GASTRO edition).
This commit is contained in:
@@ -179,7 +179,7 @@ export function OrderWizard({
|
|||||||
return 'one_time'
|
return 'one_time'
|
||||||
})
|
})
|
||||||
|
|
||||||
// Falls "one_time" (Kauf) gewählt: optionales Datum der letzten CAS-Lizenzierung
|
// Falls "one_time" (Kauf) gewählt: optionales Datum der letzten CASPOS-Lizenzierung
|
||||||
const [lastLicenseDate, setLastLicenseDate] = useState<string>(
|
const [lastLicenseDate, setLastLicenseDate] = useState<string>(
|
||||||
initialOrder?.order_data?.last_license_date || ''
|
initialOrder?.order_data?.last_license_date || ''
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -25,12 +25,12 @@ import { lookupLicenseFromLicServer } from '@/lib/actions/licserver-config'
|
|||||||
|
|
||||||
// ─── MOCK DATA (until real LicServer API is wired up) ───────────────────────
|
// ─── MOCK DATA (until real LicServer API is wired up) ───────────────────────
|
||||||
const MOCK_LICENSES: Record<string, LicenseInfo> = {
|
const MOCK_LICENSES: Record<string, LicenseInfo> = {
|
||||||
'CAS-2023-PRO-00123': {
|
'995502-00': {
|
||||||
licenseKey: 'CAS-2023-PRO-00123',
|
licenseKey: '995502-00',
|
||||||
status: 'active',
|
status: 'active',
|
||||||
product: 'CAS genesisWorld Professional',
|
product: 'CASPOS',
|
||||||
edition: 'Professional',
|
edition: 'GASTRO',
|
||||||
version: '14.1.2',
|
version: '4.8.6',
|
||||||
seats: 10,
|
seats: 10,
|
||||||
customer: 'Mustermann GmbH',
|
customer: 'Mustermann GmbH',
|
||||||
contact: 'Max Mustermann',
|
contact: 'Max Mustermann',
|
||||||
@@ -224,7 +224,7 @@ export function LicenseLookupPanel({ onLicenseResolved }: LicenseLookupPanelProp
|
|||||||
{/* ── Input + Search Button ──────────────────────────────── */}
|
{/* ── Input + Search Button ──────────────────────────────── */}
|
||||||
<div className="pt-4">
|
<div className="pt-4">
|
||||||
<p className="text-xs text-slate-400 mb-2 leading-relaxed">
|
<p className="text-xs text-slate-400 mb-2 leading-relaxed">
|
||||||
Geben Sie Ihre bisherige CAS-Lizenznummer ein,
|
Geben Sie Ihre bisherige CASPOS-Lizenznummer ein,
|
||||||
um Lizenzinformationen automatisch abzurufen.
|
um Lizenzinformationen automatisch abzurufen.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
@@ -242,7 +242,7 @@ export function LicenseLookupPanel({ onLicenseResolved }: LicenseLookupPanelProp
|
|||||||
setNotFound(false)
|
setNotFound(false)
|
||||||
}}
|
}}
|
||||||
onKeyDown={handleKeyDown}
|
onKeyDown={handleKeyDown}
|
||||||
placeholder="z. B. CAS-2023-PRO-00123"
|
placeholder="z. B. 995502-00"
|
||||||
className="pl-9 pr-8 bg-white/5 border-white/10 text-white placeholder:text-slate-500
|
className="pl-9 pr-8 bg-white/5 border-white/10 text-white placeholder:text-slate-500
|
||||||
focus:border-violet-500/60 focus:ring-violet-500/20 rounded-xl text-sm h-10"
|
focus:border-violet-500/60 focus:ring-violet-500/20 rounded-xl text-sm h-10"
|
||||||
/>
|
/>
|
||||||
@@ -278,9 +278,9 @@ export function LicenseLookupPanel({ onLicenseResolved }: LicenseLookupPanelProp
|
|||||||
Demo:
|
Demo:
|
||||||
<span
|
<span
|
||||||
className="font-mono text-violet-400/80 cursor-pointer hover:text-violet-400 transition-colors"
|
className="font-mono text-violet-400/80 cursor-pointer hover:text-violet-400 transition-colors"
|
||||||
onClick={() => setLicenseKey('CAS-2023-PRO-00123')}
|
onClick={() => setLicenseKey('995502-00')}
|
||||||
>
|
>
|
||||||
CAS-2023-PRO-00123
|
995502-00
|
||||||
</span>
|
</span>
|
||||||
{' · '}
|
{' · '}
|
||||||
<span
|
<span
|
||||||
|
|||||||
@@ -44,8 +44,7 @@ export function StepBilling({
|
|||||||
{/* Option 1: Kauf */}
|
{/* Option 1: Kauf */}
|
||||||
<div
|
<div
|
||||||
onClick={() => handleBillingIntervalChange('one_time')}
|
onClick={() => handleBillingIntervalChange('one_time')}
|
||||||
className={`relative p-6 rounded-2xl border-2 cursor-pointer transition-all duration-300 flex flex-col justify-between h-48 hover:shadow-[0_0_20px_rgba(255,255,255,0.05)] ${
|
className={`relative p-6 rounded-2xl border-2 cursor-pointer transition-all duration-300 flex flex-col justify-between h-48 hover:shadow-[0_0_20px_rgba(255,255,255,0.05)] ${selectedBillingInterval === 'one_time'
|
||||||
selectedBillingInterval === 'one_time'
|
|
||||||
? 'border-primary bg-primary/10 shadow-[0_0_25px_rgba(59,130,246,0.2)]'
|
? 'border-primary bg-primary/10 shadow-[0_0_25px_rgba(59,130,246,0.2)]'
|
||||||
: 'border-white/5 bg-white/5 hover:border-white/20'
|
: 'border-white/5 bg-white/5 hover:border-white/20'
|
||||||
}`}
|
}`}
|
||||||
@@ -71,8 +70,7 @@ export function StepBilling({
|
|||||||
{/* Option 2: Abo */}
|
{/* Option 2: Abo */}
|
||||||
<div
|
<div
|
||||||
onClick={() => handleBillingIntervalChange('monthly')}
|
onClick={() => handleBillingIntervalChange('monthly')}
|
||||||
className={`relative p-6 rounded-2xl border-2 cursor-pointer transition-all duration-300 flex flex-col justify-between h-48 hover:shadow-[0_0_20px_rgba(255,255,255,0.05)] ${
|
className={`relative p-6 rounded-2xl border-2 cursor-pointer transition-all duration-300 flex flex-col justify-between h-48 hover:shadow-[0_0_20px_rgba(255,255,255,0.05)] ${selectedBillingInterval === 'monthly'
|
||||||
selectedBillingInterval === 'monthly'
|
|
||||||
? 'border-primary bg-primary/10 shadow-[0_0_25px_rgba(59,130,246,0.2)]'
|
? 'border-primary bg-primary/10 shadow-[0_0_25px_rgba(59,130,246,0.2)]'
|
||||||
: 'border-white/5 bg-white/5 hover:border-white/20'
|
: 'border-white/5 bg-white/5 hover:border-white/20'
|
||||||
}`}
|
}`}
|
||||||
@@ -99,7 +97,7 @@ export function StepBilling({
|
|||||||
<div className="p-4 rounded-xl bg-white/5 border border-white/10 space-y-3 mt-6 max-w-md animate-in fade-in slide-in-from-top-2 duration-300">
|
<div className="p-4 rounded-xl bg-white/5 border border-white/10 space-y-3 mt-6 max-w-md animate-in fade-in slide-in-from-top-2 duration-300">
|
||||||
<Label htmlFor="last-license-date" className="text-white font-medium flex items-center gap-2">
|
<Label htmlFor="last-license-date" className="text-white font-medium flex items-center gap-2">
|
||||||
<Calendar className="w-4 h-4 text-primary" />
|
<Calendar className="w-4 h-4 text-primary" />
|
||||||
Datum der letzten CAS-Lizenz (falls vorhanden)
|
Datum der letzten CASPOS-Lizenz (falls vorhanden)
|
||||||
</Label>
|
</Label>
|
||||||
<Input
|
<Input
|
||||||
id="last-license-date"
|
id="last-license-date"
|
||||||
|
|||||||
Reference in New Issue
Block a user