Fiche adhérent complète, fidèle à la maquette

Enrichit la fiche : couverture + avatar, identité (catégorie, localisation,
adhérent depuis, boutons Appeler/Itinéraire), à propos multi-paragraphes + tags,
informations pratiques (horaires + contact tél/email/site), carte Google Maps,
colonne promotions en cours et CTA contact.

Ajoute les champs members: cover_url, phone, website, postal_code, member_since,
hours, tags (migration 0001) ; éditables dans le back-office ; seed enrichi
(Au Bon Pain conforme à la maquette).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XwfhYHzC9hQWPDnQ2p53GL
This commit is contained in:
Claude committed 2026-06-26 21:25:45 +00:00
1 parent a6718c90f1
commit ef6b233c95
10 files changed
+843 -249

No files matched your search

+6
View File
@@ -115,6 +115,12 @@ export async function updateMember(formData: FormData) {
city: String(formData.get("city") ?? "").trim() || null,
address: String(formData.get("address") ?? "").trim() || null,
description: String(formData.get("description") ?? "").trim() || null,
postalCode: String(formData.get("postalCode") ?? "").trim() || null,
phone: String(formData.get("phone") ?? "").trim() || null,
website: String(formData.get("website") ?? "").trim() || null,
memberSince: formData.get("memberSince") ? Number(formData.get("memberSince")) : null,
tags: String(formData.get("tags") ?? "").trim() || null,
hours: String(formData.get("hours") ?? "").trim() || null,
status: String(formData.get("status") ?? "pending") as "active" | "pending",
highlighted: formData.get("highlighted") === "on",
})