Mobilfunk: Feld "Mobilfunknetz" unter Anbieter & Tarif

Neues Dropdown "Mobilfunknetz" in der Anbieter-&-Tarif-Karte, nur
sichtbar bei Vertragstyp Mobilfunk. Optionen: Bitte auswählen (leer),
Telekom, Vodafone, Telefónica.

Neues Feld MobileContractDetails.mobileNetwork (String nullable,
speichert TELEKOM/VODAFONE/TELEFONICA) + idempotente Migration
(ADD COLUMN IF NOT EXISTS). String statt Enum, damit weitere Netze
ohne Migration ergänzbar sind. Anzeige in der Vertragsansicht mit
lesbarem Netz-Namen.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-07-27 13:07:56 +02:00
co-authored by Claude Opus 4.7
parent 8508bdc38e
commit 8eb3790e7b
7 changed files with 45 additions and 0 deletions
@@ -3077,6 +3077,12 @@ export default function ContractDetail() {
{c.mobileDetails && (
<Card className="mb-6" title="Mobilfunk-Details">
<dl className="grid grid-cols-2 md:grid-cols-4 gap-4">
{c.mobileDetails.mobileNetwork && (
<div>
<dt className="text-sm text-gray-500">Mobilfunknetz</dt>
<dd>{({ TELEKOM: 'Telekom', VODAFONE: 'Vodafone', TELEFONICA: 'Telefónica' } as Record<string, string>)[c.mobileDetails.mobileNetwork] || c.mobileDetails.mobileNetwork}</dd>
</div>
)}
{c.mobileDetails.dataVolume && (
<div>
<dt className="text-sm text-gray-500">Datenvolumen</dt>