feat(contacts): add company field to free contacts

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
MichaelandClaude Sonnet 4.6 committed 2026-05-15 11:29:56 +02:00
1 parent a430aa1910
commit 693d9460cb
4 files changed
+21

No files matched your search

+16
View File
@@ -49,6 +49,7 @@ export default function Contacts() {
const [formData, setFormData] = useState({
groupId: effectiveGroupId ?? 0,
name: "",
company: "",
role: "",
phone: "",
email: "",
@@ -135,6 +136,7 @@ export default function Contacts() {
setFormData({
groupId: effectiveGroupId ?? 0,
name: "",
company: "",
role: "",
phone: "",
email: "",
@@ -148,6 +150,7 @@ export default function Contacts() {
setFormData({
groupId: contact.groupId,
name: contact.name,
company: (contact as any).company || "",
role: contact.role || "",
phone: contact.phone || "",
email: contact.email || "",
@@ -384,6 +387,9 @@ export default function Contacts() {
</div>
<div>
<p className="font-semibold text-gray-900">{contact.name}</p>
{(contact as any).company && (
<p className="text-sm font-medium text-gray-700">{(contact as any).company}</p>
)}
{contact.role && (
<p className="text-sm text-gray-500">{contact.role}</p>
)}
@@ -485,6 +491,16 @@ export default function Contacts() {
/>
</div>
<div>
<Label htmlFor="c-company">Entreprise</Label>
<Input
id="c-company"
value={formData.company}
onChange={(e) => setFormData((p) => ({ ...p, company: e.target.value }))}
placeholder="Nom de l'entreprise"
/>
</div>
<div>
<Label htmlFor="c-role">Fonction / Rôle</Label>
<Input