@prenta/admin 2.9.1 → 2.9.3
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 +20 -0
- package/design-system/tokens.css +2 -1
- package/design-system/tokens.json +5 -1
- package/design-system/tokens.scss +1 -1
- package/dist/__tests__/components/comment-mark.test.js +1 -1
- package/dist/__tests__/components/comment-mark.test.js.map +1 -1
- package/dist/__tests__/components/qa-a11y.render.test.d.ts +2 -0
- package/dist/__tests__/components/qa-a11y.render.test.d.ts.map +1 -0
- package/dist/__tests__/components/qa-a11y.render.test.js +46 -0
- package/dist/__tests__/components/qa-a11y.render.test.js.map +1 -0
- package/dist/__tests__/components/responsive-tiers.render.test.js +12 -0
- package/dist/__tests__/components/responsive-tiers.render.test.js.map +1 -1
- package/dist/__tests__/components/ui-primitives.test.js +7 -0
- package/dist/__tests__/components/ui-primitives.test.js.map +1 -1
- package/dist/__tests__/layout/shell-nav.render.test.js +5 -0
- package/dist/__tests__/layout/shell-nav.render.test.js.map +1 -1
- package/dist/__tests__/styles/qa-contrast.test.d.ts +2 -0
- package/dist/__tests__/styles/qa-contrast.test.d.ts.map +1 -0
- package/dist/__tests__/styles/qa-contrast.test.js +78 -0
- package/dist/__tests__/styles/qa-contrast.test.js.map +1 -0
- package/dist/__tests__/views/ai-settings.render.test.js +21 -0
- package/dist/__tests__/views/ai-settings.render.test.js.map +1 -1
- package/dist/__tests__/views/appearance-chrome.render.test.js +9 -0
- package/dist/__tests__/views/appearance-chrome.render.test.js.map +1 -1
- package/dist/__tests__/views/jobs-list.render.test.js +2 -0
- package/dist/__tests__/views/jobs-list.render.test.js.map +1 -1
- package/dist/__tests__/views/run-with-ai.render.test.js +9 -0
- package/dist/__tests__/views/run-with-ai.render.test.js.map +1 -1
- package/dist/__tests__/views/script-tags.render.test.js +8 -0
- package/dist/__tests__/views/script-tags.render.test.js.map +1 -1
- package/dist/__tests__/views/settings-tabs.render.test.js +5 -0
- package/dist/__tests__/views/settings-tabs.render.test.js.map +1 -1
- package/dist/components/AICoauthorBubbleMenu.d.ts.map +1 -1
- package/dist/components/AICoauthorBubbleMenu.js +2 -2
- package/dist/components/AICoauthorBubbleMenu.js.map +1 -1
- package/dist/components/SEOConfigPanel.js +2 -2
- package/dist/components/SEOConfigPanel.js.map +1 -1
- package/dist/components/TipTapEditor.d.ts.map +1 -1
- package/dist/components/TipTapEditor.js +12 -8
- package/dist/components/TipTapEditor.js.map +1 -1
- package/dist/components/forms/EntriesTable.d.ts.map +1 -1
- package/dist/components/forms/EntriesTable.js +1 -1
- package/dist/components/forms/EntriesTable.js.map +1 -1
- package/dist/components/seo/PageAuditPanel.js +2 -2
- package/dist/components/seo/PageAuditPanel.js.map +1 -1
- package/dist/components/seo/primitives.d.ts +1 -1
- package/dist/components/seo/primitives.d.ts.map +1 -1
- package/dist/components/seo/primitives.js +10 -1
- package/dist/components/seo/primitives.js.map +1 -1
- package/dist/components/ui/FilterPill.d.ts.map +1 -1
- package/dist/components/ui/FilterPill.js +2 -2
- package/dist/components/ui/FilterPill.js.map +1 -1
- package/dist/components/ui/PageHeader.d.ts +7 -1
- package/dist/components/ui/PageHeader.d.ts.map +1 -1
- package/dist/components/ui/PageHeader.js +4 -2
- package/dist/components/ui/PageHeader.js.map +1 -1
- package/dist/layout/Sidebar.d.ts.map +1 -1
- package/dist/layout/Sidebar.js +4 -1
- package/dist/layout/Sidebar.js.map +1 -1
- package/dist/lib/collaboration-provider.d.ts +1 -1
- package/dist/lib/collaboration-provider.d.ts.map +1 -1
- package/dist/lib/collaboration-provider.js +1 -1
- package/dist/lib/collaboration-provider.js.map +1 -1
- package/dist/prenta-admin.css +1 -1
- package/dist/views/Jobs.d.ts.map +1 -1
- package/dist/views/Jobs.js +1 -1
- package/dist/views/Jobs.js.map +1 -1
- package/dist/views/MediaBrowser.d.ts.map +1 -1
- package/dist/views/MediaBrowser.js +5 -1
- package/dist/views/MediaBrowser.js.map +1 -1
- package/dist/views/Pages/PagesListView.js +1 -1
- package/dist/views/Pages/PagesListView.js.map +1 -1
- package/dist/views/Redirects.d.ts.map +1 -1
- package/dist/views/Redirects.js +1 -3
- package/dist/views/Redirects.js.map +1 -1
- package/dist/views/ScriptTags.js +1 -1
- package/dist/views/Settings.js +1 -1
- package/dist/views/Settings.js.map +1 -1
- package/dist/views/header-footer/ChromePreview.d.ts.map +1 -1
- package/dist/views/header-footer/ChromePreview.js +12 -6
- package/dist/views/header-footer/ChromePreview.js.map +1 -1
- package/dist/views/settings/AISettingsTab.js +1 -1
- package/dist/views/settings/SecurityStatusCard.js +1 -1
- package/dist/views/settings/SecurityStatusCard.js.map +1 -1
- package/dist/views/settings/SiteIndexStatusCard.js +1 -1
- package/dist/views/settings/SiteIndexStatusCard.js.map +1 -1
- package/dist/views/settings/brand-voice/BrandVoiceAlignmentPanel.js +1 -1
- package/dist/views/settings/brand-voice/BrandVoiceRulesSections.js +3 -3
- package/dist/views/settings/components.d.ts +1 -1
- package/dist/views/settings/components.d.ts.map +1 -1
- package/dist/views/settings/components.js +1 -1
- package/package.json +18 -21
- package/src/__tests__/components/comment-mark.test.ts +1 -1
- package/src/__tests__/components/qa-a11y.render.test.tsx +72 -0
- package/src/__tests__/components/responsive-tiers.render.test.tsx +13 -0
- package/src/__tests__/components/ui-primitives.test.tsx +11 -0
- package/src/__tests__/layout/shell-nav.render.test.tsx +6 -0
- package/src/__tests__/styles/qa-contrast.test.ts +90 -0
- package/src/__tests__/views/ai-settings.render.test.tsx +23 -0
- package/src/__tests__/views/appearance-chrome.render.test.tsx +12 -0
- package/src/__tests__/views/jobs-list.render.test.tsx +2 -0
- package/src/__tests__/views/run-with-ai.render.test.tsx +10 -0
- package/src/__tests__/views/script-tags.render.test.tsx +11 -0
- package/src/__tests__/views/settings-tabs.render.test.tsx +6 -0
- package/src/components/AICoauthorBubbleMenu.tsx +3 -2
- package/src/components/SEOConfigPanel.tsx +2 -2
- package/src/components/TipTapEditor.tsx +12 -8
- package/src/components/forms/EntriesTable.tsx +1 -0
- package/src/components/seo/PageAuditPanel.tsx +2 -2
- package/src/components/seo/primitives.tsx +15 -3
- package/src/components/ui/FilterPill.tsx +4 -2
- package/src/components/ui/PageHeader.tsx +14 -1
- package/src/layout/Sidebar.tsx +3 -0
- package/src/lib/collaboration-provider.ts +2 -2
- package/src/styles/prenta-tokens.css +2 -1
- package/src/views/Jobs.tsx +1 -0
- package/src/views/MediaBrowser.tsx +6 -1
- package/src/views/Pages/PagesListView.tsx +1 -1
- package/src/views/Redirects.tsx +1 -3
- package/src/views/ScriptTags.tsx +1 -1
- package/src/views/Settings.tsx +1 -1
- package/src/views/header-footer/ChromePreview.tsx +18 -8
- package/src/views/settings/AISettingsTab.tsx +1 -1
- package/src/views/settings/SecurityStatusCard.tsx +1 -1
- package/src/views/settings/SiteIndexStatusCard.tsx +1 -1
- package/src/views/settings/brand-voice/BrandVoiceAlignmentPanel.tsx +1 -1
- package/src/views/settings/brand-voice/BrandVoiceRulesSections.tsx +3 -3
- package/src/views/settings/components.tsx +2 -2
package/src/views/Settings.tsx
CHANGED
|
@@ -317,7 +317,7 @@ export function Settings({
|
|
|
317
317
|
</button>
|
|
318
318
|
</div>
|
|
319
319
|
)}
|
|
320
|
-
<PageHeader flush title="Settings" subtitle="Manage your CMS configuration" />
|
|
320
|
+
<PageHeader flush fixedSubtitle title="Settings" subtitle="Manage your CMS configuration" />
|
|
321
321
|
</div>
|
|
322
322
|
|
|
323
323
|
<UnderlineTabs
|
|
@@ -99,10 +99,17 @@ function topItems(menu: ChromeMenuOption | undefined): ChromeMenuItem[] {
|
|
|
99
99
|
return menu ? menu.items : []
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
+
/**
|
|
103
|
+
* The mock is a light website in every admin theme, so its brand fills use the
|
|
104
|
+
* accent tuned for light surfaces (`--acc-lt`), which keeps white text at 4.5:1.
|
|
105
|
+
* Graphite's `--acc` is lightened for dark surfaces and would drop it to ~2.9:1.
|
|
106
|
+
*/
|
|
107
|
+
const SITE_BRAND = 'bg-[var(--acc-lt,var(--acc-base))]'
|
|
108
|
+
|
|
102
109
|
const TONE_BACKGROUND: Record<string, string> = {
|
|
103
|
-
brand:
|
|
104
|
-
dark: '
|
|
105
|
-
alert: '
|
|
110
|
+
brand: SITE_BRAND,
|
|
111
|
+
dark: 'bg-site-txt',
|
|
112
|
+
alert: 'bg-site-alert',
|
|
106
113
|
}
|
|
107
114
|
|
|
108
115
|
function MockSite({
|
|
@@ -193,7 +200,7 @@ function MockSite({
|
|
|
193
200
|
const contact = [textOf(email), textOf(footPhone)].filter(Boolean).join(' · ')
|
|
194
201
|
const socialLinks = Array.isArray(social?.value) ? (social.value as unknown[]).map(rec) : []
|
|
195
202
|
|
|
196
|
-
const
|
|
203
|
+
const toneClass = TONE_BACKGROUND[announcement?.tone ?? 'brand'] ?? SITE_BRAND
|
|
197
204
|
const footMuted = light ? 'text-site-sub' : 'text-site-foot-txt'
|
|
198
205
|
const footStrong = light ? 'text-site-txt' : 'text-site-bg'
|
|
199
206
|
|
|
@@ -208,8 +215,7 @@ function MockSite({
|
|
|
208
215
|
{announcement?.on ? (
|
|
209
216
|
<div
|
|
210
217
|
data-preview-announcement=""
|
|
211
|
-
className=
|
|
212
|
-
style={{ background: toneColor }}
|
|
218
|
+
className={`flex items-center justify-center gap-2.5 px-3 py-[7px] text-center text-[12px] font-semibold text-white ${toneClass}`}
|
|
213
219
|
>
|
|
214
220
|
<span>{announcement.text}</span>
|
|
215
221
|
{announcement.linkLabel ? <u className="font-bold">{announcement.linkLabel} →</u> : null}
|
|
@@ -256,7 +262,9 @@ function MockSite({
|
|
|
256
262
|
{search?.value === true && !minimal ? <span>⌕</span> : null}
|
|
257
263
|
{phoneValue && !mob ? <span>{phoneValue}</span> : null}
|
|
258
264
|
{ctaLabel ? (
|
|
259
|
-
<span
|
|
265
|
+
<span
|
|
266
|
+
className={`rounded-7 ${SITE_BRAND} px-3 py-[7px] text-[12.5px] font-semibold text-white`}
|
|
267
|
+
>
|
|
260
268
|
{ctaLabel}
|
|
261
269
|
</span>
|
|
262
270
|
) : null}
|
|
@@ -310,7 +318,9 @@ function MockSite({
|
|
|
310
318
|
light ? 'border-site-bdr bg-site-bg' : 'border-white/15 bg-white/8'
|
|
311
319
|
}`}
|
|
312
320
|
/>
|
|
313
|
-
<em
|
|
321
|
+
<em
|
|
322
|
+
className={`rounded-6 ${SITE_BRAND} px-[9px] py-1 font-semibold text-white not-italic`}
|
|
323
|
+
>
|
|
314
324
|
Subscribe
|
|
315
325
|
</em>
|
|
316
326
|
</div>
|
|
@@ -382,7 +382,7 @@ function AddProviderForm({
|
|
|
382
382
|
|
|
383
383
|
return (
|
|
384
384
|
<div className="border-border bg-background rounded-lg border p-4">
|
|
385
|
-
<
|
|
385
|
+
<h3 className="text-foreground mb-3 text-base font-medium">Add a provider</h3>
|
|
386
386
|
<div className="space-y-3">
|
|
387
387
|
<div>
|
|
388
388
|
<label htmlFor={providerId} className={LABEL_CLASS}>
|
|
@@ -10,7 +10,7 @@ const LEVEL_STYLES: Record<
|
|
|
10
10
|
{ pill: string; Icon: typeof Shield; word: string }
|
|
11
11
|
> = {
|
|
12
12
|
secure: {
|
|
13
|
-
pill: 'bg-
|
|
13
|
+
pill: 'bg-suc-l text-success border-success/30',
|
|
14
14
|
Icon: ShieldCheck,
|
|
15
15
|
word: 'Secure',
|
|
16
16
|
},
|
|
@@ -23,7 +23,7 @@ interface SiteIndexStatusCardProps {
|
|
|
23
23
|
|
|
24
24
|
const SEVERITY_STYLES: Record<SiteIndexStatus['severity'], { pill: string; icon: ReactNode }> = {
|
|
25
25
|
success: {
|
|
26
|
-
pill: 'bg-
|
|
26
|
+
pill: 'bg-suc-l text-success border-success/30',
|
|
27
27
|
icon: <CheckCircle2 size={14} aria-hidden="true" />,
|
|
28
28
|
},
|
|
29
29
|
warning: {
|
|
@@ -88,7 +88,7 @@ export function BrandVoiceAlignmentPanel({
|
|
|
88
88
|
return (
|
|
89
89
|
<div className="border-border space-y-4 rounded-md border border-dashed p-4">
|
|
90
90
|
<div>
|
|
91
|
-
<
|
|
91
|
+
<h3 className="text-foreground text-base font-medium">Check alignment</h3>
|
|
92
92
|
<p className="text-muted-foreground mt-1 text-sm">
|
|
93
93
|
Paste draft copy to score it against your vocabulary rules, mechanics, and channel limits.
|
|
94
94
|
</p>
|
|
@@ -57,7 +57,7 @@ export function BrandVoiceRulesSections({
|
|
|
57
57
|
<div className="space-y-6">
|
|
58
58
|
<section className="space-y-3">
|
|
59
59
|
<div>
|
|
60
|
-
<
|
|
60
|
+
<h3 className="text-foreground text-base font-medium">Vocabulary rules</h3>
|
|
61
61
|
<p className="text-muted-foreground mt-1 text-sm">
|
|
62
62
|
Banned terms produce deterministic alignment errors. Preferred terms are scored as
|
|
63
63
|
bonuses.
|
|
@@ -164,7 +164,7 @@ export function BrandVoiceRulesSections({
|
|
|
164
164
|
|
|
165
165
|
<section className="space-y-3">
|
|
166
166
|
<div>
|
|
167
|
-
<
|
|
167
|
+
<h3 className="text-foreground text-base font-medium">Channel overrides</h3>
|
|
168
168
|
<p className="text-muted-foreground mt-1 text-sm">
|
|
169
169
|
Length limits and notes used when scoring copy for a specific channel.
|
|
170
170
|
</p>
|
|
@@ -244,7 +244,7 @@ export function BrandVoiceRulesSections({
|
|
|
244
244
|
|
|
245
245
|
<section className="space-y-3">
|
|
246
246
|
<div>
|
|
247
|
-
<
|
|
247
|
+
<h3 className="text-foreground text-base font-medium">Worked examples</h3>
|
|
248
248
|
<p className="text-muted-foreground mt-1 text-sm">
|
|
249
249
|
Off-brand vs on-brand pairs anchor scoring feedback and the sample copy field.
|
|
250
250
|
</p>
|
|
@@ -30,7 +30,7 @@ export function SettingsCard({
|
|
|
30
30
|
actions,
|
|
31
31
|
children,
|
|
32
32
|
className,
|
|
33
|
-
headingLevel: Heading = '
|
|
33
|
+
headingLevel: Heading = 'h2',
|
|
34
34
|
busy = false,
|
|
35
35
|
}: {
|
|
36
36
|
title: ReactNode
|
|
@@ -39,7 +39,7 @@ export function SettingsCard({
|
|
|
39
39
|
actions?: ReactNode
|
|
40
40
|
children: ReactNode
|
|
41
41
|
className?: string
|
|
42
|
-
/**
|
|
42
|
+
/** The card title's heading: h2 under the Settings h1 (Settings.html `.ap-head h2`). */
|
|
43
43
|
headingLevel?: 'h2' | 'h3'
|
|
44
44
|
/** Marks the region `aria-busy` while a save/refresh is in flight. */
|
|
45
45
|
busy?: boolean
|