Improve SMS settings layout and add send-modal variable chips.

Credit/usage divider, total row plus typed counts grid, and insertable template vars on compose.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-09-09 11:37:35 +03:30
co-authored by Cursor
parent dbc17b2589
commit 29a190f02a
5 changed files with 178 additions and 43 deletions
+23 -22
View File
@@ -2173,29 +2173,30 @@ export function BusinessesPage() {
{(smsSettingsBusiness?.smsSentCount ?? 0).toLocaleString('en-US')}
</strong>
</div>
{(
[
['Mass send', smsSettingsBusiness?.smsSentByType?.mass],
['Singular', smsSettingsBusiness?.smsSentByType?.singular],
['Auth service', smsSettingsBusiness?.smsSentByType?.auth],
<div className={styles.smsSentTypesRow}>
{(
[
'Auto customer',
smsSettingsBusiness?.smsSentByType?.autoCustomer,
],
['Admin notification', smsSettingsBusiness?.smsSentByType?.admin],
] as const
).map(([label, value]) => (
<div
key={label}
className={`${styles.dataRow} ${styles.dataRowNeutral}`}
role="status"
>
<span className={styles.dataRowLabel}>{label}</span>
<strong className={styles.dataRowValue}>
{(value ?? 0).toLocaleString('en-US')}
</strong>
</div>
))}
['Mass send', smsSettingsBusiness?.smsSentByType?.mass],
['Singular', smsSettingsBusiness?.smsSentByType?.singular],
['Auth service', smsSettingsBusiness?.smsSentByType?.auth],
[
'Auto customer',
smsSettingsBusiness?.smsSentByType?.autoCustomer,
],
[
'Admin notification',
smsSettingsBusiness?.smsSentByType?.admin,
],
] as const
).map(([label, value]) => (
<div key={label} className={styles.smsSentTypeCell} role="status">
<span className={styles.smsSentTypeLabel}>{label}</span>
<strong className={styles.smsSentTypeValue}>
{(value ?? 0).toLocaleString('en-US')}
</strong>
</div>
))}
</div>
</div>
<p className={styles.helperText}>
Lifetime messages billed (one per recipient), split by type. Auto customer and