@prenta/admin 2.14.0 → 2.14.2
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/CHANGELOG.md +12 -0
- package/design-system/tokens.css +17 -2
- package/design-system/tokens.json +37 -2
- package/design-system/tokens.scss +11 -2
- package/design-system/tokens.tailwind.cjs +1 -0
- package/dist/__tests__/styles/qa-contrast.test.js +16 -9
- package/dist/__tests__/styles/qa-contrast.test.js.map +1 -1
- package/dist/__tests__/views/form-editor.render.test.js +20 -0
- package/dist/__tests__/views/form-editor.render.test.js.map +1 -1
- package/dist/__tests__/views/inbox-format.test.js +1 -1
- package/dist/__tests__/views/inbox-format.test.js.map +1 -1
- package/dist/components/CoauthorResultPopover.js +1 -1
- package/dist/components/CoauthorResultPopover.js.map +1 -1
- package/dist/components/CommentSidePanel.js +3 -3
- package/dist/components/CommentSidePanel.js.map +1 -1
- package/dist/components/forms/BlocklistDialog.d.ts.map +1 -1
- package/dist/components/forms/BlocklistDialog.js +2 -1
- package/dist/components/forms/BlocklistDialog.js.map +1 -1
- package/dist/components/forms/FormsListTable.d.ts.map +1 -1
- package/dist/components/forms/FormsListTable.js +6 -2
- package/dist/components/forms/FormsListTable.js.map +1 -1
- package/dist/components/forms/primitives.js +1 -1
- package/dist/components/seo/primitives.js +1 -1
- package/dist/components/ui/AuthorAvatar.js +1 -1
- package/dist/components/ui/AuthorAvatar.js.map +1 -1
- package/dist/components/ui/EmptyState.js +1 -1
- package/dist/components/ui/UnderlineTabs.d.ts +3 -1
- package/dist/components/ui/UnderlineTabs.d.ts.map +1 -1
- package/dist/components/ui/UnderlineTabs.js +6 -4
- package/dist/components/ui/UnderlineTabs.js.map +1 -1
- package/dist/prenta-admin.css +1 -1
- package/dist/views/FormEditor.d.ts.map +1 -1
- package/dist/views/FormEditor.js +18 -14
- package/dist/views/FormEditor.js.map +1 -1
- package/dist/views/Forms.d.ts.map +1 -1
- package/dist/views/Forms.js +2 -1
- package/dist/views/Forms.js.map +1 -1
- package/dist/views/FormsSettings.d.ts.map +1 -1
- package/dist/views/FormsSettings.js +23 -14
- package/dist/views/FormsSettings.js.map +1 -1
- package/dist/views/Login.d.ts.map +1 -1
- package/dist/views/Login.js +3 -3
- package/dist/views/Login.js.map +1 -1
- package/dist/views/MediaBrowser.js +2 -2
- package/dist/views/ResetPassword.js +1 -1
- package/dist/views/ResetPassword.js.map +1 -1
- package/dist/views/SetupWizard.js +1 -1
- package/dist/views/SetupWizard.js.map +1 -1
- package/dist/views/Users.d.ts.map +1 -1
- package/dist/views/Users.js +8 -27
- package/dist/views/Users.js.map +1 -1
- package/dist/views/entries/EntriesInbox.js +6 -6
- package/dist/views/entries/EntriesInbox.js.map +1 -1
- package/dist/views/entries/inbox-format.d.ts +1 -1
- package/dist/views/entries/inbox-format.d.ts.map +1 -1
- package/dist/views/entries/inbox-format.js +3 -4
- package/dist/views/entries/inbox-format.js.map +1 -1
- package/dist/views/page-editor/sections/SectionRenderer.js +1 -1
- package/dist/views/page-editor/sections/SectionRenderer.js.map +1 -1
- package/dist/views/settings/BrandVoiceCard.d.ts.map +1 -1
- package/dist/views/settings/BrandVoiceCard.js +1 -1
- package/dist/views/settings/BrandVoiceCard.js.map +1 -1
- package/dist/views/settings/UpdatesTab.js +1 -1
- package/dist/views/settings/UpdatesTab.js.map +1 -1
- package/dist/views/settings/brand-voice/BrandVoiceRulesSections.d.ts.map +1 -1
- package/dist/views/settings/brand-voice/BrandVoiceRulesSections.js +5 -4
- package/dist/views/settings/brand-voice/BrandVoiceRulesSections.js.map +1 -1
- package/package.json +5 -5
- package/src/__tests__/styles/qa-contrast.test.ts +30 -8
- package/src/__tests__/views/form-editor.render.test.tsx +25 -0
- package/src/__tests__/views/inbox-format.test.ts +1 -1
- package/src/components/CoauthorResultPopover.tsx +1 -1
- package/src/components/CommentSidePanel.tsx +3 -3
- package/src/components/forms/BlocklistDialog.tsx +3 -2
- package/src/components/forms/FormsListTable.tsx +9 -3
- package/src/components/forms/primitives.tsx +1 -1
- package/src/components/seo/primitives.tsx +1 -1
- package/src/components/ui/AuthorAvatar.tsx +1 -1
- package/src/components/ui/EmptyState.tsx +1 -1
- package/src/components/ui/UnderlineTabs.tsx +14 -2
- package/src/styles/prenta-tokens.css +17 -2
- package/src/views/FormEditor.tsx +126 -100
- package/src/views/Forms.tsx +3 -3
- package/src/views/FormsSettings.tsx +48 -15
- package/src/views/Login.tsx +5 -4
- package/src/views/MediaBrowser.tsx +4 -4
- package/src/views/ResetPassword.tsx +2 -2
- package/src/views/SetupWizard.tsx +2 -2
- package/src/views/Users.tsx +21 -38
- package/src/views/entries/EntriesInbox.tsx +6 -6
- package/src/views/entries/inbox-format.ts +3 -6
- package/src/views/page-editor/sections/SectionRenderer.tsx +2 -2
- package/src/views/settings/BrandVoiceCard.tsx +1 -0
- package/src/views/settings/UpdatesTab.tsx +1 -1
- package/src/views/settings/brand-voice/BrandVoiceRulesSections.tsx +26 -4
|
@@ -148,8 +148,8 @@ export function ResetPassword({ onNavigate, token }: ResetPasswordProps) {
|
|
|
148
148
|
<button
|
|
149
149
|
type="button"
|
|
150
150
|
onClick={() => setShowPassword(!showPassword)}
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
aria-label={showPassword ? 'Hide password' : 'Show password'}
|
|
152
|
+
className="text-muted-foreground hover:text-foreground absolute top-1/2 right-2 flex h-6 w-6 -translate-y-1/2 items-center justify-center"
|
|
153
153
|
>
|
|
154
154
|
{showPassword ? <EyeOff className="h-4 w-4" /> : <Eye className="h-4 w-4" />}
|
|
155
155
|
</button>
|
|
@@ -175,8 +175,8 @@ export function SetupWizard({ onComplete, siteName = 'Prenta CMS' }: SetupWizard
|
|
|
175
175
|
<button
|
|
176
176
|
type="button"
|
|
177
177
|
onClick={() => setShowPassword(!showPassword)}
|
|
178
|
-
|
|
179
|
-
|
|
178
|
+
aria-label={showPassword ? 'Hide password' : 'Show password'}
|
|
179
|
+
className="text-muted-foreground hover:text-foreground absolute top-1/2 right-2 flex h-6 w-6 -translate-y-1/2 items-center justify-center"
|
|
180
180
|
>
|
|
181
181
|
{showPassword ? <EyeOff className="h-4 w-4" /> : <Eye className="h-4 w-4" />}
|
|
182
182
|
</button>
|
package/src/views/Users.tsx
CHANGED
|
@@ -27,6 +27,7 @@ import { toast } from 'sonner'
|
|
|
27
27
|
import { parseRouteQuery } from '../router/index.js'
|
|
28
28
|
import { useApiData } from '../lib/useApiData.js'
|
|
29
29
|
import { cmsApi } from '../lib/api.js'
|
|
30
|
+
import { authorAvatar } from '../components/ui/AuthorAvatar.js'
|
|
30
31
|
import { Button } from '../components/ui/Button.js'
|
|
31
32
|
import { EmptyState } from '../components/ui/EmptyState.js'
|
|
32
33
|
import { FilterPill } from '../components/ui/FilterPill.js'
|
|
@@ -110,8 +111,8 @@ interface Row {
|
|
|
110
111
|
// ---------------------------------------------------------------------------
|
|
111
112
|
|
|
112
113
|
const ROLE_PILL: Record<string, string> = {
|
|
113
|
-
Owner: 'bg-
|
|
114
|
-
Admin: 'bg-info
|
|
114
|
+
Owner: 'bg-acc-l text-acc',
|
|
115
|
+
Admin: 'bg-info-l text-info',
|
|
115
116
|
Editor: 'bg-accent text-accent-foreground',
|
|
116
117
|
Viewer: 'bg-muted text-muted-foreground',
|
|
117
118
|
}
|
|
@@ -132,8 +133,6 @@ const SEVERITY_DOT: Record<ApiRecommendation['severity'], string> = {
|
|
|
132
133
|
low: 'bg-info',
|
|
133
134
|
}
|
|
134
135
|
|
|
135
|
-
const AVATAR_TINTS = ['bg-chart-1', 'bg-chart-2', 'bg-chart-3', 'bg-chart-4', 'bg-chart-5'] as const
|
|
136
|
-
|
|
137
136
|
interface RoleOption {
|
|
138
137
|
value: string
|
|
139
138
|
label: string
|
|
@@ -164,12 +163,6 @@ const OWNER_ROLE_OPTION: RoleOption = {
|
|
|
164
163
|
// Helpers
|
|
165
164
|
// ---------------------------------------------------------------------------
|
|
166
165
|
|
|
167
|
-
function avatarTint(id: string): string {
|
|
168
|
-
let h = 0
|
|
169
|
-
for (let i = 0; i < id.length; i++) h = (h * 31 + id.charCodeAt(i)) >>> 0
|
|
170
|
-
return AVATAR_TINTS[h % AVATAR_TINTS.length]!
|
|
171
|
-
}
|
|
172
|
-
|
|
173
166
|
function relativeTime(iso: string | null): string {
|
|
174
167
|
if (!iso) return 'Never'
|
|
175
168
|
const then = new Date(iso).getTime()
|
|
@@ -279,7 +272,7 @@ function AccessReviewBanner({
|
|
|
279
272
|
<div className="min-w-0 flex-1">
|
|
280
273
|
<div className="flex items-center gap-2">
|
|
281
274
|
<span className="text-card-foreground text-sm font-medium">{top.title}</span>
|
|
282
|
-
<span className="bg-
|
|
275
|
+
<span className="bg-acc-l text-acc inline-flex items-center gap-1 rounded-full px-1.5 py-0.5 text-[10px] font-medium">
|
|
283
276
|
<Sparkles size={10} aria-hidden />
|
|
284
277
|
AI
|
|
285
278
|
</span>
|
|
@@ -319,7 +312,8 @@ function AccessReviewBanner({
|
|
|
319
312
|
function Avatar({ row }: { row: Row }) {
|
|
320
313
|
return (
|
|
321
314
|
<span
|
|
322
|
-
className=
|
|
315
|
+
className="flex h-9 w-9 shrink-0 items-center justify-center rounded-full text-xs font-medium"
|
|
316
|
+
style={{ background: authorAvatar(row.name).color, color: 'var(--on-avatar)' }}
|
|
323
317
|
aria-hidden
|
|
324
318
|
>
|
|
325
319
|
{row.initials}
|
|
@@ -353,7 +347,7 @@ function RoleDropdown({
|
|
|
353
347
|
<DropdownMenu.Trigger asChild>
|
|
354
348
|
<button
|
|
355
349
|
type="button"
|
|
356
|
-
className={`inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-medium
|
|
350
|
+
className={`inline-flex min-h-6 items-center gap-1 rounded-full px-2 py-0.5 text-xs font-medium ${pill}`}
|
|
357
351
|
aria-label={`Change role for ${row.name}, current role ${row.roleName}`}
|
|
358
352
|
>
|
|
359
353
|
{row.roleName}
|
|
@@ -1054,27 +1048,24 @@ export function Users({ embedded = false, currentPath }: UsersProps = {}) {
|
|
|
1054
1048
|
className={`hover:bg-accent/30 transition-colors ${
|
|
1055
1049
|
isInvite ? '' : 'cursor-pointer'
|
|
1056
1050
|
}`}
|
|
1057
|
-
{
|
|
1058
|
-
? {}
|
|
1059
|
-
: {
|
|
1060
|
-
role: 'button',
|
|
1061
|
-
tabIndex: 0,
|
|
1062
|
-
'aria-label': `Open details for ${row.name}`,
|
|
1063
|
-
onClick: openDetail,
|
|
1064
|
-
onKeyDown: (e: React.KeyboardEvent) => {
|
|
1065
|
-
if (e.key === 'Enter' || e.key === ' ') {
|
|
1066
|
-
e.preventDefault()
|
|
1067
|
-
openDetail()
|
|
1068
|
-
}
|
|
1069
|
-
},
|
|
1070
|
-
})}
|
|
1051
|
+
onClick={isInvite ? undefined : openDetail}
|
|
1071
1052
|
>
|
|
1072
1053
|
<td className="px-4 py-3">
|
|
1073
1054
|
<div className="flex items-center gap-3">
|
|
1074
1055
|
<Avatar row={row} />
|
|
1075
1056
|
<div className="min-w-0">
|
|
1076
1057
|
<div className="text-card-foreground flex items-center gap-1.5 text-sm font-medium">
|
|
1077
|
-
|
|
1058
|
+
{isInvite ? (
|
|
1059
|
+
<span className="truncate">{row.name}</span>
|
|
1060
|
+
) : (
|
|
1061
|
+
<button
|
|
1062
|
+
type="button"
|
|
1063
|
+
className="min-h-6 truncate text-left"
|
|
1064
|
+
aria-label={`Open details for ${row.name}`}
|
|
1065
|
+
>
|
|
1066
|
+
{row.name}
|
|
1067
|
+
</button>
|
|
1068
|
+
)}
|
|
1078
1069
|
{row.isCurrentUser && (
|
|
1079
1070
|
<span className="bg-muted text-muted-foreground rounded px-1 text-[10px]">
|
|
1080
1071
|
You
|
|
@@ -1092,11 +1083,7 @@ export function Users({ embedded = false, currentPath }: UsersProps = {}) {
|
|
|
1092
1083
|
</div>
|
|
1093
1084
|
</div>
|
|
1094
1085
|
</td>
|
|
1095
|
-
<td
|
|
1096
|
-
className="px-4 py-3"
|
|
1097
|
-
onClick={(e) => e.stopPropagation()}
|
|
1098
|
-
role="presentation"
|
|
1099
|
-
>
|
|
1086
|
+
<td className="px-4 py-3" onClick={(e) => e.stopPropagation()}>
|
|
1100
1087
|
<RoleDropdown
|
|
1101
1088
|
row={row}
|
|
1102
1089
|
options={roleOptions}
|
|
@@ -1112,11 +1099,7 @@ export function Users({ embedded = false, currentPath }: UsersProps = {}) {
|
|
|
1112
1099
|
? `Invited ${relativeTime(row.activityAt)}`
|
|
1113
1100
|
: relativeTime(row.activityAt)}
|
|
1114
1101
|
</td>
|
|
1115
|
-
<td
|
|
1116
|
-
className="px-4 py-3 text-right"
|
|
1117
|
-
onClick={(e) => e.stopPropagation()}
|
|
1118
|
-
role="presentation"
|
|
1119
|
-
>
|
|
1102
|
+
<td className="px-4 py-3 text-right" onClick={(e) => e.stopPropagation()}>
|
|
1120
1103
|
<RowActions
|
|
1121
1104
|
row={row}
|
|
1122
1105
|
isInvite={isInvite}
|
|
@@ -1774,7 +1774,7 @@ function EntryRow({
|
|
|
1774
1774
|
{compact ? null : (
|
|
1775
1775
|
<span
|
|
1776
1776
|
className="relative flex size-8 items-center justify-center rounded-full text-[12px] font-bold"
|
|
1777
|
-
style={{ background: avatarColor(name), color: 'var(--on-
|
|
1777
|
+
style={{ background: avatarColor(name), color: 'var(--on-avatar)' }}
|
|
1778
1778
|
>
|
|
1779
1779
|
{initials(name)}
|
|
1780
1780
|
{entry.unread ? (
|
|
@@ -1877,7 +1877,7 @@ function EntryRow({
|
|
|
1877
1877
|
{entry.spamStatus !== 'spam' && !entry.partial && assignee ? (
|
|
1878
1878
|
<span
|
|
1879
1879
|
className="inline-flex size-[18px] shrink-0 items-center justify-center rounded-full text-[8px] font-bold tracking-[-0.2px]"
|
|
1880
|
-
style={{ background: avatarColor(assignee.name), color: 'var(--on-
|
|
1880
|
+
style={{ background: avatarColor(assignee.name), color: 'var(--on-avatar)' }}
|
|
1881
1881
|
title={assignee.name}
|
|
1882
1882
|
>
|
|
1883
1883
|
{initials(assignee.name)}
|
|
@@ -2356,7 +2356,7 @@ function EntryDetail({
|
|
|
2356
2356
|
<div className={`flex items-start gap-4 max-[640px]:flex-wrap ${msgEntry ? 'mb-6' : ''}`}>
|
|
2357
2357
|
<span
|
|
2358
2358
|
className="flex size-[52px] shrink-0 items-center justify-center rounded-full text-[18px] font-bold"
|
|
2359
|
-
style={{ background: avatarColor(name), color: 'var(--on-
|
|
2359
|
+
style={{ background: avatarColor(name), color: 'var(--on-avatar)' }}
|
|
2360
2360
|
>
|
|
2361
2361
|
{initials(name)}
|
|
2362
2362
|
</span>
|
|
@@ -2482,7 +2482,7 @@ function EntryDetail({
|
|
|
2482
2482
|
{assignee ? (
|
|
2483
2483
|
<span
|
|
2484
2484
|
className="inline-flex size-[22px] shrink-0 items-center justify-center rounded-full text-[9.5px] font-bold tracking-[-0.2px]"
|
|
2485
|
-
style={{ background: avatarColor(assignee.name), color: 'var(--on-
|
|
2485
|
+
style={{ background: avatarColor(assignee.name), color: 'var(--on-avatar)' }}
|
|
2486
2486
|
title={assignee.name}
|
|
2487
2487
|
>
|
|
2488
2488
|
{initials(assignee.name)}
|
|
@@ -2705,7 +2705,7 @@ function EntryDetail({
|
|
|
2705
2705
|
<div key={idx} className="flex gap-2.5">
|
|
2706
2706
|
<span
|
|
2707
2707
|
className="flex size-[26px] shrink-0 items-center justify-center rounded-full text-[11px] font-bold"
|
|
2708
|
-
style={{ background: avatarColor(author), color: 'var(--on-
|
|
2708
|
+
style={{ background: avatarColor(author), color: 'var(--on-avatar)' }}
|
|
2709
2709
|
>
|
|
2710
2710
|
{initials(author)}
|
|
2711
2711
|
</span>
|
|
@@ -2729,7 +2729,7 @@ function EntryDetail({
|
|
|
2729
2729
|
<div className="border-bdr flex gap-2.5 border-t pt-3">
|
|
2730
2730
|
<span
|
|
2731
2731
|
className="flex size-[26px] shrink-0 items-center justify-center rounded-full text-[11px] font-bold"
|
|
2732
|
-
style={{ background: avatarColor(currentUserName), color: 'var(--on-
|
|
2732
|
+
style={{ background: avatarColor(currentUserName), color: 'var(--on-avatar)' }}
|
|
2733
2733
|
>
|
|
2734
2734
|
{initials(currentUserName)}
|
|
2735
2735
|
</span>
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import type { FormSubmission } from '@prenta/core'
|
|
2
|
+
import { authorAvatar } from '../../components/ui/AuthorAvatar.js'
|
|
2
3
|
|
|
3
4
|
/** Group labels, newest first, in the viewer's timezone (SPEC §3). */
|
|
4
5
|
const ENTRY_GROUPS = ['Today', 'Yesterday', 'Earlier this week', 'This month', 'Older'] as const
|
|
5
6
|
|
|
6
7
|
export type EntryGroup = (typeof ENTRY_GROUPS)[number]
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/** A stable avatar colour from the sender's name. */
|
|
9
|
+
/** Reuse the shared, contrast-tested avatar palette in every inbox state. */
|
|
11
10
|
export function avatarColor(name: string): string {
|
|
12
|
-
|
|
13
|
-
AV_HUES[[...(name || '?')].reduce((sum, char) => sum + char.charCodeAt(0), 0) % AV_HUES.length]
|
|
14
|
-
return `hsl(${hue} 55% 38%)`
|
|
11
|
+
return authorAvatar(name).color
|
|
15
12
|
}
|
|
16
13
|
|
|
17
14
|
export function initials(name: string): string {
|
|
@@ -249,7 +249,7 @@ export function SectionRenderer({
|
|
|
249
249
|
}
|
|
250
250
|
>
|
|
251
251
|
{interactive && selected && (
|
|
252
|
-
<span className="bg-brand pointer-events-none absolute top-0 left-0 z-10 rounded-br-md px-2 py-0.5 text-xs font-medium
|
|
252
|
+
<span className="bg-brand text-primary-foreground pointer-events-none absolute top-0 left-0 z-10 rounded-br-md px-2 py-0.5 text-xs font-medium">
|
|
253
253
|
{section.name}
|
|
254
254
|
</span>
|
|
255
255
|
)}
|
|
@@ -262,7 +262,7 @@ export function SectionRenderer({
|
|
|
262
262
|
</span>
|
|
263
263
|
)}
|
|
264
264
|
{chromed && hidden && (
|
|
265
|
-
<span className="bg-foreground pointer-events-none absolute top-0 right-0 z-10 rounded-bl-md px-2 py-0.5 text-xs font-medium
|
|
265
|
+
<span className="bg-foreground text-background pointer-events-none absolute top-0 right-0 z-10 rounded-bl-md px-2 py-0.5 text-xs font-medium">
|
|
266
266
|
Hidden
|
|
267
267
|
</span>
|
|
268
268
|
)}
|
|
@@ -477,7 +477,7 @@ export function UpdatesTab({ role }: UpdatesTabProps) {
|
|
|
477
477
|
href="https://github.com/settings/tokens"
|
|
478
478
|
target="_blank"
|
|
479
479
|
rel="noopener noreferrer"
|
|
480
|
-
className="text-brand
|
|
480
|
+
className="text-brand underline underline-offset-2"
|
|
481
481
|
>
|
|
482
482
|
github.com/settings/tokens
|
|
483
483
|
</a>
|
|
@@ -27,6 +27,7 @@ export function BrandVoiceRulesSections({
|
|
|
27
27
|
disabled: boolean
|
|
28
28
|
onChange: (next: BrandVoiceStructuredProfile) => void
|
|
29
29
|
}) {
|
|
30
|
+
const channelId = useId()
|
|
30
31
|
const preferredId = useId()
|
|
31
32
|
const patternId = useId()
|
|
32
33
|
|
|
@@ -177,8 +178,14 @@ export function BrandVoiceRulesSections({
|
|
|
177
178
|
{channel.id === 'google_ads' ? (
|
|
178
179
|
<>
|
|
179
180
|
<div>
|
|
180
|
-
<label
|
|
181
|
+
<label
|
|
182
|
+
htmlFor={`${channelId}-${channel.id}-headline`}
|
|
183
|
+
className={LABEL_CLASS}
|
|
184
|
+
>
|
|
185
|
+
Max headline chars
|
|
186
|
+
</label>
|
|
181
187
|
<input
|
|
188
|
+
id={`${channelId}-${channel.id}-headline`}
|
|
182
189
|
type="number"
|
|
183
190
|
min={1}
|
|
184
191
|
disabled={disabled}
|
|
@@ -192,8 +199,14 @@ export function BrandVoiceRulesSections({
|
|
|
192
199
|
/>
|
|
193
200
|
</div>
|
|
194
201
|
<div>
|
|
195
|
-
<label
|
|
202
|
+
<label
|
|
203
|
+
htmlFor={`${channelId}-${channel.id}-description`}
|
|
204
|
+
className={LABEL_CLASS}
|
|
205
|
+
>
|
|
206
|
+
Max description chars
|
|
207
|
+
</label>
|
|
196
208
|
<input
|
|
209
|
+
id={`${channelId}-${channel.id}-description`}
|
|
197
210
|
type="number"
|
|
198
211
|
min={1}
|
|
199
212
|
disabled={disabled}
|
|
@@ -211,8 +224,14 @@ export function BrandVoiceRulesSections({
|
|
|
211
224
|
</>
|
|
212
225
|
) : (
|
|
213
226
|
<div>
|
|
214
|
-
<label
|
|
227
|
+
<label
|
|
228
|
+
htmlFor={`${channelId}-${channel.id}-characters`}
|
|
229
|
+
className={LABEL_CLASS}
|
|
230
|
+
>
|
|
231
|
+
Max characters
|
|
232
|
+
</label>
|
|
215
233
|
<input
|
|
234
|
+
id={`${channelId}-${channel.id}-characters`}
|
|
216
235
|
type="number"
|
|
217
236
|
min={1}
|
|
218
237
|
disabled={disabled}
|
|
@@ -227,8 +246,11 @@ export function BrandVoiceRulesSections({
|
|
|
227
246
|
</div>
|
|
228
247
|
)}
|
|
229
248
|
<div className={channel.id === 'google_ads' ? 'md:col-span-1' : 'md:col-span-2'}>
|
|
230
|
-
<label className={LABEL_CLASS}>
|
|
249
|
+
<label htmlFor={`${channelId}-${channel.id}-note`} className={LABEL_CLASS}>
|
|
250
|
+
Note
|
|
251
|
+
</label>
|
|
231
252
|
<input
|
|
253
|
+
id={`${channelId}-${channel.id}-note`}
|
|
232
254
|
type="text"
|
|
233
255
|
disabled={disabled}
|
|
234
256
|
value={channel.note ?? ''}
|