@aglyn/plugins-inbox 1.15.2 → 1.17.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aglyn/plugins-inbox",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"homepage": "https://aglyn.com",
|
|
6
6
|
"repository": {
|
|
@@ -25,16 +25,16 @@
|
|
|
25
25
|
"./package.json": "./package.json"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@aglyn/aglyn": "1.
|
|
29
|
-
"@aglyn/shared-data-mdi": "1.
|
|
30
|
-
"@aglyn/shared-ui-jsx": "1.
|
|
31
|
-
"@aglyn/shared-ui-next": "1.
|
|
32
|
-
"@aglyn/shared-ui-snackstack": "1.
|
|
33
|
-
"@aglyn/shared-util-email": "1.
|
|
34
|
-
"@aglyn/shared-util-http": "1.
|
|
35
|
-
"@aglyn/shared-util-tools": "1.
|
|
36
|
-
"@aglyn/tenant-data-admin": "1.
|
|
37
|
-
"@aglyn/tenant-feature-instance": "1.
|
|
28
|
+
"@aglyn/aglyn": "1.17.0",
|
|
29
|
+
"@aglyn/shared-data-mdi": "1.17.0",
|
|
30
|
+
"@aglyn/shared-ui-jsx": "1.17.0",
|
|
31
|
+
"@aglyn/shared-ui-next": "1.17.0",
|
|
32
|
+
"@aglyn/shared-ui-snackstack": "1.17.0",
|
|
33
|
+
"@aglyn/shared-util-email": "1.17.0",
|
|
34
|
+
"@aglyn/shared-util-http": "1.17.0",
|
|
35
|
+
"@aglyn/shared-util-tools": "1.17.0",
|
|
36
|
+
"@aglyn/tenant-data-admin": "1.17.0",
|
|
37
|
+
"@aglyn/tenant-feature-instance": "1.17.0",
|
|
38
38
|
"@swc/helpers": "0.5.23"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
@@ -31,10 +31,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
31
31
|
* rather than as a conversation: this list is one-sided by construction.
|
|
32
32
|
*/ import { pluginDocsHelp } from "@aglyn/aglyn/app-utils/docs-help";
|
|
33
33
|
import { CardDisplay } from "@aglyn/shared-ui-jsx";
|
|
34
|
+
import { ReplyComposer, ReplyThread } from "@aglyn/shared-ui-jsx/components/reply-composer.component";
|
|
34
35
|
import { useSnackbar } from "@aglyn/shared-ui-snackstack";
|
|
35
36
|
import { useFirestore, useFirestoreCollection, useFirestoreDoc, useUser } from "@aglyn/tenant-feature-instance";
|
|
36
37
|
import { authorizedFetch } from "@aglyn/shared-util-http/authorized-token";
|
|
37
|
-
import { Alert,
|
|
38
|
+
import { Alert, Stack } from "@mui/material";
|
|
38
39
|
import { collection, doc, limit, orderBy, query } from "firebase/firestore";
|
|
39
40
|
import { pluginRecordListDoc } from "@aglyn/aglyn/plugin-manager/plugin-record-lists";
|
|
40
41
|
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
@@ -42,7 +43,7 @@ import { REPLY_BODY_MAX, REPLY_SUBJECT_MAX, defaultReplySubject, replyRecipient
|
|
|
42
43
|
/** How many past replies the panel lists. A submission answered more than a
|
|
43
44
|
* handful of times is a conversation that belongs in a real mailbox. */ const SENT_REPLIES_LIMIT = 10;
|
|
44
45
|
export function SubmissionReply(props) {
|
|
45
|
-
var _ref, _ref1, _ref2;
|
|
46
|
+
var _ref, _ref1, _ref2, _ref3;
|
|
46
47
|
const { hostId, submission } = props;
|
|
47
48
|
const firestore = useFirestore();
|
|
48
49
|
const { data: user } = useUser();
|
|
@@ -182,72 +183,35 @@ export function SubmissionReply(props) {
|
|
|
182
183
|
children: /*#__PURE__*/ _jsxs(Stack, {
|
|
183
184
|
spacing: 2,
|
|
184
185
|
children: [
|
|
185
|
-
/*#__PURE__*/ _jsx(
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
186
|
+
/*#__PURE__*/ _jsx(ReplyComposer, {
|
|
187
|
+
to: recipient.email,
|
|
188
|
+
subject: {
|
|
189
|
+
value: subject,
|
|
190
|
+
onChange: setSubject,
|
|
191
|
+
max: REPLY_SUBJECT_MAX
|
|
192
|
+
},
|
|
193
|
+
message: message,
|
|
194
|
+
onMessageChange: setMessage,
|
|
195
|
+
messageMax: REPLY_BODY_MAX,
|
|
196
|
+
messagePlaceholder: "Write your reply. The original message is quoted underneath it.",
|
|
197
|
+
note: `Sent from your site's name at this platform's address, with replies ` + `directed to ${(_ref2 = user == null ? void 0 : user.email) != null ? _ref2 : 'your account email'}. Answers arrive ` + 'in your email, not in this Inbox.',
|
|
198
|
+
busy: busy,
|
|
199
|
+
onSend: ()=>void handleSend()
|
|
189
200
|
}),
|
|
190
|
-
/*#__PURE__*/ _jsx(
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
multiline: true,
|
|
203
|
-
minRows: 4,
|
|
204
|
-
placeholder: "Write your reply. The original message is quoted underneath it."
|
|
205
|
-
}),
|
|
206
|
-
/*#__PURE__*/ _jsx(Alert, {
|
|
207
|
-
severity: "info",
|
|
208
|
-
children: `Sent from your site's name at this platform's address, with replies ` + `directed to ${(_ref2 = user == null ? void 0 : user.email) != null ? _ref2 : 'your account email'}. Answers arrive ` + 'in your email, not in this Inbox.'
|
|
209
|
-
}),
|
|
210
|
-
/*#__PURE__*/ _jsx(Box, {
|
|
211
|
-
children: /*#__PURE__*/ _jsx(Button, {
|
|
212
|
-
variant: "contained",
|
|
213
|
-
disabled: busy || !subject.trim() || !message.trim(),
|
|
214
|
-
onClick: handleSend,
|
|
215
|
-
children: busy ? 'Sending…' : 'Send reply'
|
|
201
|
+
/*#__PURE__*/ _jsx(ReplyThread, {
|
|
202
|
+
title: "Replies sent",
|
|
203
|
+
moreNote: ((_ref3 = sentReplies == null ? void 0 : sentReplies.length) != null ? _ref3 : 0) > SENT_REPLIES_LIMIT ? `Showing the ${SENT_REPLIES_LIMIT} most recent. This thread has more.` : null,
|
|
204
|
+
messages: (sentReplies != null ? sentReplies : []).slice(0, SENT_REPLIES_LIMIT).map((reply)=>{
|
|
205
|
+
var _reply_message;
|
|
206
|
+
return {
|
|
207
|
+
id: String(reply.$id),
|
|
208
|
+
atMs: Number(reply.sentAtMs),
|
|
209
|
+
direction: 'out',
|
|
210
|
+
label: `to ${reply.to}`,
|
|
211
|
+
body: String((_reply_message = reply.message) != null ? _reply_message : '')
|
|
212
|
+
};
|
|
216
213
|
})
|
|
217
|
-
})
|
|
218
|
-
(sentReplies == null ? void 0 : sentReplies.length) ? /*#__PURE__*/ _jsxs(Stack, {
|
|
219
|
-
spacing: 1,
|
|
220
|
-
children: [
|
|
221
|
-
/*#__PURE__*/ _jsx(Typography, {
|
|
222
|
-
variant: "overline",
|
|
223
|
-
color: "text.secondary",
|
|
224
|
-
children: 'Replies sent'
|
|
225
|
-
}),
|
|
226
|
-
sentReplies.length > SENT_REPLIES_LIMIT ? /*#__PURE__*/ _jsx(Typography, {
|
|
227
|
-
variant: "caption",
|
|
228
|
-
color: "text.secondary",
|
|
229
|
-
children: `Showing the ${SENT_REPLIES_LIMIT} most recent. This thread has more.`
|
|
230
|
-
}) : null,
|
|
231
|
-
sentReplies.slice(0, SENT_REPLIES_LIMIT).map((reply)=>/*#__PURE__*/ _jsxs(Stack, {
|
|
232
|
-
spacing: 0.25,
|
|
233
|
-
children: [
|
|
234
|
-
/*#__PURE__*/ _jsx(Typography, {
|
|
235
|
-
variant: "caption",
|
|
236
|
-
color: "text.secondary",
|
|
237
|
-
children: `${new Date(reply.sentAtMs).toLocaleString()} · to ${reply.to}`
|
|
238
|
-
}),
|
|
239
|
-
/*#__PURE__*/ _jsx(Typography, {
|
|
240
|
-
variant: "body2",
|
|
241
|
-
sx: {
|
|
242
|
-
whiteSpace: 'pre-wrap',
|
|
243
|
-
wordBreak: 'break-word'
|
|
244
|
-
},
|
|
245
|
-
children: reply.message
|
|
246
|
-
})
|
|
247
|
-
]
|
|
248
|
-
}, reply.$id))
|
|
249
|
-
]
|
|
250
|
-
}) : null
|
|
214
|
+
})
|
|
251
215
|
]
|
|
252
216
|
})
|
|
253
217
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../../libs/plugins/inbox/src/lib/components/submission-reply.component.tsx"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n'use client'\n\n/**\n * The reply composer, inside the submission reader.\n *\n * ## The one sentence this component exists to say\n *\n * \"Replies come back to your email, not here.\" Nothing in this platform\n * receives mail, so a customer who answers reaches the merchant's own\n * mailbox and their answer never appears in the Inbox. A composer that\n * looked like a mail client without saying so would teach a merchant to wait\n * here for a reply that is already sitting somewhere else — which is a worse\n * outcome than not shipping the button.\n *\n * That is also why the sent replies below are labelled as what was sent\n * rather than as a conversation: this list is one-sided by construction.\n */\n\nimport { pluginDocsHelp } from '@aglyn/aglyn/app-utils/docs-help'\nimport { CardDisplay } from '@aglyn/shared-ui-jsx'\nimport { useSnackbar } from '@aglyn/shared-ui-snackstack'\nimport {\n useFirestore,\n useFirestoreCollection,\n useFirestoreDoc,\n useUser,\n} from '@aglyn/tenant-feature-instance'\nimport { authorizedFetch } from '@aglyn/shared-util-http/authorized-token'\nimport { Alert, Box, Button, Stack, TextField, Typography } from '@mui/material'\nimport { collection, doc, limit, orderBy, query } from 'firebase/firestore'\nimport { pluginRecordListDoc } from '@aglyn/aglyn/plugin-manager/plugin-record-lists'\nimport { useCallback, useEffect, useMemo, useState } from 'react'\nimport {\n REPLY_BODY_MAX,\n REPLY_SUBJECT_MAX,\n defaultReplySubject,\n replyRecipient,\n} from '../model/reply-policy'\n\n/** How many past replies the panel lists. A submission answered more than a\n * handful of times is a conversation that belongs in a real mailbox. */\nconst SENT_REPLIES_LIMIT = 10\n\nexport interface SubmissionReplyProps {\n hostId: string\n /** The submission being read, with `$id` and `fields`. */\n submission: { $id: string; fields?: Record<string, unknown>; formName?: string }\n}\n\nexport function SubmissionReply(props: SubmissionReplyProps) {\n const { hostId, submission } = props\n const firestore = useFirestore()\n const { data: user } = useUser()\n const { enqueueSnackbar } = useSnackbar()\n\n /*\n * The site's name leads the default subject, and reading it here rather\n * than on the Inbox page is what keeps it off the mount path: this\n * component exists only while a submission is open, so the read is paid\n * when a merchant asks to reply and not once per visit to the page.\n */\n const { data: host } = useFirestoreDoc<any>(\n () => doc(firestore, 'hosts', hostId),\n [firestore, hostId],\n )\n const siteName = String(host?.displayName ?? host?.subdomain ?? '')\n\n const recipient = useMemo(\n () => replyRecipient(submission?.fields),\n [submission?.fields],\n )\n const canReply = 'email' in recipient\n\n const [subject, setSubject] = useState('')\n const [message, setMessage] = useState('')\n const [busy, setBusy] = useState(false)\n\n // Re-seeded per submission rather than once: the reader dialog keeps this\n // component mounted while the merchant moves between rows, so a subject\n // computed on first mount would carry the previous sender's site into the\n // next reply.\n useEffect(() => {\n setSubject(defaultReplySubject(siteName, submission?.formName))\n setMessage('')\n }, [siteName, submission?.$id, submission?.formName])\n\n const { data: sentReplies } = useFirestoreCollection<any>(\n () => {\n // Kept under the submission they answer: the forms plugin's document,\n // which the list source it publishes hands this plugin (AGL-3080).\n const submissionDoc = submission?.$id\n ? pluginRecordListDoc('formSubmission', firestore, { hostId, id: submission.$id })\n : null\n return submissionDoc\n ? query(\n collection(submissionDoc, 'replies'),\n orderBy('sentAtMs', 'desc'),\n // One past the window, so a thread longer than the cap can say\n // so rather than silently dropping its oldest replies. The probe row\n // is never rendered.\n limit(SENT_REPLIES_LIMIT + 1),\n )\n : null\n },\n [firestore, hostId, submission?.$id],\n { idField: '$id' },\n )\n\n const handleSend = useCallback(async () => {\n if (busy) return\n setBusy(true)\n try {\n const response = await authorizedFetch(user, '/api/inbox/reply', {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify({\n hostId,\n submissionId: submission.$id,\n subject: subject.trim(),\n message: message.trim(),\n }),\n })\n const payload = await response.json().catch(() => ({}))\n if (!response.ok) {\n return void enqueueSnackbar(payload?.error ?? 'The reply was not sent', {\n variant: 'warning',\n allowDuplicate: true,\n })\n }\n setMessage('')\n enqueueSnackbar(`Reply sent to ${payload?.to ?? 'the sender'}`, {\n variant: 'success',\n persist: false,\n })\n } catch {\n enqueueSnackbar('The reply was not sent', {\n variant: 'warning',\n allowDuplicate: true,\n })\n } finally {\n setBusy(false)\n }\n }, [busy, user, hostId, submission?.$id, subject, message, enqueueSnackbar])\n\n if (!canReply) {\n return (\n <Alert severity=\"info\" sx={{ mt: 2 }}>\n {'This submission has no email field, so there is nobody to reply to.'}\n </Alert>\n )\n }\n\n return (\n /*\n * `header`, NOT `title` — the bug class AGL-1140 named and\n * `card-display-header.spec` guards, which this file escaped because that\n * sweep read `apps/console` only. `title` is a valid DOM attribute, so it\n * rides in on `CardProps`, compiles clean and renders a browser tooltip:\n * the card drew with no heading at all, and its content sat against the\n * card's edges because the gutters are opt-in, so inside the submission\n * reader it read as an unexplained lighter slab rather than a section.\n *\n * Outlined for the same reason: this card is nested inside a Dialog, whose\n * own surface is already raised, and a filled card on top of it is the\n * paper-on-paper that made the slab look like a rendering fault. A border\n * says \"section\" without a second background.\n */\n <CardDisplay\n header={'Reply'}\n // A headered card carries help (AGL-2213), and the guard that says so\n // reads `libs/plugins` — which is how a card with the wrong prop, and\n // therefore no header at all, went un-flagged here for so long.\n help={pluginDocsHelp('forms', {\n anchor: '#replying-to-a-submission',\n excerpt:\n 'Answer a submission by email. Replies are transactional — they ' +\n 'add nobody to a list and never touch your campaign allowance.',\n })}\n variant=\"outlined\"\n contentGutterX\n contentGutterY\n contentBordered=\"top\"\n sx={{ mt: 2 }}\n >\n <Stack spacing={2}>\n <Typography variant=\"body2\" color=\"text.secondary\">\n {`To ${(recipient as { email: string }).email}`}\n </Typography>\n <TextField\n label=\"Subject\"\n value={subject}\n onChange={(event) => setSubject(event.target.value.slice(0, REPLY_SUBJECT_MAX))}\n fullWidth\n size=\"small\"\n />\n <TextField\n label=\"Message\"\n value={message}\n onChange={(event) => setMessage(event.target.value.slice(0, REPLY_BODY_MAX))}\n fullWidth\n multiline\n minRows={4}\n placeholder=\"Write your reply. The original message is quoted underneath it.\"\n />\n {/*\n The boundary, stated where the decision is made rather than in a\n docs page nobody opens mid-task. Both halves matter: the address the\n message LEAVES from is the platform's, because per-org sending\n domains do not exist yet, and the address an answer COMES BACK to is\n the merchant's own, which is the only reason the first half is\n tolerable.\n */}\n <Alert severity=\"info\">\n {`Sent from your site's name at this platform's address, with replies ` +\n `directed to ${user?.email ?? 'your account email'}. Answers arrive ` +\n 'in your email, not in this Inbox.'}\n </Alert>\n <Box>\n <Button\n variant=\"contained\"\n disabled={busy || !subject.trim() || !message.trim()}\n onClick={handleSend}\n >\n {busy ? 'Sending…' : 'Send reply'}\n </Button>\n </Box>\n {sentReplies?.length ? (\n <Stack spacing={1}>\n <Typography variant=\"overline\" color=\"text.secondary\">\n {'Replies sent'}\n </Typography>\n {sentReplies.length > SENT_REPLIES_LIMIT ? (\n <Typography variant=\"caption\" color=\"text.secondary\">\n {`Showing the ${SENT_REPLIES_LIMIT} most recent. This thread has more.`}\n </Typography>\n ) : null}\n {sentReplies.slice(0, SENT_REPLIES_LIMIT).map((reply: any) => (\n <Stack key={reply.$id} spacing={0.25}>\n <Typography variant=\"caption\" color=\"text.secondary\">\n {`${new Date(reply.sentAtMs).toLocaleString()} · to ${reply.to}`}\n </Typography>\n <Typography\n variant=\"body2\"\n sx={{ whiteSpace: 'pre-wrap', wordBreak: 'break-word' }}\n >\n {reply.message}\n </Typography>\n </Stack>\n ))}\n </Stack>\n ) : null}\n </Stack>\n </CardDisplay>\n )\n}\nSubmissionReply.displayName = 'SubmissionReply'\n\nexport default SubmissionReply\n"],"names":["pluginDocsHelp","CardDisplay","useSnackbar","useFirestore","useFirestoreCollection","useFirestoreDoc","useUser","authorizedFetch","Alert","Box","Button","Stack","TextField","Typography","collection","doc","limit","orderBy","query","pluginRecordListDoc","useCallback","useEffect","useMemo","useState","REPLY_BODY_MAX","REPLY_SUBJECT_MAX","defaultReplySubject","replyRecipient","SENT_REPLIES_LIMIT","SubmissionReply","props","host","hostId","submission","firestore","data","user","enqueueSnackbar","siteName","String","displayName","subdomain","recipient","fields","canReply","subject","setSubject","message","setMessage","busy","setBusy","formName","$id","sentReplies","submissionDoc","id","idField","handleSend","response","method","headers","body","JSON","stringify","submissionId","trim","payload","json","catch","ok","error","variant","allowDuplicate","to","persist","severity","sx","mt","header","help","anchor","excerpt","contentGutterX","contentGutterY","contentBordered","spacing","color","email","label","value","onChange","event","target","slice","fullWidth","size","multiline","minRows","placeholder","disabled","onClick","length","map","reply","Date","sentAtMs","toLocaleString","whiteSpace","wordBreak"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED;;AAEA;;;;;;;;;;;;;;CAcC,GAED,SAASA,cAAc,QAAQ,mCAAkC;AACjE,SAASC,WAAW,QAAQ,uBAAsB;AAClD,SAASC,WAAW,QAAQ,8BAA6B;AACzD,SACEC,YAAY,EACZC,sBAAsB,EACtBC,eAAe,EACfC,OAAO,QACF,iCAAgC;AACvC,SAASC,eAAe,QAAQ,2CAA0C;AAC1E,SAASC,KAAK,EAAEC,GAAG,EAAEC,MAAM,EAAEC,KAAK,EAAEC,SAAS,EAAEC,UAAU,QAAQ,gBAAe;AAChF,SAASC,UAAU,EAAEC,GAAG,EAAEC,KAAK,EAAEC,OAAO,E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AAA,+BAAAA,YAAagD,MAAM,kBAClB,MAAC1F;oBAAM0E,SAAS;;sCACd,KAACxE;4BAAW0D,SAAQ;4BAAWe,OAAM;sCAClC;;wBAEFjC,YAAYgD,MAAM,GAAGzE,mCACpB,KAACf;4BAAW0D,SAAQ;4BAAUe,OAAM;sCACjC,CAAC,YAAY,EAAE1D,mBAAmB,mCAAmC,CAAC;6BAEvE;wBACHyB,YAAYwC,KAAK,CAAC,GAAGjE,oBAAoB0E,GAAG,CAAC,CAACC,sBAC7C,MAAC5F;gCAAsB0E,SAAS;;kDAC9B,KAACxE;wCAAW0D,SAAQ;wCAAUe,OAAM;kDACjC,GAAG,IAAIkB,KAAKD,MAAME,QAAQ,EAAEC,cAAc,GAAG,MAAM,EAAEH,MAAM9B,EAAE,EAAE;;kDAElE,KAAC5D;wCACC0D,SAAQ;wCACRK,IAAI;4CAAE+B,YAAY;4CAAYC,WAAW;wCAAa;kDAErDL,MAAMxD,OAAO;;;+BARNwD,MAAMnD,GAAG;;qBAavB;;;;AAIZ;AACAvB,gBAAgBW,WAAW,GAAG;AAE9B,eAAeX,gBAAe"}
|
|
1
|
+
{"version":3,"sources":["../../../../../../../libs/plugins/inbox/src/lib/components/submission-reply.component.tsx"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n'use client'\n\n/**\n * The reply composer, inside the submission reader.\n *\n * ## The one sentence this component exists to say\n *\n * \"Replies come back to your email, not here.\" Nothing in this platform\n * receives mail, so a customer who answers reaches the merchant's own\n * mailbox and their answer never appears in the Inbox. A composer that\n * looked like a mail client without saying so would teach a merchant to wait\n * here for a reply that is already sitting somewhere else — which is a worse\n * outcome than not shipping the button.\n *\n * That is also why the sent replies below are labelled as what was sent\n * rather than as a conversation: this list is one-sided by construction.\n */\n\nimport { pluginDocsHelp } from '@aglyn/aglyn/app-utils/docs-help'\nimport { CardDisplay } from '@aglyn/shared-ui-jsx'\nimport { ReplyComposer, ReplyThread } from '@aglyn/shared-ui-jsx/components/reply-composer.component'\nimport { useSnackbar } from '@aglyn/shared-ui-snackstack'\nimport {\n useFirestore,\n useFirestoreCollection,\n useFirestoreDoc,\n useUser,\n} from '@aglyn/tenant-feature-instance'\nimport { authorizedFetch } from '@aglyn/shared-util-http/authorized-token'\nimport { Alert, Stack } from '@mui/material'\nimport { collection, doc, limit, orderBy, query } from 'firebase/firestore'\nimport { pluginRecordListDoc } from '@aglyn/aglyn/plugin-manager/plugin-record-lists'\nimport { useCallback, useEffect, useMemo, useState } from 'react'\nimport {\n REPLY_BODY_MAX,\n REPLY_SUBJECT_MAX,\n defaultReplySubject,\n replyRecipient,\n} from '../model/reply-policy'\n\n/** How many past replies the panel lists. A submission answered more than a\n * handful of times is a conversation that belongs in a real mailbox. */\nconst SENT_REPLIES_LIMIT = 10\n\nexport interface SubmissionReplyProps {\n hostId: string\n /** The submission being read, with `$id` and `fields`. */\n submission: { $id: string; fields?: Record<string, unknown>; formName?: string }\n}\n\nexport function SubmissionReply(props: SubmissionReplyProps) {\n const { hostId, submission } = props\n const firestore = useFirestore()\n const { data: user } = useUser()\n const { enqueueSnackbar } = useSnackbar()\n\n /*\n * The site's name leads the default subject, and reading it here rather\n * than on the Inbox page is what keeps it off the mount path: this\n * component exists only while a submission is open, so the read is paid\n * when a merchant asks to reply and not once per visit to the page.\n */\n const { data: host } = useFirestoreDoc<any>(\n () => doc(firestore, 'hosts', hostId),\n [firestore, hostId],\n )\n const siteName = String(host?.displayName ?? host?.subdomain ?? '')\n\n const recipient = useMemo(\n () => replyRecipient(submission?.fields),\n [submission?.fields],\n )\n const canReply = 'email' in recipient\n\n const [subject, setSubject] = useState('')\n const [message, setMessage] = useState('')\n const [busy, setBusy] = useState(false)\n\n // Re-seeded per submission rather than once: the reader dialog keeps this\n // component mounted while the merchant moves between rows, so a subject\n // computed on first mount would carry the previous sender's site into the\n // next reply.\n useEffect(() => {\n setSubject(defaultReplySubject(siteName, submission?.formName))\n setMessage('')\n }, [siteName, submission?.$id, submission?.formName])\n\n const { data: sentReplies } = useFirestoreCollection<any>(\n () => {\n // Kept under the submission they answer: the forms plugin's document,\n // which the list source it publishes hands this plugin (AGL-3080).\n const submissionDoc = submission?.$id\n ? pluginRecordListDoc('formSubmission', firestore, { hostId, id: submission.$id })\n : null\n return submissionDoc\n ? query(\n collection(submissionDoc, 'replies'),\n orderBy('sentAtMs', 'desc'),\n // One past the window, so a thread longer than the cap can say\n // so rather than silently dropping its oldest replies. The probe row\n // is never rendered.\n limit(SENT_REPLIES_LIMIT + 1),\n )\n : null\n },\n [firestore, hostId, submission?.$id],\n { idField: '$id' },\n )\n\n const handleSend = useCallback(async () => {\n if (busy) return\n setBusy(true)\n try {\n const response = await authorizedFetch(user, '/api/inbox/reply', {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify({\n hostId,\n submissionId: submission.$id,\n subject: subject.trim(),\n message: message.trim(),\n }),\n })\n const payload = await response.json().catch(() => ({}))\n if (!response.ok) {\n return void enqueueSnackbar(payload?.error ?? 'The reply was not sent', {\n variant: 'warning',\n allowDuplicate: true,\n })\n }\n setMessage('')\n enqueueSnackbar(`Reply sent to ${payload?.to ?? 'the sender'}`, {\n variant: 'success',\n persist: false,\n })\n } catch {\n enqueueSnackbar('The reply was not sent', {\n variant: 'warning',\n allowDuplicate: true,\n })\n } finally {\n setBusy(false)\n }\n }, [busy, user, hostId, submission?.$id, subject, message, enqueueSnackbar])\n\n if (!canReply) {\n return (\n <Alert severity=\"info\" sx={{ mt: 2 }}>\n {'This submission has no email field, so there is nobody to reply to.'}\n </Alert>\n )\n }\n\n return (\n /*\n * `header`, NOT `title` — the bug class AGL-1140 named and\n * `card-display-header.spec` guards, which this file escaped because that\n * sweep read `apps/console` only. `title` is a valid DOM attribute, so it\n * rides in on `CardProps`, compiles clean and renders a browser tooltip:\n * the card drew with no heading at all, and its content sat against the\n * card's edges because the gutters are opt-in, so inside the submission\n * reader it read as an unexplained lighter slab rather than a section.\n *\n * Outlined for the same reason: this card is nested inside a Dialog, whose\n * own surface is already raised, and a filled card on top of it is the\n * paper-on-paper that made the slab look like a rendering fault. A border\n * says \"section\" without a second background.\n */\n <CardDisplay\n header={'Reply'}\n // A headered card carries help (AGL-2213), and the guard that says so\n // reads `libs/plugins` — which is how a card with the wrong prop, and\n // therefore no header at all, went un-flagged here for so long.\n help={pluginDocsHelp('forms', {\n anchor: '#replying-to-a-submission',\n excerpt:\n 'Answer a submission by email. Replies are transactional — they ' +\n 'add nobody to a list and never touch your campaign allowance.',\n })}\n variant=\"outlined\"\n contentGutterX\n contentGutterY\n contentBordered=\"top\"\n sx={{ mt: 2 }}\n >\n <Stack spacing={2}>\n {/*\n The composer is shared with a quote's replies (AGL-4207). The note is\n the boundary, stated where the decision is made rather than in a docs\n page nobody opens mid-task: the address the message LEAVES from is the\n site's sending identity, and the address an answer COMES BACK to is the\n merchant's own, because nothing here receives mail.\n */}\n <ReplyComposer\n to={(recipient as { email: string }).email}\n subject={{ value: subject, onChange: setSubject, max: REPLY_SUBJECT_MAX }}\n message={message}\n onMessageChange={setMessage}\n messageMax={REPLY_BODY_MAX}\n messagePlaceholder=\"Write your reply. The original message is quoted underneath it.\"\n note={\n `Sent from your site's name at this platform's address, with replies ` +\n `directed to ${user?.email ?? 'your account email'}. Answers arrive ` +\n 'in your email, not in this Inbox.'\n }\n busy={busy}\n onSend={() => void handleSend()}\n />\n <ReplyThread\n title=\"Replies sent\"\n moreNote={\n (sentReplies?.length ?? 0) > SENT_REPLIES_LIMIT\n ? `Showing the ${SENT_REPLIES_LIMIT} most recent. This thread has more.`\n : null\n }\n messages={(sentReplies ?? []).slice(0, SENT_REPLIES_LIMIT).map((reply: any) => ({\n id: String(reply.$id),\n atMs: Number(reply.sentAtMs),\n direction: 'out' as const,\n label: `to ${reply.to}`,\n body: String(reply.message ?? ''),\n }))}\n />\n </Stack>\n </CardDisplay>\n )\n}\nSubmissionReply.displayName = 'SubmissionReply'\n\nexport default SubmissionReply\n"],"names":["pluginDocsHelp","CardDisplay","ReplyComposer","ReplyThread","useSnackbar","useFirestore","useFirestoreCollection","useFirestoreDoc","useUser","authorizedFetch","Alert","Stack","collection","doc","limit","orderBy","query","pluginRecordListDoc","useCallback","useEffect","useMemo","useState","REPLY_BODY_MAX","REPLY_SUBJECT_MAX","defaultReplySubject","replyRecipient","SENT_REPLIES_LIMIT","SubmissionReply","props","host","hostId","submission","firestore","data","user","enqueueSnackbar","siteName","String","displayName","subdomain","recipient","fields","canReply","subject","setSubject","message","setMessage","busy","setBusy","formName","$id","sentReplies","submissionDoc","id","idField","handleSend","response","method","headers","body","JSON","stringify","submissionId","trim","payload","json","catch","ok","error","variant","allowDuplicate","to","persist","severity","sx","mt","header","help","anchor","excerpt","contentGutterX","contentGutterY","contentBordered","spacing","email","value","onChange","max","onMessageChange","messageMax","messagePlaceholder","note","onSend","title","moreNote","length","messages","slice","map","reply","atMs","Number","sentAtMs","direction","label"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED;;AAEA;;;;;;;;;;;;;;CAcC,GAED,SAASA,cAAc,QAAQ,mCAAkC;AACjE,SAASC,WAAW,QAAQ,uBAAsB;AAClD,SAASC,aAAa,EAAEC,WAAW,QAAQ,2DAA0D;AACrG,SAASC,WAAW,QAAQ,8BAA6B;AACzD,SACEC,YAAY,EACZC,sBAAsB,EACtBC,eAAe,EACfC,OAAO,QACF,iCAAgC;AACvC,SAASC,eAAe,QAAQ,2CAA0C;AAC1E,SAASC,KAAK,EAAEC,KAAK,QAAQ,gBAAe;AAC5C,SAASC,UAAU,EAAEC,GAAG,EAAE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