@burdenoff/microfe-eventfullymanaged 2026.1108.1 → 2026.1110.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eventfullymanaged/api/eventApi.d.ts +16 -0
- package/dist/eventfullymanaged/api/eventApi.js +107 -97
- package/dist/eventfullymanaged/api/eventApi.js.map +1 -1
- package/dist/eventfullymanaged/lib/printBadge.d.ts +1 -0
- package/dist/eventfullymanaged/lib/printBadge.js +30 -0
- package/dist/eventfullymanaged/lib/printBadge.js.map +1 -0
- package/dist/eventfullymanaged/lib/useBadgePrint.d.ts +11 -0
- package/dist/eventfullymanaged/lib/useBadgePrint.js +38 -0
- package/dist/eventfullymanaged/lib/useBadgePrint.js.map +1 -0
- package/dist/eventfullymanaged/pages/events/EventDetailPage.js +252 -249
- package/dist/eventfullymanaged/pages/events/EventDetailPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/KioskPage.js +321 -285
- package/dist/eventfullymanaged/pages/modules/KioskPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.js +81 -78
- package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/speakers/SpeakerFormPage.js +87 -86
- package/dist/eventfullymanaged/pages/speakers/SpeakerFormPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/venues/VenueDetailPage.js +93 -91
- package/dist/eventfullymanaged/pages/venues/VenueDetailPage.js.map +1 -1
- package/dist/eventfullymanaged/utils/breadcrumbRegistry.d.ts +2 -0
- package/dist/eventfullymanaged/utils/breadcrumbRegistry.js +13 -0
- package/dist/eventfullymanaged/utils/breadcrumbRegistry.js.map +1 -0
- package/package.json +1 -1
|
@@ -8,12 +8,13 @@ import { safeUrl as s } from "../../components/SafeLink.js";
|
|
|
8
8
|
import { useEventfullyManaged as c } from "../../context/EventfullyManagedContext.js";
|
|
9
9
|
import { describeError as l, mutationSucceeded as u } from "../../lib/mutationResult.js";
|
|
10
10
|
import { notify as d } from "../../lib/toast.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
11
|
+
import { registerBreadcrumbName as f, unregisterBreadcrumbName as p } from "../../utils/breadcrumbRegistry.js";
|
|
12
|
+
import { useEffect as m, useMemo as h, useState as g } from "react";
|
|
13
|
+
import { useParams as _ } from "react-router";
|
|
14
|
+
import { jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
15
|
+
import { Input as b, Textarea as x } from "@burdenoff/fe-libs/ui";
|
|
15
16
|
// src/eventfullymanaged/pages/speakers/SpeakerFormPage.tsx
|
|
16
|
-
var
|
|
17
|
+
var S = e`
|
|
17
18
|
query EventfullymanagedSpeakerFormSpeakers($limit: Int, $offset: Int) {
|
|
18
19
|
speakers: eventfullyManagedSpeakers(limit: $limit, offset: $offset) {
|
|
19
20
|
total
|
|
@@ -30,7 +31,7 @@ var b = e`
|
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
|
-
`,
|
|
34
|
+
`, C = {
|
|
34
35
|
fullName: "",
|
|
35
36
|
title: "",
|
|
36
37
|
organization: "",
|
|
@@ -40,184 +41,184 @@ var b = e`
|
|
|
40
41
|
avatarUrl: "",
|
|
41
42
|
website: ""
|
|
42
43
|
};
|
|
43
|
-
function
|
|
44
|
+
function w(e) {
|
|
44
45
|
return e && typeof e.website == "string" ? e.website : "";
|
|
45
46
|
}
|
|
46
|
-
function
|
|
47
|
-
let { id: e = "" } =
|
|
47
|
+
function T() {
|
|
48
|
+
let { id: e = "" } = _(), T = h(() => !!e, [e]), { navigate: E } = c(), { data: D } = t(S, {
|
|
48
49
|
variables: {
|
|
49
50
|
limit: 100,
|
|
50
51
|
offset: 0
|
|
51
52
|
},
|
|
52
53
|
skip: !e
|
|
53
|
-
}), [
|
|
54
|
-
f(() => {
|
|
55
|
-
|
|
56
|
-
fullName:
|
|
57
|
-
title:
|
|
58
|
-
organization:
|
|
59
|
-
email:
|
|
60
|
-
phone:
|
|
61
|
-
bio:
|
|
62
|
-
avatarUrl:
|
|
63
|
-
website:
|
|
54
|
+
}), [O, { loading: k }] = n(), [A, { loading: j }] = r(), [M, N] = g(C), P = h(() => (D?.speakers?.items ?? []).find((t) => t.id === e), [D, e]);
|
|
55
|
+
m(() => (f(e, P?.fullName), () => p(e)), [e, P?.fullName]), m(() => {
|
|
56
|
+
T && P && N({
|
|
57
|
+
fullName: P.fullName ?? "",
|
|
58
|
+
title: P.title ?? "",
|
|
59
|
+
organization: P.organization ?? "",
|
|
60
|
+
email: P.email ?? "",
|
|
61
|
+
phone: P.phone ?? "",
|
|
62
|
+
bio: P.bio ?? "",
|
|
63
|
+
avatarUrl: P.avatarUrl ?? "",
|
|
64
|
+
website: w(P.socialLinks)
|
|
64
65
|
});
|
|
65
|
-
}, [
|
|
66
|
-
let
|
|
67
|
-
|
|
66
|
+
}, [P, T]);
|
|
67
|
+
let F = (e, t) => {
|
|
68
|
+
N((n) => ({
|
|
68
69
|
...n,
|
|
69
70
|
[e]: t
|
|
70
71
|
}));
|
|
71
72
|
};
|
|
72
|
-
return /* @__PURE__ */
|
|
73
|
-
title:
|
|
73
|
+
return /* @__PURE__ */ y(i, {
|
|
74
|
+
title: T ? "Edit Speaker" : "Add Speaker",
|
|
74
75
|
description: "A person who presents sessions at your events.",
|
|
75
76
|
purpose: "A speaker profile is what you attach to sessions and show to attendees. Capture who they are, where they work, and a short bio or talk abstract so the agenda tells a compelling story. The headshot appears anywhere the speaker is listed.",
|
|
76
77
|
backLabel: "Back to Speakers",
|
|
77
|
-
onBack: () =>
|
|
78
|
+
onBack: () => E("/speakers"),
|
|
78
79
|
onSubmit: async (t) => {
|
|
79
|
-
if (t.preventDefault(), !
|
|
80
|
+
if (t.preventDefault(), !M.fullName.trim()) {
|
|
80
81
|
d.error("Name required", "Give the speaker a name before saving.");
|
|
81
82
|
return;
|
|
82
83
|
}
|
|
83
|
-
let n = s(
|
|
84
|
-
if (
|
|
84
|
+
let n = s(M.website);
|
|
85
|
+
if (M.website.trim() && !n) {
|
|
85
86
|
d.error("Invalid website", "Enter a valid http(s) URL, or leave it blank.");
|
|
86
87
|
return;
|
|
87
88
|
}
|
|
88
89
|
let r = {
|
|
89
|
-
fullName:
|
|
90
|
-
title:
|
|
91
|
-
organization:
|
|
92
|
-
email:
|
|
93
|
-
phone:
|
|
94
|
-
bio:
|
|
95
|
-
avatarUrl:
|
|
90
|
+
fullName: M.fullName.trim(),
|
|
91
|
+
title: M.title || null,
|
|
92
|
+
organization: M.organization || null,
|
|
93
|
+
email: M.email || null,
|
|
94
|
+
phone: M.phone || null,
|
|
95
|
+
bio: M.bio || null,
|
|
96
|
+
avatarUrl: M.avatarUrl || null,
|
|
96
97
|
socialLinks: n ? { website: n } : {}
|
|
97
98
|
};
|
|
98
99
|
try {
|
|
99
|
-
if (
|
|
100
|
-
let t = await
|
|
100
|
+
if (T) {
|
|
101
|
+
let t = await A({ variables: {
|
|
101
102
|
id: e,
|
|
102
103
|
input: r
|
|
103
104
|
} });
|
|
104
105
|
if (!u(t, t.data?.updateSpeaker?.id, "Could not update speaker")) return;
|
|
105
|
-
d.success("Speaker updated"),
|
|
106
|
+
d.success("Speaker updated"), E("/speakers");
|
|
106
107
|
return;
|
|
107
108
|
}
|
|
108
|
-
let t = await
|
|
109
|
+
let t = await O({ variables: { input: r } });
|
|
109
110
|
if (!u(t, t.data?.createSpeaker?.id, "Could not create speaker")) return;
|
|
110
|
-
d.success("Speaker created"),
|
|
111
|
+
d.success("Speaker created"), E("/speakers");
|
|
111
112
|
} catch (e) {
|
|
112
113
|
d.error("Could not save speaker", l(e));
|
|
113
114
|
}
|
|
114
115
|
},
|
|
115
116
|
submitLabel: "Save Speaker",
|
|
116
|
-
saving:
|
|
117
|
+
saving: k || j,
|
|
117
118
|
children: [
|
|
118
|
-
/* @__PURE__ */
|
|
119
|
+
/* @__PURE__ */ y("div", {
|
|
119
120
|
className: "grid grid-cols-1 gap-4 md:grid-cols-2",
|
|
120
|
-
children: [/* @__PURE__ */
|
|
121
|
+
children: [/* @__PURE__ */ y("label", {
|
|
121
122
|
className: "space-y-1 text-sm",
|
|
122
|
-
children: [/* @__PURE__ */
|
|
123
|
+
children: [/* @__PURE__ */ v("span", {
|
|
123
124
|
className: "font-medium text-text-primary",
|
|
124
125
|
children: "Full name"
|
|
125
|
-
}), /* @__PURE__ */
|
|
126
|
-
value:
|
|
127
|
-
onChange: (e) =>
|
|
126
|
+
}), /* @__PURE__ */ v(b, {
|
|
127
|
+
value: M.fullName,
|
|
128
|
+
onChange: (e) => F("fullName", e.target.value),
|
|
128
129
|
required: !0
|
|
129
130
|
})]
|
|
130
|
-
}), /* @__PURE__ */
|
|
131
|
+
}), /* @__PURE__ */ y("label", {
|
|
131
132
|
className: "space-y-1 text-sm",
|
|
132
|
-
children: [/* @__PURE__ */
|
|
133
|
+
children: [/* @__PURE__ */ v("span", {
|
|
133
134
|
className: "font-medium text-text-primary",
|
|
134
135
|
children: "Title"
|
|
135
|
-
}), /* @__PURE__ */
|
|
136
|
-
value:
|
|
137
|
-
onChange: (e) =>
|
|
136
|
+
}), /* @__PURE__ */ v(b, {
|
|
137
|
+
value: M.title,
|
|
138
|
+
onChange: (e) => F("title", e.target.value),
|
|
138
139
|
placeholder: "Head of Product"
|
|
139
140
|
})]
|
|
140
141
|
})]
|
|
141
142
|
}),
|
|
142
|
-
/* @__PURE__ */
|
|
143
|
+
/* @__PURE__ */ y("div", {
|
|
143
144
|
className: "grid grid-cols-1 gap-4 md:grid-cols-3",
|
|
144
145
|
children: [
|
|
145
|
-
/* @__PURE__ */
|
|
146
|
+
/* @__PURE__ */ y("label", {
|
|
146
147
|
className: "space-y-1 text-sm",
|
|
147
|
-
children: [/* @__PURE__ */
|
|
148
|
+
children: [/* @__PURE__ */ v("span", {
|
|
148
149
|
className: "font-medium text-text-primary",
|
|
149
150
|
children: "Company"
|
|
150
|
-
}), /* @__PURE__ */
|
|
151
|
-
value:
|
|
152
|
-
onChange: (e) =>
|
|
151
|
+
}), /* @__PURE__ */ v(b, {
|
|
152
|
+
value: M.organization,
|
|
153
|
+
onChange: (e) => F("organization", e.target.value)
|
|
153
154
|
})]
|
|
154
155
|
}),
|
|
155
|
-
/* @__PURE__ */
|
|
156
|
+
/* @__PURE__ */ y("label", {
|
|
156
157
|
className: "space-y-1 text-sm",
|
|
157
|
-
children: [/* @__PURE__ */
|
|
158
|
+
children: [/* @__PURE__ */ v("span", {
|
|
158
159
|
className: "font-medium text-text-primary",
|
|
159
160
|
children: "Email"
|
|
160
|
-
}), /* @__PURE__ */
|
|
161
|
+
}), /* @__PURE__ */ v(b, {
|
|
161
162
|
type: "email",
|
|
162
|
-
value:
|
|
163
|
-
onChange: (e) =>
|
|
163
|
+
value: M.email,
|
|
164
|
+
onChange: (e) => F("email", e.target.value)
|
|
164
165
|
})]
|
|
165
166
|
}),
|
|
166
|
-
/* @__PURE__ */
|
|
167
|
+
/* @__PURE__ */ y("label", {
|
|
167
168
|
className: "space-y-1 text-sm",
|
|
168
|
-
children: [/* @__PURE__ */
|
|
169
|
+
children: [/* @__PURE__ */ v("span", {
|
|
169
170
|
className: "font-medium text-text-primary",
|
|
170
171
|
children: "Phone"
|
|
171
|
-
}), /* @__PURE__ */
|
|
172
|
-
value:
|
|
173
|
-
onChange: (e) =>
|
|
172
|
+
}), /* @__PURE__ */ v(b, {
|
|
173
|
+
value: M.phone,
|
|
174
|
+
onChange: (e) => F("phone", e.target.value)
|
|
174
175
|
})]
|
|
175
176
|
})
|
|
176
177
|
]
|
|
177
178
|
}),
|
|
178
|
-
/* @__PURE__ */
|
|
179
|
+
/* @__PURE__ */ y("div", {
|
|
179
180
|
className: "space-y-1 text-sm",
|
|
180
|
-
children: [/* @__PURE__ */
|
|
181
|
+
children: [/* @__PURE__ */ v("span", {
|
|
181
182
|
className: "font-medium text-text-primary",
|
|
182
183
|
children: "Headshot"
|
|
183
|
-
}), /* @__PURE__ */
|
|
184
|
+
}), /* @__PURE__ */ v(o, {
|
|
184
185
|
label: "Upload headshot",
|
|
185
186
|
folderPath: "/EventfullyManaged/Speakers",
|
|
186
|
-
value:
|
|
187
|
-
onUploaded: (e) =>
|
|
187
|
+
value: M.avatarUrl || null,
|
|
188
|
+
onUploaded: (e) => F("avatarUrl", e),
|
|
188
189
|
hint: "Stored securely in Files. Shown wherever the speaker is listed."
|
|
189
190
|
})]
|
|
190
191
|
}),
|
|
191
|
-
/* @__PURE__ */
|
|
192
|
+
/* @__PURE__ */ y("label", {
|
|
192
193
|
className: "block space-y-1 text-sm",
|
|
193
|
-
children: [/* @__PURE__ */
|
|
194
|
+
children: [/* @__PURE__ */ v("span", {
|
|
194
195
|
className: "font-medium text-text-primary",
|
|
195
196
|
children: "Bio & talk abstract"
|
|
196
|
-
}), /* @__PURE__ */
|
|
197
|
-
value:
|
|
198
|
-
onChange: (e) =>
|
|
197
|
+
}), /* @__PURE__ */ v(x, {
|
|
198
|
+
value: M.bio,
|
|
199
|
+
onChange: (e) => F("bio", e.target.value),
|
|
199
200
|
rows: 5,
|
|
200
201
|
placeholder: "Short professional bio and a summary of the talk they will give."
|
|
201
202
|
})]
|
|
202
203
|
}),
|
|
203
|
-
/* @__PURE__ */
|
|
204
|
+
/* @__PURE__ */ y("label", {
|
|
204
205
|
className: "block space-y-1 text-sm",
|
|
205
|
-
children: [/* @__PURE__ */
|
|
206
|
+
children: [/* @__PURE__ */ v("span", {
|
|
206
207
|
className: "font-medium text-text-primary",
|
|
207
208
|
children: "Website / profile URL"
|
|
208
|
-
}), /* @__PURE__ */
|
|
209
|
-
value:
|
|
210
|
-
onChange: (e) =>
|
|
209
|
+
}), /* @__PURE__ */ v(b, {
|
|
210
|
+
value: M.website,
|
|
211
|
+
onChange: (e) => F("website", e.target.value),
|
|
211
212
|
placeholder: "https://…"
|
|
212
213
|
})]
|
|
213
214
|
}),
|
|
214
|
-
|
|
215
|
+
T ? /* @__PURE__ */ v(a, {
|
|
215
216
|
entityType: "EVENTFULLYMANAGED_SPEAKER",
|
|
216
217
|
entityId: e
|
|
217
218
|
}) : null
|
|
218
219
|
]
|
|
219
220
|
});
|
|
220
221
|
}
|
|
221
|
-
export {
|
|
222
|
+
export { T as default };
|
|
222
223
|
|
|
223
224
|
//# sourceMappingURL=SpeakerFormPage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpeakerFormPage.js","names":["FULL_SPEAKERS_QUERY","initialState","readWebsite","socialLinks","SpeakerFormPage","useParams","isEdit","useMemo","id","useEventfullyManaged","useQuery","createSpeaker","creating","useCreateSpeakerMutation","updateSpeaker","updating","useUpdateSpeakerMutation","form","setForm","useState","existingSpeaker","data","item","onChange","prev","field","value","EntityFormShell","navigate","event","normalizedWebsite","safeUrl","input","response","mutationSucceeded","notify","error","describeError","Input","ImageUploadField","url","Textarea","EntityTagsField"],"sources":["../../../../src/eventfullymanaged/pages/speakers/SpeakerFormPage.tsx"],"sourcesContent":["/* eslint-disable react-hooks/set-state-in-effect */\nimport { gql } from '@apollo/client';\nimport { useQuery } from '@apollo/client/react';\nimport { Input, Textarea } from '@burdenoff/fe-libs/ui';\nimport { useEffect, useMemo, useState } from 'react';\nimport { useParams } from 'react-router';\n\nimport { useCreateSpeakerMutation, useUpdateSpeakerMutation } from '../../api/eventApi';\nimport { EntityFormShell } from '../../components/EntityFormShell';\nimport { EntityTagsField } from '../../components/EntityTagsField';\nimport { ImageUploadField } from '../../components/ImageUploadField';\nimport { safeUrl } from '../../components/SafeLink';\nimport { useEventfullyManaged } from '../../context/EventfullyManagedContext';\nimport { describeError, mutationSucceeded } from '../../lib/mutationResult';\nimport { notify } from '../../lib/toast';\n\n// The backend `updateSpeaker` resolver is a FULL replace and there is no by-id\n// speaker resolver, so this fuller list query — selecting every editable field,\n// not just the columns the foundation SPEAKERS_QUERY lists — is the edit-hydration\n// source. The form finds its row by id client-side. Without the full selection an\n// edit would blank bio / avatar / phone / socialLinks.\nconst FULL_SPEAKERS_QUERY = gql`\n query EventfullymanagedSpeakerFormSpeakers($limit: Int, $offset: Int) {\n speakers: eventfullyManagedSpeakers(limit: $limit, offset: $offset) {\n total\n items {\n id\n fullName\n title\n organization\n bio\n avatarUrl\n email\n phone\n socialLinks\n }\n }\n }\n`;\n\ntype SpeakerRecord = {\n id: string;\n fullName: string;\n title?: string | null;\n organization?: string | null;\n bio?: string | null;\n avatarUrl?: string | null;\n email?: string | null;\n phone?: string | null;\n socialLinks?: Record<string, unknown> | null;\n};\n\ntype FullSpeakersResponse = { speakers: { total: number; items: SpeakerRecord[] } };\n\ntype SpeakerFormState = {\n fullName: string;\n title: string;\n organization: string;\n email: string;\n phone: string;\n bio: string;\n avatarUrl: string;\n website: string;\n};\n\nconst initialState: SpeakerFormState = {\n fullName: '',\n title: '',\n organization: '',\n email: '',\n phone: '',\n bio: '',\n avatarUrl: '',\n website: '',\n};\n\nfunction readWebsite(socialLinks: Record<string, unknown> | null | undefined): string {\n if (socialLinks && typeof socialLinks.website === 'string') {\n return socialLinks.website;\n }\n return '';\n}\n\nexport default function SpeakerFormPage() {\n const { id = '' } = useParams<{ id: string }>();\n const isEdit = useMemo(() => Boolean(id), [id]);\n const { navigate } = useEventfullyManaged();\n\n const { data } = useQuery<FullSpeakersResponse, { limit?: number; offset?: number }>(FULL_SPEAKERS_QUERY, {\n variables: { limit: 100, offset: 0 },\n skip: !id,\n });\n const [createSpeaker, { loading: creating }] = useCreateSpeakerMutation();\n const [updateSpeaker, { loading: updating }] = useUpdateSpeakerMutation();\n const [form, setForm] = useState<SpeakerFormState>(initialState);\n\n const existingSpeaker = useMemo(() => (data?.speakers?.items ?? []).find((item) => item.id === id), [data, id]);\n\n useEffect(() => {\n if (!isEdit || !existingSpeaker) {\n return;\n }\n setForm({\n fullName: existingSpeaker.fullName ?? '',\n title: existingSpeaker.title ?? '',\n organization: existingSpeaker.organization ?? '',\n email: existingSpeaker.email ?? '',\n phone: existingSpeaker.phone ?? '',\n bio: existingSpeaker.bio ?? '',\n avatarUrl: existingSpeaker.avatarUrl ?? '',\n website: readWebsite(existingSpeaker.socialLinks),\n });\n }, [existingSpeaker, isEdit]);\n\n const onChange = (field: keyof SpeakerFormState, value: string) => {\n setForm((prev) => ({ ...prev, [field]: value }));\n };\n\n const onSubmit = async (event: React.FormEvent<HTMLFormElement>) => {\n event.preventDefault();\n\n if (!form.fullName.trim()) {\n notify.error('Name required', 'Give the speaker a name before saving.');\n return;\n }\n\n const normalizedWebsite = safeUrl(form.website);\n if (form.website.trim() && !normalizedWebsite) {\n notify.error('Invalid website', 'Enter a valid http(s) URL, or leave it blank.');\n return;\n }\n\n const input = {\n fullName: form.fullName.trim(),\n title: form.title || null,\n organization: form.organization || null,\n email: form.email || null,\n phone: form.phone || null,\n bio: form.bio || null,\n avatarUrl: form.avatarUrl || null,\n socialLinks: normalizedWebsite ? { website: normalizedWebsite } : {},\n };\n\n try {\n if (isEdit) {\n const response = await updateSpeaker({ variables: { id, input } });\n if (!mutationSucceeded(response, response.data?.updateSpeaker?.id, 'Could not update speaker')) {\n return;\n }\n notify.success('Speaker updated');\n navigate('/speakers');\n return;\n }\n const response = await createSpeaker({ variables: { input } });\n if (!mutationSucceeded(response, response.data?.createSpeaker?.id, 'Could not create speaker')) {\n return;\n }\n notify.success('Speaker created');\n navigate('/speakers');\n } catch (error) {\n notify.error('Could not save speaker', describeError(error));\n }\n };\n\n const saving = creating || updating;\n\n return (\n <EntityFormShell\n title={isEdit ? 'Edit Speaker' : 'Add Speaker'}\n description=\"A person who presents sessions at your events.\"\n purpose=\"A speaker profile is what you attach to sessions and show to attendees. Capture who they are, where they work, and a short bio or talk abstract so the agenda tells a compelling story. The headshot appears anywhere the speaker is listed.\"\n backLabel=\"Back to Speakers\"\n onBack={() => navigate('/speakers')}\n onSubmit={onSubmit}\n submitLabel=\"Save Speaker\"\n saving={saving}\n >\n <div className=\"grid grid-cols-1 gap-4 md:grid-cols-2\">\n <label className=\"space-y-1 text-sm\">\n <span className=\"font-medium text-text-primary\">Full name</span>\n <Input value={form.fullName} onChange={(e) => onChange('fullName', e.target.value)} required />\n </label>\n <label className=\"space-y-1 text-sm\">\n <span className=\"font-medium text-text-primary\">Title</span>\n <Input value={form.title} onChange={(e) => onChange('title', e.target.value)} placeholder=\"Head of Product\" />\n </label>\n </div>\n\n <div className=\"grid grid-cols-1 gap-4 md:grid-cols-3\">\n <label className=\"space-y-1 text-sm\">\n <span className=\"font-medium text-text-primary\">Company</span>\n <Input value={form.organization} onChange={(e) => onChange('organization', e.target.value)} />\n </label>\n <label className=\"space-y-1 text-sm\">\n <span className=\"font-medium text-text-primary\">Email</span>\n <Input type=\"email\" value={form.email} onChange={(e) => onChange('email', e.target.value)} />\n </label>\n <label className=\"space-y-1 text-sm\">\n <span className=\"font-medium text-text-primary\">Phone</span>\n <Input value={form.phone} onChange={(e) => onChange('phone', e.target.value)} />\n </label>\n </div>\n\n <div className=\"space-y-1 text-sm\">\n <span className=\"font-medium text-text-primary\">Headshot</span>\n <ImageUploadField\n label=\"Upload headshot\"\n folderPath=\"/EventfullyManaged/Speakers\"\n value={form.avatarUrl || null}\n onUploaded={(url) => onChange('avatarUrl', url)}\n hint=\"Stored securely in Files. Shown wherever the speaker is listed.\"\n />\n </div>\n\n <label className=\"block space-y-1 text-sm\">\n <span className=\"font-medium text-text-primary\">Bio & talk abstract</span>\n <Textarea\n value={form.bio}\n onChange={(e) => onChange('bio', e.target.value)}\n rows={5}\n placeholder=\"Short professional bio and a summary of the talk they will give.\"\n />\n </label>\n\n <label className=\"block space-y-1 text-sm\">\n <span className=\"font-medium text-text-primary\">Website / profile URL</span>\n <Input value={form.website} onChange={(e) => onChange('website', e.target.value)} placeholder=\"https://…\" />\n </label>\n\n {isEdit ? <EntityTagsField entityType=\"EVENTFULLYMANAGED_SPEAKER\" entityId={id} /> : null}\n </EntityFormShell>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;AAqBA,IAAMA,IAAsB,CAAG;;;;;;;;;;;;;;;;;GA4CzBC,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AK,aAAa;KACzB,aAAa,MAAQM,EAAS,aAAaiB,CAAG;KAC9C,MAAK;IACN,CAAA,CACE;;GAEL,kBAAC,SAAD;IAAO,WAAU;IAAjB,UAAA,CACE,kBAAC,QAAD;KAAM,WAAU;KAAgC,UAAA;IAA6B,CAAA,GAC7E,kBAACC,GAAD;KACE,OAAOxB,EAAK;KACZ,WAAW,MAAMM,EAAS,OAAO,EAAE,OAAO,KAAK;KAC/C,MAAM;KACN,aAAY;IACb,CAAA,CACI;;GAEP,kBAAC,SAAD;IAAO,WAAU;IAAjB,UAAA,CACE,kBAAC,QAAD;KAAM,WAAU;KAAgC,UAAA;IAA2B,CAAA,GAC3E,kBAACe,GAAD;KAAO,OAAOrB,EAAK;KAAS,WAAW,MAAMM,EAAS,WAAW,EAAE,OAAO,KAAK;KAAG,aAAY;IAAa,CAAA,CACtG;;GAENjB,IAAS,kBAACoC,GAAD;IAAiB,YAAW;IAA4B,UAAUlC;GAAK,CAAA,IAAI;EACtE;;AAErB"}
|
|
1
|
+
{"version":3,"file":"SpeakerFormPage.js","names":["FULL_SPEAKERS_QUERY","initialState","readWebsite","socialLinks","SpeakerFormPage","useParams","isEdit","useMemo","id","useEventfullyManaged","useQuery","createSpeaker","creating","useCreateSpeakerMutation","updateSpeaker","updating","useUpdateSpeakerMutation","form","setForm","useState","existingSpeaker","data","item","useEffect","registerBreadcrumbName","unregisterBreadcrumbName","onChange","prev","field","value","EntityFormShell","navigate","event","normalizedWebsite","safeUrl","input","response","mutationSucceeded","notify","error","describeError","Input","ImageUploadField","url","Textarea","EntityTagsField"],"sources":["../../../../src/eventfullymanaged/pages/speakers/SpeakerFormPage.tsx"],"sourcesContent":["/* eslint-disable react-hooks/set-state-in-effect */\nimport { gql } from '@apollo/client';\nimport { useQuery } from '@apollo/client/react';\nimport { Input, Textarea } from '@burdenoff/fe-libs/ui';\nimport { useEffect, useMemo, useState } from 'react';\nimport { useParams } from 'react-router';\n\nimport { useCreateSpeakerMutation, useUpdateSpeakerMutation } from '../../api/eventApi';\nimport { EntityFormShell } from '../../components/EntityFormShell';\nimport { EntityTagsField } from '../../components/EntityTagsField';\nimport { ImageUploadField } from '../../components/ImageUploadField';\nimport { safeUrl } from '../../components/SafeLink';\nimport { useEventfullyManaged } from '../../context/EventfullyManagedContext';\nimport { describeError, mutationSucceeded } from '../../lib/mutationResult';\nimport { notify } from '../../lib/toast';\nimport { registerBreadcrumbName, unregisterBreadcrumbName } from '../../utils/breadcrumbRegistry';\n\n// The backend `updateSpeaker` resolver is a FULL replace and there is no by-id\n// speaker resolver, so this fuller list query — selecting every editable field,\n// not just the columns the foundation SPEAKERS_QUERY lists — is the edit-hydration\n// source. The form finds its row by id client-side. Without the full selection an\n// edit would blank bio / avatar / phone / socialLinks.\nconst FULL_SPEAKERS_QUERY = gql`\n query EventfullymanagedSpeakerFormSpeakers($limit: Int, $offset: Int) {\n speakers: eventfullyManagedSpeakers(limit: $limit, offset: $offset) {\n total\n items {\n id\n fullName\n title\n organization\n bio\n avatarUrl\n email\n phone\n socialLinks\n }\n }\n }\n`;\n\ntype SpeakerRecord = {\n id: string;\n fullName: string;\n title?: string | null;\n organization?: string | null;\n bio?: string | null;\n avatarUrl?: string | null;\n email?: string | null;\n phone?: string | null;\n socialLinks?: Record<string, unknown> | null;\n};\n\ntype FullSpeakersResponse = { speakers: { total: number; items: SpeakerRecord[] } };\n\ntype SpeakerFormState = {\n fullName: string;\n title: string;\n organization: string;\n email: string;\n phone: string;\n bio: string;\n avatarUrl: string;\n website: string;\n};\n\nconst initialState: SpeakerFormState = {\n fullName: '',\n title: '',\n organization: '',\n email: '',\n phone: '',\n bio: '',\n avatarUrl: '',\n website: '',\n};\n\nfunction readWebsite(socialLinks: Record<string, unknown> | null | undefined): string {\n if (socialLinks && typeof socialLinks.website === 'string') {\n return socialLinks.website;\n }\n return '';\n}\n\nexport default function SpeakerFormPage() {\n const { id = '' } = useParams<{ id: string }>();\n const isEdit = useMemo(() => Boolean(id), [id]);\n const { navigate } = useEventfullyManaged();\n\n const { data } = useQuery<FullSpeakersResponse, { limit?: number; offset?: number }>(FULL_SPEAKERS_QUERY, {\n variables: { limit: 100, offset: 0 },\n skip: !id,\n });\n const [createSpeaker, { loading: creating }] = useCreateSpeakerMutation();\n const [updateSpeaker, { loading: updating }] = useUpdateSpeakerMutation();\n const [form, setForm] = useState<SpeakerFormState>(initialState);\n\n const existingSpeaker = useMemo(() => (data?.speakers?.items ?? []).find((item) => item.id === id), [data, id]);\n\n useEffect(() => {\n registerBreadcrumbName(id, existingSpeaker?.fullName);\n return () => unregisterBreadcrumbName(id);\n }, [id, existingSpeaker?.fullName]);\n\n useEffect(() => {\n if (!isEdit || !existingSpeaker) {\n return;\n }\n setForm({\n fullName: existingSpeaker.fullName ?? '',\n title: existingSpeaker.title ?? '',\n organization: existingSpeaker.organization ?? '',\n email: existingSpeaker.email ?? '',\n phone: existingSpeaker.phone ?? '',\n bio: existingSpeaker.bio ?? '',\n avatarUrl: existingSpeaker.avatarUrl ?? '',\n website: readWebsite(existingSpeaker.socialLinks),\n });\n }, [existingSpeaker, isEdit]);\n\n const onChange = (field: keyof SpeakerFormState, value: string) => {\n setForm((prev) => ({ ...prev, [field]: value }));\n };\n\n const onSubmit = async (event: React.FormEvent<HTMLFormElement>) => {\n event.preventDefault();\n\n if (!form.fullName.trim()) {\n notify.error('Name required', 'Give the speaker a name before saving.');\n return;\n }\n\n const normalizedWebsite = safeUrl(form.website);\n if (form.website.trim() && !normalizedWebsite) {\n notify.error('Invalid website', 'Enter a valid http(s) URL, or leave it blank.');\n return;\n }\n\n const input = {\n fullName: form.fullName.trim(),\n title: form.title || null,\n organization: form.organization || null,\n email: form.email || null,\n phone: form.phone || null,\n bio: form.bio || null,\n avatarUrl: form.avatarUrl || null,\n socialLinks: normalizedWebsite ? { website: normalizedWebsite } : {},\n };\n\n try {\n if (isEdit) {\n const response = await updateSpeaker({ variables: { id, input } });\n if (!mutationSucceeded(response, response.data?.updateSpeaker?.id, 'Could not update speaker')) {\n return;\n }\n notify.success('Speaker updated');\n navigate('/speakers');\n return;\n }\n const response = await createSpeaker({ variables: { input } });\n if (!mutationSucceeded(response, response.data?.createSpeaker?.id, 'Could not create speaker')) {\n return;\n }\n notify.success('Speaker created');\n navigate('/speakers');\n } catch (error) {\n notify.error('Could not save speaker', describeError(error));\n }\n };\n\n const saving = creating || updating;\n\n return (\n <EntityFormShell\n title={isEdit ? 'Edit Speaker' : 'Add Speaker'}\n description=\"A person who presents sessions at your events.\"\n purpose=\"A speaker profile is what you attach to sessions and show to attendees. Capture who they are, where they work, and a short bio or talk abstract so the agenda tells a compelling story. The headshot appears anywhere the speaker is listed.\"\n backLabel=\"Back to Speakers\"\n onBack={() => navigate('/speakers')}\n onSubmit={onSubmit}\n submitLabel=\"Save Speaker\"\n saving={saving}\n >\n <div className=\"grid grid-cols-1 gap-4 md:grid-cols-2\">\n <label className=\"space-y-1 text-sm\">\n <span className=\"font-medium text-text-primary\">Full name</span>\n <Input value={form.fullName} onChange={(e) => onChange('fullName', e.target.value)} required />\n </label>\n <label className=\"space-y-1 text-sm\">\n <span className=\"font-medium text-text-primary\">Title</span>\n <Input value={form.title} onChange={(e) => onChange('title', e.target.value)} placeholder=\"Head of Product\" />\n </label>\n </div>\n\n <div className=\"grid grid-cols-1 gap-4 md:grid-cols-3\">\n <label className=\"space-y-1 text-sm\">\n <span className=\"font-medium text-text-primary\">Company</span>\n <Input value={form.organization} onChange={(e) => onChange('organization', e.target.value)} />\n </label>\n <label className=\"space-y-1 text-sm\">\n <span className=\"font-medium text-text-primary\">Email</span>\n <Input type=\"email\" value={form.email} onChange={(e) => onChange('email', e.target.value)} />\n </label>\n <label className=\"space-y-1 text-sm\">\n <span className=\"font-medium text-text-primary\">Phone</span>\n <Input value={form.phone} onChange={(e) => onChange('phone', e.target.value)} />\n </label>\n </div>\n\n <div className=\"space-y-1 text-sm\">\n <span className=\"font-medium text-text-primary\">Headshot</span>\n <ImageUploadField\n label=\"Upload headshot\"\n folderPath=\"/EventfullyManaged/Speakers\"\n value={form.avatarUrl || null}\n onUploaded={(url) => onChange('avatarUrl', url)}\n hint=\"Stored securely in Files. Shown wherever the speaker is listed.\"\n />\n </div>\n\n <label className=\"block space-y-1 text-sm\">\n <span className=\"font-medium text-text-primary\">Bio & talk abstract</span>\n <Textarea\n value={form.bio}\n onChange={(e) => onChange('bio', e.target.value)}\n rows={5}\n placeholder=\"Short professional bio and a summary of the talk they will give.\"\n />\n </label>\n\n <label className=\"block space-y-1 text-sm\">\n <span className=\"font-medium text-text-primary\">Website / profile URL</span>\n <Input value={form.website} onChange={(e) => onChange('website', e.target.value)} placeholder=\"https://…\" />\n </label>\n\n {isEdit ? <EntityTagsField entityType=\"EVENTFULLYMANAGED_SPEAKER\" entityId={id} /> : null}\n </EntityFormShell>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAsBA,IAAMA,IAAsB,CAAG;;;;;;;;;;;;;;;;;GA4CzBC,IAAiC;CACrC,UAAU;CACV,OAAO;CACP,cAAc;CACd,OAAO;CACP,OAAO;CACP,KAAK;CACL,WAAW;CACX,SAAS;AACX;AAEA,SAASC,EAAY,GAAiE;CAIpF,OAHIC,KAAe,OAAOA,EAAY,WAAY,WACzCA,EAAY,UAEd;AACT;AAEA,SAAwBC,IAAkB;CACxC,IAAM,EAAE,QAAK,OAAOC,EAA0B,GACxCC,IAASC,QAAc,EAAQC,GAAK,CAACA,CAAE,CAAC,GACxC,EAAE,gBAAaC,EAAqB,GAEpC,EAAE,YAASC,EAAoEV,GAAqB;EACxG,WAAW;GAAE,OAAO;GAAK,QAAQ;EAAE;EACnC,MAAM,CAACQ;CACT,CAAC,GACK,CAACG,GAAe,EAAE,SAASC,OAAcC,EAAyB,GAClE,CAACC,GAAe,EAAE,SAASC,OAAcC,EAAyB,GAClE,CAACC,GAAMC,KAAWC,EAA2BlB,CAAY,GAEzDmB,IAAkBb,SAAec,GAAM,UAAU,SAAS,CAAC,EAAA,CAAG,MAAM,MAASC,EA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