import PageHeader from '@/components/workshop/PageHeader';
import StatusPill from '@/components/workshop/StatusPill';
import { adapterContracts } from '@/services/adapterContracts';
import { workshopStoragePaths } from '@/services/settingsRegistry';
const rows=[['Base44-specific dependencies','Database, authentication and development file storage are isolated behind adapters','amber'],['Database collections','10 Stage 1–2 collections with portable UUID fields','green'],['Backend functions','None','green'],['Stored files','Development uploads use Base44; portable destinations are recorded','amber'],['External integrations','None','green'],['Environment variables','None currently required','green'],['Secrets','None currently required','green'],['Export status','Not yet implemented — Stage 4','red'],['Last complete JSON export','None','red'],['Last CSV export','None','red']];
export default function MigrationReadiness() { return <><PageHeader eyebrow="Administration" title="Migration Readiness" description="A truthful inventory for later private self-hosting inside SHiRE MINI or ARMOR OS."/><div className="panel overflow-hidden">{rows.map(([a,b,t])=><div key={a} className="grid gap-2 border-b border-white/10 p-4 sm:grid-cols-[220px_1fr_auto]"><strong className="text-sm text-white">{a}</strong><span className="text-sm text-slate-400">{b}</span><StatusPill tone={t}>{t==='green'?'Ready':t==='amber'?'Portable with work':'Not ready'}</StatusPill></div>)}</div><section className="panel mt-5 p-6"><h2 className="section-title">Adapter contracts</h2>{Object.entries(adapterContracts).map(([k,v])=><p key={k} className="mb-3 text-sm text-slate-400"><strong className="capitalize text-slate-200">{k}:</strong> {v.join(' · ')}</p>)}</section><section className="panel mt-5 p-6"><h2 className="section-title">Logical SHiREVault destinations</h2><div className="grid gap-2 md:grid-cols-2">{workshopStoragePaths.map(x=><code key={x} className="rounded-lg bg-black/30 p-3 text-xs text-violet-300">{x}</code>)}</div><p className="mt-4 text-sm text-amber-200">Portability warning: these are logical destinations only. No file is claimed as saved to SHiREVault while Base44-hosted.</p></section></> }