@simmalugnt-se/payload-consent 0.6.2 → 0.6.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 +15 -0
- package/dist/admin/ScanPanel.js +99 -28
- package/dist/admin/scan-view.d.ts +10 -1
- package/dist/admin/scan-view.js +8 -0
- package/dist/styles/admin.css +69 -45
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.6.3
|
|
4
|
+
|
|
5
|
+
- The Scan tab's findings follow the card above them. Each group (Needs action, Not in the Cookie
|
|
6
|
+
services, In order) is a Payload Collapsible with its count in the card's colours; In order
|
|
7
|
+
starts closed. A finding shows its name and where it was seen as a short list, the Open Cookie
|
|
8
|
+
Database's suggestion in a box of its own, and Add to service with Payload's text and select
|
|
9
|
+
fields in place of the browser's. Enter in Service adds the finding instead of saving the
|
|
10
|
+
Cookies form. The groups' explanations say what to do rather than repeat the card.
|
|
11
|
+
- A finding reads in plain words. It leads with its service, or "Looks like Meta Pixel" from the
|
|
12
|
+
Open Cookie Database, and says in one sentence what it is and when it appeared: "Cookie set for
|
|
13
|
+
new visitors before they choose, although Statistics is not allowed then. Also after the visitor
|
|
14
|
+
accepts." The raw name, domain, category, tracker lists and a page it was seen on follow on a
|
|
15
|
+
quieter line. "Stored in the browser" and "Contacts another site" replace "localStorage" and
|
|
16
|
+
"Third-party host", in the card's counts too.
|
|
17
|
+
|
|
3
18
|
## 0.6.2
|
|
4
19
|
|
|
5
20
|
- The Scan tab opens with a card for the scan. While it runs, the card follows it page by page
|
package/dist/admin/ScanPanel.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
-
import { Button, Collapsible, Pill, useConfig, useFormFields, useLocale, useTranslation, } from "@payloadcms/ui";
|
|
3
|
+
import { Button, Collapsible, Pill, SelectInput, TextInput, useConfig, useFormFields, useLocale, useTranslation, } from "@payloadcms/ui";
|
|
4
4
|
import { useCallback, useEffect, useState } from "react";
|
|
5
5
|
import { CATEGORIES } from "../defaults.js";
|
|
6
6
|
import { CONSENT_SCANS } from "../types.js";
|
|
7
|
-
import { describeProblem, estimateLeft, finishedPages, formatElapsed, pagePath, scanVerdict, } from "./scan-view.js";
|
|
7
|
+
import { describeProblem, estimateLeft, findingHeading, finishedPages, formatElapsed, pagePath, scanVerdict, } from "./scan-view.js";
|
|
8
8
|
import "../styles/admin.css";
|
|
9
9
|
const COPY = {
|
|
10
10
|
en: {
|
|
@@ -56,7 +56,7 @@ const COPY = {
|
|
|
56
56
|
pages: (n, of) => n === of ? (n === 1 ? "page" : "pages") : `of ${of} ${of === 1 ? "page" : "pages"}`,
|
|
57
57
|
states: (n) => (n === 1 ? "state" : "states"),
|
|
58
58
|
cookies: (n) => (n === 1 ? "cookie" : "cookies"),
|
|
59
|
-
storage: () => "
|
|
59
|
+
storage: () => "stored in the browser",
|
|
60
60
|
hosts: (n) => (n === 1 ? "other site" : "other sites"),
|
|
61
61
|
},
|
|
62
62
|
scanned: (date, took) => `Scanned ${date}${took ? ` · took ${took}` : ""}`,
|
|
@@ -78,21 +78,34 @@ const COPY = {
|
|
|
78
78
|
ok: "In order",
|
|
79
79
|
},
|
|
80
80
|
explain: {
|
|
81
|
-
action: "
|
|
82
|
-
unknown: "
|
|
83
|
-
ok: "
|
|
81
|
+
action: "Seen where their category is not allowed. Set Loaded by on the service to “This plugin, after consent”, or make the site's code wait for consent.",
|
|
82
|
+
unknown: "Add each to a service, new or existing, or remove it from the site.",
|
|
83
|
+
ok: "In a Cookie service, and seen only where its category is allowed.",
|
|
84
84
|
},
|
|
85
|
-
|
|
85
|
+
// What the finding is, leading the sentence of when it was seen.
|
|
86
|
+
seen: {
|
|
87
|
+
cookie: "Cookie set",
|
|
88
|
+
localStorage: "Stored in the browser",
|
|
89
|
+
host: "Contacts another site",
|
|
90
|
+
},
|
|
91
|
+
when: {
|
|
92
|
+
"no-choice": "for new visitors before they choose",
|
|
93
|
+
"reject-all": "after the visitor rejects",
|
|
94
|
+
"accept-all": "after the visitor accepts",
|
|
95
|
+
},
|
|
96
|
+
whenOnly: (category) => `when only ${category} is allowed`,
|
|
97
|
+
notAllowed: (category) => `, although ${category} is not allowed then`,
|
|
98
|
+
also: (when) => `Also ${when}.`,
|
|
99
|
+
looksLike: (platform) => `Looks like ${platform}`,
|
|
100
|
+
database: "Open Cookie Database",
|
|
101
|
+
trackerLists: (lists) => `On tracker lists: ${lists}`,
|
|
102
|
+
seenOn: "A page it was seen on",
|
|
86
103
|
beforeConsent: "Before consent",
|
|
87
104
|
isNew: "New",
|
|
88
|
-
seenIn: "Seen in",
|
|
89
|
-
withoutConsent: "without consent in",
|
|
90
105
|
service: "Service",
|
|
91
106
|
category: "Category",
|
|
92
107
|
add: "Add to service",
|
|
93
108
|
adding: "Adding…",
|
|
94
|
-
suggestion: "Suggestion",
|
|
95
|
-
trackerList: "On tracker list",
|
|
96
109
|
states: {
|
|
97
110
|
"no-choice": "new visitor",
|
|
98
111
|
"reject-all": "after rejecting",
|
|
@@ -155,7 +168,7 @@ const COPY = {
|
|
|
155
168
|
pages: (n, of) => n === of ? (n === 1 ? "sida" : "sidor") : `av ${of} ${of === 1 ? "sida" : "sidor"}`,
|
|
156
169
|
states: (n) => (n === 1 ? "läge" : "lägen"),
|
|
157
170
|
cookies: (n) => (n === 1 ? "cookie" : "cookies"),
|
|
158
|
-
storage: () => "
|
|
171
|
+
storage: () => "sparat i webbläsaren",
|
|
159
172
|
hosts: (n) => (n === 1 ? "annan webbplats" : "andra webbplatser"),
|
|
160
173
|
},
|
|
161
174
|
scanned: (date, took) => `Skannad ${date}${took ? ` · tog ${took}` : ""}`,
|
|
@@ -177,21 +190,33 @@ const COPY = {
|
|
|
177
190
|
ok: "I ordning",
|
|
178
191
|
},
|
|
179
192
|
explain: {
|
|
180
|
-
action: "
|
|
181
|
-
unknown: "
|
|
182
|
-
ok: "
|
|
193
|
+
action: "Syns där kategorin inte är tillåten. Välj ”Det här pluginet, efter samtycke” under Laddas av i tjänsten, eller låt webbplatsens kod vänta på samtycke.",
|
|
194
|
+
unknown: "Lägg till var och en i en tjänst, ny eller befintlig, eller ta bort den från webbplatsen.",
|
|
195
|
+
ok: "Finns i en Cookietjänst och syns bara där kategorin är tillåten.",
|
|
196
|
+
},
|
|
197
|
+
seen: {
|
|
198
|
+
cookie: "Cookie som sätts",
|
|
199
|
+
localStorage: "Sparas i webbläsaren",
|
|
200
|
+
host: "Kontaktar en annan webbplats",
|
|
201
|
+
},
|
|
202
|
+
when: {
|
|
203
|
+
"no-choice": "för nya besökare innan de valt",
|
|
204
|
+
"reject-all": "när besökaren avvisat",
|
|
205
|
+
"accept-all": "när besökaren godkänt",
|
|
183
206
|
},
|
|
184
|
-
|
|
207
|
+
whenOnly: (category) => `när bara ${category.toLowerCase()} är tillåten`,
|
|
208
|
+
notAllowed: (category) => `, fast ${category.toLowerCase()} inte är tillåten då`,
|
|
209
|
+
also: (when) => `Även ${when}.`,
|
|
210
|
+
looksLike: (platform) => `Ser ut som ${platform}`,
|
|
211
|
+
database: "Open Cookie Database",
|
|
212
|
+
trackerLists: (lists) => `På spårningslistor: ${lists}`,
|
|
213
|
+
seenOn: "En sida där den syns",
|
|
185
214
|
beforeConsent: "Före samtycke",
|
|
186
215
|
isNew: "Ny",
|
|
187
|
-
seenIn: "Sågs",
|
|
188
|
-
withoutConsent: "utan samtycke",
|
|
189
216
|
service: "Tjänst",
|
|
190
217
|
category: "Kategori",
|
|
191
218
|
add: "Lägg till i tjänst",
|
|
192
219
|
adding: "Lägger till…",
|
|
193
|
-
suggestion: "Förslag",
|
|
194
|
-
trackerList: "På spårningslista",
|
|
195
220
|
states: {
|
|
196
221
|
"no-choice": "ny besökare",
|
|
197
222
|
"reject-all": "efter avvisa",
|
|
@@ -217,6 +242,16 @@ function stateLabel(copy, id) {
|
|
|
217
242
|
const category = id.replace(/^only-/, "");
|
|
218
243
|
return copy.categories[category] ? `${copy.categories[category]}` : id;
|
|
219
244
|
}
|
|
245
|
+
/** `for new visitors before they choose and after the visitor accepts`. */
|
|
246
|
+
function whenLabel(copy, ids, language) {
|
|
247
|
+
const labels = ids.map((id) => {
|
|
248
|
+
if (copy.when[id])
|
|
249
|
+
return copy.when[id];
|
|
250
|
+
const category = id.replace(/^only-/, "");
|
|
251
|
+
return copy.categories[category] ? copy.whenOnly(copy.categories[category]) : id;
|
|
252
|
+
});
|
|
253
|
+
return new Intl.ListFormat(language === "sv" ? "sv-SE" : "en-GB", { type: "conjunction" }).format(labels);
|
|
254
|
+
}
|
|
220
255
|
function dateLabel(value, language) {
|
|
221
256
|
return new Date(value ?? "").toLocaleString(language === "sv" ? "sv-SE" : "en-GB");
|
|
222
257
|
}
|
|
@@ -232,6 +267,12 @@ const CARD_PILL = {
|
|
|
232
267
|
ok: "success",
|
|
233
268
|
clean: "success",
|
|
234
269
|
};
|
|
270
|
+
/** A group's count, in the colour the card gives the same verdict. */
|
|
271
|
+
const GROUP_PILL = {
|
|
272
|
+
action: CARD_PILL.action,
|
|
273
|
+
unknown: CARD_PILL.unknown,
|
|
274
|
+
ok: CARD_PILL.ok,
|
|
275
|
+
};
|
|
235
276
|
/**
|
|
236
277
|
* The scan at a glance: where it stands or what it found, with Scan now. A panel of our own like
|
|
237
278
|
* the dashboard widget's: Payload's `Card` is a link, not a status.
|
|
@@ -390,12 +431,13 @@ export function ScanPanel() {
|
|
|
390
431
|
const rows = findings.filter((finding) => finding.status === status);
|
|
391
432
|
if (!rows.length)
|
|
392
433
|
return null;
|
|
393
|
-
|
|
394
|
-
|
|
434
|
+
return (_jsxs(Collapsible, { className: `consent-scan__group consent-scan__group--${status}`, header: _jsxs("span", { className: "consent-scan__group-head", children: [_jsx("span", { className: "consent-scan__group-title", children: copy.groups[status] }), _jsx(Pill, { pillStyle: GROUP_PILL[status], size: "small", children: rows.length })] }),
|
|
435
|
+
// What is in order is there to look up, not to act on.
|
|
436
|
+
initCollapsed: status === "ok", children: [_jsx("p", { className: "consent-scan__note", children: copy.explain[status] }), _jsx("ul", { className: "consent-scan__list", children: rows.map((finding) => (_jsx(FindingRow, { api: api, copy: copy, finding: finding, language: language, locale: locale.code, onAdded: load }, finding.key))) })] }, status));
|
|
395
437
|
})
|
|
396
438
|
: null] }));
|
|
397
439
|
}
|
|
398
|
-
function FindingRow({ api, copy, finding, locale, onAdded, }) {
|
|
440
|
+
function FindingRow({ api, copy, finding, language, locale, onAdded, }) {
|
|
399
441
|
const suggestion = finding.suggestion;
|
|
400
442
|
const [service, setService] = useState(suggestion?.platform ?? (finding.kind === "host" ? finding.name : ""));
|
|
401
443
|
const [category, setCategory] = useState(suggestion?.category ?? "necessary");
|
|
@@ -428,9 +470,38 @@ function FindingRow({ api, copy, finding, locale, onAdded, }) {
|
|
|
428
470
|
else
|
|
429
471
|
await onAdded();
|
|
430
472
|
}
|
|
431
|
-
const
|
|
432
|
-
const
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
473
|
+
const heading = findingHeading(finding);
|
|
474
|
+
const serviceCategory = finding.category ? copy.categories[finding.category] : "";
|
|
475
|
+
const suggested = [
|
|
476
|
+
suggestion?.category ? copy.categories[suggestion.category] : "",
|
|
477
|
+
suggestion?.retention,
|
|
478
|
+
].filter(Boolean);
|
|
479
|
+
// The raw facts a developer looks for, after what the editor reads.
|
|
480
|
+
const details = [
|
|
481
|
+
heading.from === "name" ? null : _jsx("code", { children: finding.name }, "name"),
|
|
482
|
+
finding.where || null,
|
|
483
|
+
heading.from === "service"
|
|
484
|
+
? serviceCategory || null
|
|
485
|
+
: heading.from === "suggestion" && suggested.length
|
|
486
|
+
? `${copy.database}: ${suggested.join(", ")}`
|
|
487
|
+
: null,
|
|
488
|
+
finding.trackerLists?.length ? copy.trackerLists(finding.trackerLists.join(", ")) : null,
|
|
489
|
+
finding.page ? (_jsx("a", { href: finding.page, rel: "noopener noreferrer", target: "_blank", children: copy.seenOn }, "page")) : null,
|
|
490
|
+
].filter(Boolean);
|
|
491
|
+
// Where it loaded without consent comes first, in the error colour; the rest after it.
|
|
492
|
+
const without = serviceCategory ? finding.withoutConsent : [];
|
|
493
|
+
const rest = finding.states.filter((id) => !without.includes(id));
|
|
494
|
+
const path = `consent-scan-${finding.key}`;
|
|
495
|
+
return (_jsxs("li", { className: "consent-scan__row", children: [_jsxs("div", { className: "consent-scan__row-head", children: [_jsx("h4", { className: "consent-scan__name", children: heading.from === "name" ? (_jsx("code", { children: heading.text })) : heading.from === "suggestion" ? (copy.looksLike(heading.text)) : (heading.text) }), (finding.beforeConsent && finding.status !== "ok") || finding.isNew ? (_jsxs("div", { className: "consent-scan__pills", children: [finding.beforeConsent && finding.status !== "ok" ? (_jsx(Pill, { pillStyle: "error", size: "small", children: copy.beforeConsent })) : null, finding.isNew ? (_jsx(Pill, { pillStyle: "light", size: "small", children: copy.isNew })) : null] })) : null] }), _jsx("p", { className: "consent-scan__seen", children: without.length ? (_jsxs(_Fragment, { children: [`${copy.seen[finding.kind]} ${whenLabel(copy, without, language)}`, _jsx("strong", { children: copy.notAllowed(serviceCategory) }), ".", rest.length ? ` ${copy.also(whenLabel(copy, rest, language))}` : null] })) : (`${copy.seen[finding.kind]} ${whenLabel(copy, finding.states, language)}.`) }), suggestion?.description && heading.from === "suggestion" ? (_jsx("p", { className: "consent-scan__note", children: suggestion.description })) : null, details.length ? (_jsx("p", { className: "consent-scan__details", children: details.map((detail, index) => (_jsx("span", { children: detail }, typeof detail === "string" ? detail : index))) })) : null, finding.status === "unknown" ? (_jsxs("div", { className: "consent-scan__classify", children: [_jsx(TextInput, { label: copy.service, onChange: (event) => setService(event.target.value), onKeyDown: (event) => {
|
|
496
|
+
// Enter adds the finding; it would otherwise submit the Cookies form around the tab.
|
|
497
|
+
if (event.key !== "Enter")
|
|
498
|
+
return;
|
|
499
|
+
event.preventDefault();
|
|
500
|
+
if (!busy && service.trim())
|
|
501
|
+
add();
|
|
502
|
+
}, path: `${path}-service`, readOnly: busy, value: service }), _jsx(SelectInput, { isClearable: false, label: copy.category, name: `${path}-category`, onChange: (selected) => {
|
|
503
|
+
const option = Array.isArray(selected) ? selected[0] : selected;
|
|
504
|
+
if (option && typeof option === "object" && "value" in option)
|
|
505
|
+
setCategory(option.value);
|
|
506
|
+
}, options: CATEGORIES.map((value) => ({ label: copy.categories[value], value })), path: `${path}-category`, readOnly: busy, value: category }), _jsx(Button, { buttonStyle: "secondary", disabled: busy || !service.trim(), margin: false, onClick: add, size: "large", children: busy ? copy.adding : copy.add }), error ? (_jsx("p", { className: "consent-scan__error", role: "alert", children: error })) : null] })) : null] }));
|
|
436
507
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ScanSummary } from "../evaluate.ts";
|
|
1
|
+
import type { Finding, ScanSummary } from "../evaluate.ts";
|
|
2
2
|
import type { ScanStage } from "../scans.ts";
|
|
3
3
|
/**
|
|
4
4
|
* What a finished scan means for the editor, most urgent first: services loading without consent,
|
|
@@ -7,6 +7,15 @@ import type { ScanStage } from "../scans.ts";
|
|
|
7
7
|
*/
|
|
8
8
|
export type ScanVerdict = "action" | "unknown" | "incomplete" | "ok" | "clean";
|
|
9
9
|
export declare function scanVerdict(summary: ScanSummary): ScanVerdict;
|
|
10
|
+
/**
|
|
11
|
+
* What a finding's row leads with, in the editor's words: the Cookie service that explains it, the
|
|
12
|
+
* platform the Open Cookie Database suggests, or only its raw name when neither knows it.
|
|
13
|
+
*/
|
|
14
|
+
export type FindingHeading = {
|
|
15
|
+
from: "service" | "suggestion" | "name";
|
|
16
|
+
text: string;
|
|
17
|
+
};
|
|
18
|
+
export declare function findingHeading(finding: Finding): FindingHeading;
|
|
10
19
|
/** Pages finished in all states, for the progress bar: the page being visited is not yet. */
|
|
11
20
|
export declare function finishedPages(stage: ScanStage): number;
|
|
12
21
|
/** `0:07`, `12:30`, `1:02:03`. */
|
package/dist/admin/scan-view.js
CHANGED
|
@@ -7,6 +7,14 @@ export function scanVerdict(summary) {
|
|
|
7
7
|
return "incomplete";
|
|
8
8
|
return summary.ok ? "ok" : "clean";
|
|
9
9
|
}
|
|
10
|
+
export function findingHeading(finding) {
|
|
11
|
+
if (finding.service)
|
|
12
|
+
return { from: "service", text: finding.service };
|
|
13
|
+
const platform = finding.suggestion?.platform;
|
|
14
|
+
if (platform && finding.status === "unknown")
|
|
15
|
+
return { from: "suggestion", text: platform };
|
|
16
|
+
return { from: "name", text: finding.name };
|
|
17
|
+
}
|
|
10
18
|
/** Pages finished in all states, for the progress bar: the page being visited is not yet. */
|
|
11
19
|
export function finishedPages(stage) {
|
|
12
20
|
return Math.max(0, stage.page > 0 ? stage.visited - 1 : stage.visited);
|
package/dist/styles/admin.css
CHANGED
|
@@ -131,75 +131,99 @@
|
|
|
131
131
|
margin: 0;
|
|
132
132
|
color: var(--theme-error-500);
|
|
133
133
|
}
|
|
134
|
+
/* A group of findings: Payload's Collapsible, its count in the card's pill colours. */
|
|
134
135
|
.consent-scan__group {
|
|
135
|
-
|
|
136
|
-
padding-top: calc(var(--base) * 0.75);
|
|
136
|
+
margin: 0;
|
|
137
137
|
}
|
|
138
|
-
.consent-scan__group
|
|
139
|
-
|
|
140
|
-
|
|
138
|
+
.consent-scan__group-head {
|
|
139
|
+
display: flex;
|
|
140
|
+
align-items: center;
|
|
141
|
+
gap: calc(var(--base) * 0.5);
|
|
142
|
+
color: var(--theme-text);
|
|
141
143
|
}
|
|
142
|
-
.consent-scan__group
|
|
143
|
-
|
|
144
|
+
.consent-scan__group-title {
|
|
145
|
+
font-weight: 600;
|
|
144
146
|
}
|
|
145
|
-
.consent-scan__group
|
|
146
|
-
|
|
147
|
+
.consent-scan__group .collapsible__content {
|
|
148
|
+
display: grid;
|
|
149
|
+
gap: calc(var(--base) * 0.5);
|
|
147
150
|
}
|
|
148
151
|
.consent-scan__list {
|
|
149
|
-
list-style: none;
|
|
150
|
-
margin: calc(var(--base) * 0.5) 0 0;
|
|
151
|
-
padding: 0;
|
|
152
152
|
display: grid;
|
|
153
|
-
|
|
153
|
+
margin: 0;
|
|
154
|
+
padding: 0;
|
|
155
|
+
list-style: none;
|
|
154
156
|
}
|
|
155
157
|
.consent-scan__row {
|
|
156
158
|
display: grid;
|
|
157
|
-
gap:
|
|
158
|
-
padding: calc(var(--base) * 0.
|
|
159
|
-
border: 1px solid var(--theme-elevation-100);
|
|
160
|
-
border-radius: var(--style-radius-s);
|
|
159
|
+
gap: calc(var(--base) * 0.5);
|
|
160
|
+
padding-block: calc(var(--base) * 0.75);
|
|
161
|
+
border-top: 1px solid var(--theme-elevation-100);
|
|
161
162
|
}
|
|
162
|
-
.consent-
|
|
163
|
+
.consent-scan__row:last-child {
|
|
164
|
+
padding-bottom: 0;
|
|
165
|
+
}
|
|
166
|
+
.consent-scan__row-head {
|
|
163
167
|
display: flex;
|
|
164
168
|
flex-wrap: wrap;
|
|
165
169
|
align-items: center;
|
|
166
|
-
|
|
170
|
+
justify-content: space-between;
|
|
171
|
+
gap: calc(var(--base) * 0.5);
|
|
167
172
|
}
|
|
168
|
-
.
|
|
169
|
-
|
|
170
|
-
|
|
173
|
+
/* A finding leads with its service in plain words; its raw name and domain follow, quieter. */
|
|
174
|
+
.consent-scan__name {
|
|
175
|
+
margin: 0;
|
|
176
|
+
font-size: 1.15rem;
|
|
177
|
+
line-height: 1.3;
|
|
178
|
+
font-weight: 600;
|
|
179
|
+
overflow-wrap: anywhere;
|
|
171
180
|
}
|
|
172
|
-
.consent-
|
|
173
|
-
|
|
181
|
+
.consent-scan__name code {
|
|
182
|
+
font-size: 0.95rem;
|
|
174
183
|
}
|
|
175
|
-
.consent-
|
|
184
|
+
.consent-scan__seen {
|
|
176
185
|
margin: 0;
|
|
177
|
-
color: var(--theme-elevation-600);
|
|
178
|
-
font-size: 0.9em;
|
|
179
|
-
overflow-wrap: anywhere;
|
|
180
186
|
}
|
|
181
|
-
.consent-
|
|
187
|
+
.consent-scan__seen strong {
|
|
188
|
+
font-weight: 500;
|
|
189
|
+
color: var(--theme-error-500);
|
|
190
|
+
}
|
|
191
|
+
.consent-scan__details {
|
|
182
192
|
display: flex;
|
|
183
193
|
flex-wrap: wrap;
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
194
|
+
gap: 0 calc(var(--base) * 0.5);
|
|
195
|
+
margin: 0;
|
|
196
|
+
color: var(--theme-elevation-500);
|
|
197
|
+
font-size: 0.85rem;
|
|
198
|
+
overflow-wrap: anywhere;
|
|
199
|
+
}
|
|
200
|
+
.consent-scan__details span:not(:last-child)::after {
|
|
201
|
+
content: "·";
|
|
202
|
+
margin-left: calc(var(--base) * 0.5);
|
|
187
203
|
}
|
|
188
|
-
.consent-
|
|
204
|
+
.consent-scan__details a {
|
|
205
|
+
color: inherit;
|
|
206
|
+
text-decoration: underline;
|
|
207
|
+
text-underline-offset: 2px;
|
|
208
|
+
}
|
|
209
|
+
/* Service and Category side by side, with Add to service on their inputs' line. */
|
|
210
|
+
.consent-scan__classify {
|
|
189
211
|
display: grid;
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
212
|
+
grid-template-columns: minmax(10rem, 22rem) minmax(10rem, 14rem) auto;
|
|
213
|
+
justify-content: start;
|
|
214
|
+
align-items: end;
|
|
215
|
+
gap: calc(var(--base) * 0.5);
|
|
193
216
|
}
|
|
194
|
-
.consent-scan__classify
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
217
|
+
.consent-scan__classify .field-type {
|
|
218
|
+
margin: 0;
|
|
219
|
+
}
|
|
220
|
+
.consent-scan__classify .consent-scan__error {
|
|
221
|
+
grid-column: 1 / -1;
|
|
222
|
+
}
|
|
223
|
+
@media (max-width: 768px) {
|
|
224
|
+
.consent-scan__classify {
|
|
225
|
+
grid-template-columns: 1fr;
|
|
226
|
+
}
|
|
203
227
|
}
|
|
204
228
|
|
|
205
229
|
/* The dashboard widget, laid out like Payload's collection cards and content health's widget. */
|