feat(settings): restore From-header preview block under SMTP transport JSON

Brings back the second pre-block I dropped when consolidating the
preview. The transport JSON shows what's handed to nodemailer
createTransport; the From-header block shows the rendered envelope
recipients will see — they answer different questions and both belong.

Conditioned on systemEmailAddress so empty configs don't render an
empty pre.
This commit is contained in:
gorkem-bwl committed 2026-04-29 15:33:15 -04:00
1 parent e71892d0bc
commit e11553c218
1 file changed
+18
+18
View File
@@ -586,6 +586,7 @@ export const SettingsPage = () => {
const from = const from =
displayName && address ? { name: displayName, address } : address; displayName && address ? { name: displayName, address } : address;
return ( return (
<>
<Box <Box
component="pre" component="pre"
p={2} p={2}
@@ -622,6 +623,23 @@ export const SettingsPage = () => {
)} )}
</code> </code>
</Box> </Box>
{address && (
<Box
component="pre"
p={2}
borderRadius={theme.shape.borderRadius}
bgcolor={theme.palette.action.hover}
sx={{
fontFamily: theme.typography.fontFamilyMonospace,
overflow: "auto",
}}
>
<code>
{`From: ${displayName ? `"${displayName}" <${address}>` : address}`}
</code>
</Box>
)}
</>
); );
})()} })()}
</Stack> </Stack>