@nuxtseo/pro-indexing 0.0.0-stage → 0.1.4

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.
@@ -0,0 +1,1096 @@
1
+ <script setup lang="ts">
2
+ import type { GscdumpCanonicalMismatchesResponse, GscdumpIndexingUrlsResponse } from '@gscdump/contracts'
3
+ import type { UiTableColumn } from '@nuxtseo/design-system/app/shared/table'
4
+ import type { Component, VNode } from 'vue'
5
+ import type { IndexingSite } from '../../shared/source'
6
+ import { gscConsoleUrl } from '@gscdump/sdk/gsc-console-url'
7
+ import { indexingActionForIssue } from '@gscdump/sdk/indexing'
8
+ import { issueDetails, severityOrder } from '@gscdump/sdk/indexing-issues'
9
+ import { DISPLAY_LOCALE, useProHumanFriendlyNumber } from '@nuxtseo/design-system/app/composables/formatting'
10
+ import { navigateTo, useRoute } from 'nuxt/app'
11
+ import { computed, h, onMounted, ref, watch } from 'vue'
12
+ import { UiButton, UiChip, UiDataList, UiIcon, UiMetricLabel as UiMetricLabelCell, UiPopover, UiSeverityDot, UiSkeleton, UiSyncDot } from '#components'
13
+ import { useToast } from '#imports'
14
+ import { issueIcons, severityConfig as issueSeverityConfig } from '../../shared/issue-display'
15
+ import { useIndexingSource } from '../composables/useIndexingSource'
16
+ import IndexingCrawlPipeline from './IndexingCrawlPipeline.vue'
17
+ import IndexingUrlsTableShell from './IndexingUrlsTableShell.vue'
18
+
19
+ // One Site's inspected URLs: issue filter, status filter, search, pages, the
20
+ // facet panels, and the per-URL detail. Reads `diagnostics` and `urls` from
21
+ // the IndexingSource. `diagnose` adds the remediation for the filtered issue,
22
+ // `inspect` adds "Re-check with Google", and `canonicalMismatches` adds the
23
+ // consolidation targets. A site with its own table shell passes it as `shell`.
24
+
25
+ type GscdumpIndexingUrl = GscdumpIndexingUrlsResponse['urls'][number]
26
+ type ConsolidationTargetRow = GscdumpCanonicalMismatchesResponse['consolidationTargets'][number]
27
+ interface RichResultDistributionRow { type: string, valid: number, invalid: number }
28
+ type StatusKey = 'indexed' | 'not_indexed'
29
+
30
+ const { site, pageSize = 25, initialIssue, initialSearch, initialFacet, initialStatus, initialPage = 1, shell, forceSkeleton = false } = defineProps<{
31
+ site: IndexingSite | null | undefined
32
+ pageSize?: number
33
+ initialIssue?: string
34
+ initialSearch?: string
35
+ /** URLs-table facet (`canonical_mismatch` | `rich_results`), from `?facet=`. */
36
+ initialFacet?: string
37
+ /** Shareable URL status filter. An issue filter wins when both are supplied. */
38
+ initialStatus?: StatusKey
39
+ initialPage?: number
40
+ /** The site's own table shell. It takes the props, events, and slots of `IndexingUrlsTableShell`. */
41
+ shell?: Component
42
+ /** Show the loading skeleton, for a site's design review mode. */
43
+ forceSkeleton?: boolean
44
+ }>()
45
+
46
+ const source = useIndexingSource()
47
+ const siteRef = () => site ?? null
48
+ const TableShell = computed(() => shell ?? IndexingUrlsTableShell)
49
+
50
+ const route = useRoute()
51
+
52
+ type TableQueryKey = 'facet' | 'issue' | 'page' | 'search' | 'status'
53
+
54
+ function updateRouteQuery(
55
+ updates: Partial<Record<TableQueryKey, string | undefined>>,
56
+ replace = false,
57
+ ) {
58
+ const query = { ...route.query }
59
+ for (const [key, value] of Object.entries(updates)) {
60
+ if (value)
61
+ query[key] = value
62
+ else
63
+ delete query[key]
64
+ }
65
+ void navigateTo({ query }, replace ? { replace: true } : undefined)
66
+ }
67
+
68
+ // Active facet (canonical_mismatch | rich_results). The page keys this component
69
+ // on `route.query.facet`, so a facet change arrives as a fresh mount.
70
+ const facet = ref<string | undefined>(initialFacet)
71
+ const isRichResultsFacet = computed(() => facet.value === 'rich_results')
72
+
73
+ const facetLabel = computed(() => {
74
+ if (facet.value === 'canonical_mismatch')
75
+ return 'Canonical mismatch'
76
+ if (facet.value === 'rich_results')
77
+ return 'Rich results'
78
+ return facet.value ?? ''
79
+ })
80
+
81
+ function clearFacet() {
82
+ if (issueFilter.value === 'canonical_mismatch')
83
+ issueFilter.value = undefined
84
+ facet.value = undefined
85
+ page.value = 1
86
+ updateRouteQuery({ facet: undefined, issue: undefined, page: undefined })
87
+ }
88
+
89
+ const page = ref(initialPage)
90
+
91
+ // Internal search
92
+ const q = ref(initialSearch || '')
93
+
94
+ // The API accepts one status. A single-select control keeps the URL and request exact.
95
+ const statusFilter = ref<StatusKey | undefined>(initialIssue ? undefined : initialStatus)
96
+
97
+ const statusFilters = [
98
+ { key: 'indexed' as StatusKey, label: 'Indexed', icon: 'success', tooltip: 'Only URLs Google currently reports as indexed.' },
99
+ { key: 'not_indexed' as StatusKey, label: 'Not indexed', icon: 'error', tooltip: 'Only URLs Google does not currently report as indexed.' },
100
+ ]
101
+
102
+ function toggleStatusFilter(key: string) {
103
+ if (key !== 'indexed' && key !== 'not_indexed')
104
+ return
105
+ const nextStatus = statusFilter.value === key ? undefined : key
106
+ statusFilter.value = nextStatus
107
+ issueFilter.value = undefined
108
+ facet.value = undefined
109
+ page.value = 1
110
+ updateRouteQuery({
111
+ status: nextStatus,
112
+ issue: undefined,
113
+ facet: undefined,
114
+ page: undefined,
115
+ })
116
+ }
117
+
118
+ // --- Diagnostics (issue filter) ---
119
+ // The `canonical_mismatch` facet filters SERVER-side: gscdump's `getIndexingUrls`
120
+ // accepts `issue=canonical_mismatch` (verified in gscdump's INDEXING_ISSUE_FILTERS),
121
+ // so we drive the existing `issue` param rather than client-filtering the sample.
122
+ const issueFilter = ref<string | undefined>(
123
+ initialIssue ?? (initialFacet === 'canonical_mismatch' ? 'canonical_mismatch' : undefined),
124
+ )
125
+
126
+ const diagnosticsRead = source?.diagnostics(siteRef) ?? null
127
+ const diagnosticsData = computed(() => diagnosticsRead?.data.value ?? null)
128
+ const diagnosticsStatus = computed(() => diagnosticsRead?.status.value ?? 'idle')
129
+
130
+ const hydrated = ref(false)
131
+ onMounted(() => { hydrated.value = true })
132
+ const isDiagnosticsLoading = computed(() => hydrated.value && diagnosticsStatus.value === 'pending' && !diagnosticsData.value)
133
+
134
+ const issuesBySeverity = computed(() => {
135
+ if (!diagnosticsData.value?.issues)
136
+ return []
137
+
138
+ return severityOrder
139
+ .map(severity => ({
140
+ severity,
141
+ config: issueSeverityConfig[severity],
142
+ issues: diagnosticsData.value!.issues.filter(i => i.severity === severity && i.count > 0),
143
+ }))
144
+ .filter(g => g.issues.length > 0)
145
+ })
146
+
147
+ const hasAnyIssues = computed(() => issuesBySeverity.value.length > 0)
148
+
149
+ const issuePopoverOpen = ref(false)
150
+
151
+ const totalErrorCount = computed(() =>
152
+ issuesBySeverity.value.find(g => g.severity === 'error')?.issues.reduce((s, i) => s + i.count, 0) ?? 0,
153
+ )
154
+ const totalWarningCount = computed(() =>
155
+ issuesBySeverity.value.find(g => g.severity === 'warning')?.issues.reduce((s, i) => s + i.count, 0) ?? 0,
156
+ )
157
+
158
+ const activeIssueData = computed(() => {
159
+ if (!issueFilter.value || !diagnosticsData.value?.issues)
160
+ return null
161
+ const issue = diagnosticsData.value.issues.find(i => i.type === issueFilter.value)
162
+ if (!issue)
163
+ return null
164
+ const details = issueDetails[issue.type]
165
+ if (!details)
166
+ return null
167
+ return {
168
+ ...details,
169
+ ...issue,
170
+ description: issue.type === 'crawled_not_indexed' || issue.type === 'soft_404'
171
+ ? details.description
172
+ : issue.description || details.description,
173
+ }
174
+ })
175
+
176
+ function isIssueActive(issueType: string): boolean {
177
+ return issueFilter.value === issueType
178
+ }
179
+
180
+ function handleIssueClick(issueType: string) {
181
+ const nextIssue = issueFilter.value === issueType ? undefined : issueType
182
+ issueFilter.value = nextIssue
183
+ statusFilter.value = undefined
184
+ facet.value = undefined
185
+ page.value = 1
186
+ issuePopoverOpen.value = false
187
+ updateRouteQuery({
188
+ issue: nextIssue,
189
+ status: undefined,
190
+ facet: undefined,
191
+ page: undefined,
192
+ })
193
+ }
194
+
195
+ function clearTableFilters() {
196
+ q.value = ''
197
+ statusFilter.value = undefined
198
+ issueFilter.value = undefined
199
+ facet.value = undefined
200
+ page.value = 1
201
+ updateRouteQuery({
202
+ facet: undefined,
203
+ issue: undefined,
204
+ search: undefined,
205
+ status: undefined,
206
+ page: undefined,
207
+ })
208
+ }
209
+
210
+ function updateSearch(value: string) {
211
+ q.value = value
212
+ page.value = 1
213
+ updateRouteQuery({
214
+ search: value || undefined,
215
+ page: undefined,
216
+ }, true)
217
+ }
218
+
219
+ function updatePage(nextPage: number) {
220
+ if (page.value === nextPage)
221
+ return
222
+ page.value = nextPage
223
+ updateRouteQuery({
224
+ page: nextPage > 1 ? String(nextPage) : undefined,
225
+ })
226
+ }
227
+
228
+ watch(() => initialSearch, (value) => {
229
+ q.value = value || ''
230
+ })
231
+ watch(() => initialStatus, (value) => {
232
+ statusFilter.value = initialIssue ? undefined : value
233
+ })
234
+ watch(() => initialPage, (value) => {
235
+ page.value = value
236
+ })
237
+
238
+ // --- URL table data ---
239
+
240
+ const params = computed(() => ({
241
+ limit: pageSize,
242
+ offset: (page.value - 1) * pageSize,
243
+ status: statusFilter.value,
244
+ issue: issueFilter.value || undefined,
245
+ search: q.value || undefined,
246
+ }))
247
+
248
+ const urlsRead = source?.urls(siteRef, params) ?? null
249
+ const data = computed(() => urlsRead?.data.value ?? null)
250
+ const fetchStatus = computed(() => urlsRead?.status.value ?? 'idle')
251
+ const error = computed(() => urlsRead?.error.value ?? null)
252
+ const refresh = () => urlsRead?.refresh() ?? Promise.resolve()
253
+ const displayError = computed(() => error.value instanceof Error ? error.value : null)
254
+ const activeRemediation = computed(() => {
255
+ const diagnostics = diagnosticsData.value
256
+ const issue = issueFilter.value
257
+ if (!diagnostics || !issue || !source?.diagnose)
258
+ return null
259
+ const diagnosis = source.diagnose({
260
+ totalUrls: diagnostics.summary.totalUrls,
261
+ indexed: diagnostics.summary.indexed,
262
+ issues: diagnostics.issues,
263
+ sampleUrls: data.value?.urls ?? [],
264
+ })
265
+ return indexingActionForIssue(diagnosis, issue) ?? null
266
+ })
267
+
268
+ // Clear status filter when issue filter is set
269
+ watch(issueFilter, (v) => {
270
+ if (v)
271
+ statusFilter.value = undefined
272
+ })
273
+
274
+ // A URL carries rich-results signal if it has typed items, or a meaningful
275
+ // verdict (PASS/FAIL/PARTIAL — not the neutral/unspecified placeholders).
276
+ function hasRichResult(url: GscdumpIndexingUrl): boolean {
277
+ if (url.richResultsItems?.length)
278
+ return true
279
+ const v = url.richResultsVerdict
280
+ return !!v && !v.includes('UNSPECIFIED') && v !== 'NEUTRAL'
281
+ }
282
+
283
+ // Client-side filtered URLs for the rich-results facet (sample-scoped, no
284
+ // aggregate API per §5.6). Status and issue remain server-backed.
285
+ const displayUrls = computed(() => {
286
+ if (!data.value?.urls)
287
+ return []
288
+ let urls = data.value.urls
289
+ if (isRichResultsFacet.value)
290
+ urls = urls.filter(hasRichResult)
291
+ return urls
292
+ })
293
+
294
+ // --- Facet panels (above the table) ---
295
+
296
+ // `canonical_mismatch` facet: consolidation targets (Google's chosen
297
+ // canonicals), from the `canonicalMismatches` capability. Leaving the facet
298
+ // stops the read.
299
+ const consolidationRead = source?.canonicalMismatches?.(siteRef, () => facet.value === 'canonical_mismatch') ?? null
300
+ const consolidationData = computed<GscdumpCanonicalMismatchesResponse | null>(() => consolidationRead?.data.value ?? null)
301
+ const consolidationStatus = computed(() => consolidationRead?.status.value ?? 'idle')
302
+
303
+ // `rich_results` facet: aggregate the LOADED sample's rich-results items by type
304
+ // into valid (parent verdict PASS) vs invalid (FAIL/PARTIAL) counts. Sample-scoped.
305
+ const richResultsDistribution = computed<RichResultDistributionRow[]>(() => {
306
+ const urls = data.value?.urls ?? []
307
+ const byType = new Map<string, { type: string, valid: number, invalid: number }>()
308
+ for (const u of urls) {
309
+ if (!u.richResultsItems?.length)
310
+ continue
311
+ const valid = u.richResultsVerdict === 'PASS'
312
+ const invalid = u.richResultsVerdict === 'FAIL' || u.richResultsVerdict === 'PARTIAL'
313
+ if (!valid && !invalid)
314
+ continue
315
+ for (const item of u.richResultsItems) {
316
+ const type = item.richResultType
317
+ if (!type)
318
+ continue
319
+ const entry = byType.get(type) ?? { type, valid: 0, invalid: 0 }
320
+ if (valid)
321
+ entry.valid++
322
+ else
323
+ entry.invalid++
324
+ byType.set(type, entry)
325
+ }
326
+ }
327
+ return [...byType.values()].sort((a, b) => (b.invalid - a.invalid) || (b.valid - a.valid))
328
+ })
329
+ const richResultsScopeCount = computed(() => data.value?.urls?.length ?? 0)
330
+ const richResultsInvalidTotal = computed(() => richResultsDistribution.value.reduce((sum, r) => sum + r.invalid, 0))
331
+
332
+ // No-facet summary: how many of the loaded sample aren't in the current sitemap.
333
+ const notInSitemapCount = computed(() => (data.value?.urls ?? []).filter(u => inSitemap(u) === false).length)
334
+
335
+ const total = computed(() => data.value?.pagination.total || 0)
336
+ const indexingGscSiteLabel = computed(() => {
337
+ const meta = data.value?.meta
338
+ if (!meta)
339
+ return ''
340
+ if ('gscPropertyUrl' in meta && typeof meta.gscPropertyUrl === 'string' && meta.gscPropertyUrl)
341
+ return meta.gscPropertyUrl
342
+ return meta.siteUrl
343
+ })
344
+
345
+ // --- Manual re-inspection ---
346
+ const inspectUrls = source?.inspect?.() ?? null
347
+ const inflightUrls = ref(new Set<string>())
348
+ const inspectBudgetRemaining = ref<number | null>(null)
349
+ const toast = useToast()
350
+
351
+ async function handleReinspect(url: GscdumpIndexingUrl) {
352
+ if (!site?.dataId || !inspectUrls || inflightUrls.value.has(url.url))
353
+ return
354
+ inflightUrls.value = new Set([...inflightUrls.value, url.url])
355
+ try {
356
+ const res = await inspectUrls(site, [url.url])
357
+ if ('error' in res && res.error === 'rate_limited') {
358
+ inspectBudgetRemaining.value = 0
359
+ toast.add({
360
+ title: 'Daily inspection limit reached',
361
+ description: `Google\'s URL Inspection budget for this site resets in ~${Math.round(res.retryAfterSeconds / 3600)}h.`,
362
+ color: 'warning',
363
+ icon: 'clock',
364
+ })
365
+ return
366
+ }
367
+ const ok = res as Exclude<typeof res, { error: 'rate_limited' }>
368
+ inspectBudgetRemaining.value = ok.rateLimit.remaining
369
+ if (ok.results.length > 0) {
370
+ toast.add({
371
+ title: 'Re-checked with Google',
372
+ description: `${url.url} — ${ok.results[0]!.coverageState ?? ok.results[0]!.verdict ?? 'updated'}`,
373
+ color: 'success',
374
+ icon: 'check',
375
+ })
376
+ await refresh()
377
+ }
378
+ else if (ok.errors.length > 0) {
379
+ toast.add({
380
+ title: 'Re-check failed',
381
+ description: ok.errors[0]!.error,
382
+ color: 'error',
383
+ icon: 'warning',
384
+ })
385
+ }
386
+ }
387
+ catch (e) {
388
+ toast.add({
389
+ title: 'Re-check failed',
390
+ description: e instanceof Error ? e.message : 'Unknown error',
391
+ color: 'error',
392
+ icon: 'warning',
393
+ })
394
+ }
395
+ finally {
396
+ const next = new Set(inflightUrls.value)
397
+ next.delete(url.url)
398
+ inflightUrls.value = next
399
+ }
400
+ }
401
+ const isLoading = computed(() => hydrated.value && (forceSkeleton || (fetchStatus.value === 'pending' && !data.value)))
402
+
403
+ function formatDate(dateStr: string | null): string {
404
+ if (!dateStr)
405
+ return '—'
406
+ const date = new Date(dateStr)
407
+ const now = new Date()
408
+ const diff = now.getTime() - date.getTime()
409
+ const days = Math.floor(diff / (24 * 60 * 60 * 1000))
410
+
411
+ if (days === 0)
412
+ return 'Today'
413
+ if (days === 1)
414
+ return 'Yesterday'
415
+ return new Intl.DateTimeFormat(DISPLAY_LOCALE, { month: 'short', day: 'numeric' }).format(date)
416
+ }
417
+
418
+ function formatFullDate(dateStr: string | null): string {
419
+ if (!dateStr)
420
+ return '—'
421
+ const date = new Date(dateStr)
422
+ return new Intl.DateTimeFormat(DISPLAY_LOCALE, { month: 'short', day: 'numeric', year: 'numeric', hour: '2-digit', minute: '2-digit' }).format(date)
423
+ }
424
+
425
+ function getPath(url: string): string {
426
+ if (!url || !url.startsWith('http'))
427
+ return url
428
+ return new URL(url).pathname || '/'
429
+ }
430
+
431
+ function canonicalDisplayLabel(
432
+ url: string,
433
+ differenceKind: GscdumpIndexingUrl['canonicalMismatchKind'],
434
+ ): string {
435
+ return differenceKind === 'cross_domain' ? url : getPath(url)
436
+ }
437
+
438
+ function hasCanonicalMismatch(url: GscdumpIndexingUrl): boolean {
439
+ return url.canonicalMismatchKind === 'path'
440
+ || url.canonicalMismatchKind === 'cross_domain'
441
+ }
442
+
443
+ // §8.E — sitemap membership, parsed from the GSC coverageState (no new API).
444
+ // `true` = Google saw it in a submitted sitemap; `false` = indexed/known but NOT
445
+ // in the current sitemap (the gap worth surfacing); `null` = can't tell.
446
+ function inSitemap(url: GscdumpIndexingUrl): boolean | null {
447
+ const cs = url.coverageState?.toLowerCase() ?? ''
448
+ if (!cs)
449
+ return null
450
+ if (cs.includes('not submitted in sitemap'))
451
+ return false
452
+ if (cs.includes('submitted'))
453
+ return true
454
+ return null
455
+ }
456
+
457
+ const indexingStateLabels: Record<string, string> = {
458
+ INDEXING_ALLOWED: 'Allowed',
459
+ INDEXING_NOT_ALLOWED: 'Not allowed',
460
+ INDEXING_STATE_UNSPECIFIED: 'Unknown',
461
+ }
462
+
463
+ const robotsTxtStateLabels: Record<string, string> = {
464
+ ALLOWED: 'Allowed',
465
+ DISALLOWED: 'Blocked',
466
+ ROBOTS_TXT_STATE_UNSPECIFIED: 'Unknown',
467
+ }
468
+
469
+ const pageFetchStateLabels: Record<string, string> = {
470
+ SUCCESSFUL: 'Successful',
471
+ SOFT_404: 'Soft 404',
472
+ SERVER_ERROR: 'Server error',
473
+ REDIRECT_ERROR: 'Redirect error',
474
+ ACCESS_DENIED: 'Access denied',
475
+ BLOCKED_ROBOTS_TXT: 'Blocked by robots',
476
+ NOT_FOUND: 'Not found',
477
+ PAGE_FETCH_STATE_UNSPECIFIED: 'Unknown',
478
+ }
479
+
480
+ const crawlerLabels: Record<string, string> = {
481
+ DESKTOP: 'Desktop',
482
+ MOBILE: 'Mobile',
483
+ CRAWLING_USER_AGENT_UNSPECIFIED: 'Unknown',
484
+ }
485
+
486
+ const verdictLabels: Record<string, string> = {
487
+ PASS: 'Indexed',
488
+ FAIL: 'Not indexed',
489
+ PARTIAL: 'Partial',
490
+ NEUTRAL: 'Not indexed',
491
+ VERDICT_UNSPECIFIED: 'Unknown',
492
+ }
493
+
494
+ // Short labels for verbose GSC coverage state strings
495
+ const coverageShortLabels: Record<string, string> = {
496
+ 'Submitted and indexed': 'Indexed',
497
+ 'Indexed, not submitted in sitemap': 'Indexed (no sitemap)',
498
+ 'Crawled - currently not indexed': 'Crawled, not indexed',
499
+ 'Discovered - currently not indexed': 'Discovered, not indexed',
500
+ 'URL is unknown to Google': 'Unknown to Google',
501
+ 'Page with redirect': 'Redirect',
502
+ 'Blocked by robots.txt': 'Blocked (robots)',
503
+ 'Excluded by \'noindex\' tag': 'Noindex',
504
+ 'Soft 404': 'Soft 404',
505
+ 'Not found (404)': '404',
506
+ 'Server error (5xx)': 'Server error',
507
+ 'Duplicate without user-selected canonical': 'Duplicate',
508
+ 'Duplicate, Google chose different canonical than user': 'Canonical mismatch',
509
+ 'Alternate page with proper canonical tag': 'Canonical alternate',
510
+ 'Blocked due to unauthorized request (401)': 'Auth required',
511
+ 'Blocked due to access forbidden (403)': 'Forbidden',
512
+ }
513
+
514
+ function shortCoverage(raw: string | null | undefined): string {
515
+ if (!raw)
516
+ return '—'
517
+ return coverageShortLabels[raw] || raw
518
+ }
519
+
520
+ function humanize(raw: string | null | undefined, labels: Record<string, string>) {
521
+ if (!raw)
522
+ return '—'
523
+ return labels[raw] || raw.replace(/_/g, ' ').replace(/\b\w/g, c => c.toUpperCase()).replace(/\s(Unspecified|State)/gi, '').trim() || '—'
524
+ }
525
+
526
+ type SeverityType = 'success' | 'error' | 'warning' | 'neutral'
527
+
528
+ function stateSeverity(raw: string | null | undefined, successValues: string[]): SeverityType {
529
+ if (!raw)
530
+ return 'neutral'
531
+ if (raw.includes('UNSPECIFIED') || raw === 'NEUTRAL')
532
+ return 'neutral'
533
+ return successValues.includes(raw) ? 'success' : 'error'
534
+ }
535
+
536
+ // --- Column definitions ---
537
+
538
+ function renderHeader(label: string) {
539
+ return h(UiMetricLabelCell, { size: 'sm', tone: 'muted', label })
540
+ }
541
+
542
+ const columns = computed<UiTableColumn<GscdumpIndexingUrl>[]>(() => {
543
+ const cols: UiTableColumn<GscdumpIndexingUrl>[] = [
544
+ {
545
+ accessorKey: 'url',
546
+ header: () => renderHeader('URL'),
547
+ rowHeader: true,
548
+ cell: ({ row }) => {
549
+ const url = row.original
550
+ return h('div', { class: 'flex items-center gap-2.5 min-w-0 group/url' }, [
551
+ h('span', { class: 'truncate text-sm font-medium text-default', title: url.url }, getPath(url.url)),
552
+ h('a', {
553
+ 'href': url.url,
554
+ 'target': '_blank',
555
+ 'rel': 'noopener',
556
+ 'aria-label': `Open ${getPath(url.url)} in new tab`,
557
+ 'class': 'inline-flex min-h-11 min-w-11 shrink-0 items-center justify-center rounded-md opacity-100 outline-none motion-safe:transition-opacity focus-visible:opacity-100 focus-visible:ring-2 focus-visible:ring-primary sm:min-h-0 sm:min-w-0 sm:opacity-0 sm:group-hover/url:opacity-100',
558
+ 'onClick': (e: Event) => e.stopPropagation(),
559
+ }, [
560
+ h(UiIcon, { name: 'external', class: 'size-3 text-dimmed hover:text-default' }),
561
+ ]),
562
+ ])
563
+ },
564
+ },
565
+ {
566
+ accessorKey: 'verdict',
567
+ header: () => renderHeader('Status'),
568
+ cell: ({ row }) => {
569
+ const url = row.original
570
+ if (url.verdict === 'PASS')
571
+ return h('span', { class: 'text-xs text-muted' }, 'Indexed')
572
+ return h(UiSeverityDot, {
573
+ severity: stateSeverity(url.verdict, ['PASS']),
574
+ label: humanize(url.verdict, verdictLabels),
575
+ })
576
+ },
577
+ },
578
+ ]
579
+
580
+ cols.push({
581
+ accessorKey: 'coverageState',
582
+ header: () => renderHeader('Coverage'),
583
+ visibleFrom: 'md',
584
+ cell: ({ row }) => {
585
+ const url = row.original
586
+ return h('span', {
587
+ class: 'text-xs text-muted truncate block',
588
+ title: url.coverageState,
589
+ }, shortCoverage(url.coverageState))
590
+ },
591
+ })
592
+
593
+ cols.push({
594
+ id: 'inSitemap',
595
+ header: () => renderHeader('In sitemap'),
596
+ visibleFrom: 'md',
597
+ cell: ({ row }) => {
598
+ const member = inSitemap(row.original)
599
+ if (member === null)
600
+ return h('span', { class: 'text-xs text-dimmed' }, '—')
601
+ return member
602
+ ? h('span', { class: 'text-xs text-muted' }, 'In sitemap')
603
+ : h(UiSeverityDot, { severity: 'warning' as const, label: 'Not in sitemap' })
604
+ },
605
+ })
606
+
607
+ cols.push({
608
+ accessorKey: 'lastCrawlTime',
609
+ header: () => renderHeader('Last crawl'),
610
+ visibleFrom: 'lg',
611
+ cell: ({ row }) => {
612
+ const url = row.original
613
+ return h('span', { class: 'text-xs text-muted tabular-nums' }, formatDate(url.lastCrawlTime))
614
+ },
615
+ })
616
+ cols.push({
617
+ id: 'flags',
618
+ header: () => renderHeader('Flags'),
619
+ align: 'center' as const,
620
+ visibleFrom: 'lg',
621
+ cell: ({ row }) => {
622
+ const url = row.original
623
+ const flags: VNode[] = []
624
+ if (hasCanonicalMismatch(url)) {
625
+ flags.push(h('div', { class: 'size-5 rounded bg-accented flex items-center justify-center', title: 'Canonical Mismatch' }, [
626
+ h(UiIcon, { name: 'compare', class: 'size-3 text-muted' }),
627
+ ]))
628
+ }
629
+ if (url.crawlingUserAgent === 'DESKTOP') {
630
+ flags.push(h('div', { class: 'size-5 rounded bg-accented flex items-center justify-center', title: 'Desktop Crawl' }, [
631
+ h(UiIcon, { name: 'monitor', class: 'size-3 text-muted' }),
632
+ ]))
633
+ }
634
+ if (url.pageFetchState === 'SOFT_404') {
635
+ flags.push(h('div', { class: 'size-5 rounded bg-accented flex items-center justify-center', title: 'Soft 404' }, [
636
+ h(UiIcon, { name: 'file-x', class: 'size-3 text-muted' }),
637
+ ]))
638
+ }
639
+ if (url.richResultsVerdict === 'PASS') {
640
+ flags.push(h('div', { class: 'size-5 rounded bg-accented flex items-center justify-center', title: 'Rich Results' }, [
641
+ h(UiIcon, { name: 'ai', class: 'size-3 text-muted' }),
642
+ ]))
643
+ }
644
+ flags.push(h(UiIcon, {
645
+ 'name': 'expand',
646
+ 'class': ['size-3.5 text-dimmed motion-safe:transition-transform motion-safe:duration-200', row.getIsExpanded() && 'rotate-180'],
647
+ 'aria-hidden': 'true',
648
+ }))
649
+ return h('div', { class: 'flex items-center justify-center gap-1' }, flags)
650
+ },
651
+ })
652
+
653
+ return cols
654
+ })
655
+ function consolidationTargetCount(row: ConsolidationTargetRow): number {
656
+ return row.count
657
+ }
658
+ function richResultsTotal(row: RichResultDistributionRow): number {
659
+ return row.valid + row.invalid
660
+ }
661
+ function indexingUrlId(row: GscdumpIndexingUrl): string {
662
+ return row.url
663
+ }
664
+ </script>
665
+
666
+ <template>
667
+ <div class="space-y-3" data-pro-indexing-section="urls">
668
+ <!-- Facet panel: consolidation targets (canonical_mismatch) -->
669
+ <UiDataList
670
+ v-if="facet === 'canonical_mismatch'"
671
+ title="Consolidation targets"
672
+ icon="compare"
673
+ tooltip="Google is folding these pages onto another canonical. Point your canonical at the same URL, or remove the duplication."
674
+ :items="consolidationData?.consolidationTargets ?? []"
675
+ :loading="consolidationStatus === 'pending'"
676
+ :bar-value="consolidationTargetCount"
677
+ empty-icon="compare"
678
+ empty-text="No consolidation targets found."
679
+ >
680
+ <template #default="{ item }">
681
+ <a
682
+ :href="item.google_canonical"
683
+ target="_blank"
684
+ rel="noopener"
685
+ class="font-mono text-sm truncate text-default hover:text-primary motion-safe:transition-colors"
686
+ :title="item.google_canonical"
687
+ >{{ getPath(item.google_canonical) }}</a>
688
+ <span class="text-sm text-muted shrink-0">{{ item.count }} pages</span>
689
+ </template>
690
+ </UiDataList>
691
+
692
+ <!-- Facet panel: rich-results distribution (sample-scoped, §5.6) -->
693
+ <div v-else-if="facet === 'rich_results'" class="space-y-2">
694
+ <div class="flex items-baseline justify-between gap-3 px-1">
695
+ <p class="text-mini font-semibold uppercase tracking-[0.08em] text-dimmed">
696
+ Rich results · across {{ richResultsScopeCount }} URLs on this page
697
+ </p>
698
+ <p v-if="richResultsInvalidTotal" class="text-xs font-medium text-error shrink-0">
699
+ Review {{ richResultsInvalidTotal }} invalid
700
+ </p>
701
+ <p v-else class="text-xs text-muted shrink-0">
702
+ All valid
703
+ </p>
704
+ </div>
705
+ <UiDataList
706
+ :items="richResultsDistribution"
707
+ :bar-value="richResultsTotal"
708
+ empty-icon="ai"
709
+ empty-text="No rich results on this page."
710
+ >
711
+ <template #default="{ item }">
712
+ <span class="text-sm font-medium text-default truncate">{{ item.type }}</span>
713
+ <span class="text-sm shrink-0 tabular-nums">
714
+ <span class="text-muted">{{ item.valid }} valid</span>
715
+ <span v-if="item.invalid" class="text-error ml-2">{{ item.invalid }} invalid</span>
716
+ </span>
717
+ </template>
718
+ </UiDataList>
719
+ </div>
720
+
721
+ <!-- No-facet summary line: sitemap membership of the URLs on this page. -->
722
+ <p v-else-if="notInSitemapCount > 0" class="text-xs text-muted px-1">
723
+ <span class="font-medium text-default">{{ notInSitemapCount }}</span>
724
+ of the {{ displayUrls.length }} URLs on this page {{ notInSitemapCount === 1 ? 'is' : 'are' }} not in your current sitemap.
725
+ </p>
726
+
727
+ <component
728
+ :is="TableShell"
729
+ :q="q"
730
+ :filter="statusFilter"
731
+ :filters="statusFilters"
732
+ :is-loading="isLoading"
733
+ :error="displayError"
734
+ :rows="displayUrls"
735
+ :table-data="displayUrls"
736
+ :total="total"
737
+ :page="page"
738
+ :page-size="pageSize"
739
+ :columns="columns"
740
+ :has-cached-data="Boolean(data)"
741
+ :has-external-filter="Boolean(issueFilter || facet)"
742
+ :show-saved-filters="false"
743
+ :row-id="indexingUrlId"
744
+ :initial-expanded-row-id="initialIssue ? displayUrls[0]?.url : undefined"
745
+ table-size="xs"
746
+ table-label="Indexing URLs"
747
+ search-placeholder="Search URLs…"
748
+ empty-icon="file-search"
749
+ empty-title="No URLs found"
750
+ empty-default-description="URLs will appear here once Google returns URL Inspection evidence."
751
+ item-label="URLs"
752
+ row-clickable
753
+ @update:q="updateSearch"
754
+ @update:page="updatePage"
755
+ @toggle-filter="toggleStatusFilter"
756
+ @clear-filters="clearTableFilters"
757
+ @retry="refresh"
758
+ >
759
+ <template #toolbar>
760
+ <UiSkeleton v-if="isDiagnosticsLoading" class="h-11 w-20 sm:h-7" />
761
+
762
+ <UiChip
763
+ v-else-if="diagnosticsData && !hasAnyIssues"
764
+ purpose="status"
765
+ status="success"
766
+ icon="success"
767
+ role="status"
768
+ >
769
+ No issues
770
+ </UiChip>
771
+
772
+ <UiPopover v-else-if="hasAnyIssues" v-model:open="issuePopoverOpen">
773
+ <UiButton
774
+ purpose="secondary"
775
+ size="xs"
776
+ class="min-h-11 sm:min-h-0"
777
+ aria-label="Filter by issue type"
778
+ :aria-expanded="issuePopoverOpen"
779
+ >
780
+ <UiIcon name="warning" class="size-3.5" aria-hidden="true" />
781
+ <span>Issues</span>
782
+ <span v-if="totalErrorCount" class="tabular-nums text-error">{{ useProHumanFriendlyNumber(totalErrorCount) }}</span>
783
+ <span v-else-if="totalWarningCount" class="tabular-nums text-warning">{{ useProHumanFriendlyNumber(totalWarningCount) }}</span>
784
+ <UiIcon
785
+ name="expand"
786
+ class="size-3 motion-safe:transition-transform motion-safe:duration-200"
787
+ :class="issuePopoverOpen && 'rotate-180'"
788
+ aria-hidden="true"
789
+ />
790
+ </UiButton>
791
+
792
+ <template #panel>
793
+ <div class="max-h-80 w-72 space-y-1 overflow-y-auto p-1.5">
794
+ <template v-for="group in issuesBySeverity" :key="group.severity">
795
+ <div class="px-2 pb-1 pt-2 text-label text-dimmed">
796
+ <UiSeverityDot :severity="group.severity === 'error' ? 'error' : group.severity === 'warning' ? 'warning' : 'info'" :label="group.config.label" />
797
+ </div>
798
+ <UiButton
799
+ v-for="issue in group.issues"
800
+ :key="issue.type"
801
+ purpose="quiet"
802
+ size="sm"
803
+ class="min-h-11 w-full justify-start sm:min-h-0"
804
+ :class="isIssueActive(issue.type) && 'bg-accented'"
805
+ :aria-pressed="isIssueActive(issue.type)"
806
+ @click="handleIssueClick(issue.type)"
807
+ >
808
+ <UiIcon :name="issueIcons[issue.type] || 'caution'" class="size-3.5 shrink-0 text-dimmed" aria-hidden="true" />
809
+ <span class="truncate text-default" :title="issue.label">{{ issue.label }}</span>
810
+ <span class="ml-auto shrink-0 font-medium text-muted">{{ useProHumanFriendlyNumber(issue.count) }}</span>
811
+ </UiButton>
812
+ </template>
813
+ </div>
814
+ </template>
815
+ </UiPopover>
816
+
817
+ <UiButton
818
+ v-if="issueFilter && activeIssueData && !facet"
819
+ purpose="secondary"
820
+ size="xs"
821
+ class="min-h-11 sm:min-h-0"
822
+ :aria-label="`Clear ${activeIssueData.label} filter`"
823
+ @click="handleIssueClick(activeIssueData.type)"
824
+ >
825
+ <UiIcon :name="issueIcons[activeIssueData.type] || 'caution'" class="size-3 text-muted" aria-hidden="true" />
826
+ {{ activeIssueData.label }}
827
+ <span class="text-muted">{{ useProHumanFriendlyNumber(activeIssueData.count) }}</span>
828
+ <UiIcon name="close" class="size-3 text-dimmed" aria-hidden="true" />
829
+ </UiButton>
830
+
831
+ <UiButton
832
+ v-if="facet"
833
+ purpose="secondary"
834
+ size="xs"
835
+ class="min-h-11 sm:min-h-0"
836
+ :aria-label="`Clear ${facetLabel} filter`"
837
+ @click="clearFacet"
838
+ >
839
+ <UiIcon :name="facet === 'canonical_mismatch' ? 'compare' : 'ai'" class="size-3 text-muted" aria-hidden="true" />
840
+ {{ facetLabel }}
841
+ <UiIcon name="close" class="size-3 text-dimmed" aria-hidden="true" />
842
+ </UiButton>
843
+
844
+ <UiSyncDot v-if="fetchStatus === 'pending' && data" status="syncing" label="Refreshing" />
845
+ </template>
846
+
847
+ <template #notices>
848
+ <Transition
849
+ enter-active-class="motion-safe:transition-[opacity,max-height] motion-safe:duration-200 motion-safe:ease-out"
850
+ enter-from-class="max-h-0 opacity-0"
851
+ enter-to-class="max-h-64 opacity-100"
852
+ leave-active-class="motion-safe:transition-[opacity,max-height] motion-safe:duration-150 motion-safe:ease-in"
853
+ leave-from-class="max-h-64 opacity-100"
854
+ leave-to-class="max-h-0 opacity-0"
855
+ mode="out-in"
856
+ >
857
+ <div
858
+ v-if="activeIssueData && facet !== 'canonical_mismatch'"
859
+ :key="activeIssueData.type"
860
+ class="rounded-lg border border-default bg-elevated/50 px-4 py-3"
861
+ >
862
+ <div class="flex items-start gap-2.5">
863
+ <UiIcon
864
+ :name="issueIcons[activeIssueData.type] || 'caution'"
865
+ class="mt-0.5 size-4 shrink-0 text-muted"
866
+ aria-hidden="true"
867
+ />
868
+ <div class="min-w-0">
869
+ <h4 class="text-sm font-semibold">
870
+ {{ activeIssueData.label }}
871
+ </h4>
872
+ <p class="mt-0.5 text-sm text-muted">
873
+ {{ useProHumanFriendlyNumber(activeIssueData.count) }} URLs affected
874
+ </p>
875
+ <p class="mt-1.5 text-sm leading-relaxed text-muted">
876
+ {{ activeIssueData.description }}
877
+ </p>
878
+ <div class="mt-2 flex items-start gap-2 rounded-md bg-accented/50 p-2.5">
879
+ <UiIcon name="tip" class="mt-0.5 size-3.5 shrink-0 text-dimmed" aria-hidden="true" />
880
+ <p class="text-sm leading-relaxed text-default">
881
+ {{ activeIssueData.fix }}
882
+ </p>
883
+ </div>
884
+ </div>
885
+ </div>
886
+ </div>
887
+ </Transition>
888
+ </template>
889
+
890
+ <template #expanded-component="{ row: url }">
891
+ <div :key="url.url" class="idx-expanded">
892
+ <section
893
+ v-if="activeRemediation"
894
+ class="mb-3 border-b border-default pb-3"
895
+ aria-label="Recommended remediation"
896
+ >
897
+ <p class="text-label">
898
+ {{ activeRemediation.title }}
899
+ </p>
900
+ <p class="mt-1 text-sm text-default">
901
+ {{ activeRemediation.detail }}
902
+ </p>
903
+ <p class="mt-2 text-sm text-muted">
904
+ <span class="font-medium text-default">Why:</span>
905
+ {{ activeRemediation.why }}
906
+ </p>
907
+ <UiButton
908
+ :href="activeRemediation.source.url"
909
+ target="_blank"
910
+ purpose="link"
911
+ trailing-icon="external"
912
+ size="xs"
913
+ class="mt-2 min-h-11 sm:min-h-0"
914
+ >
915
+ {{ activeRemediation.source.label }}
916
+ </UiButton>
917
+ </section>
918
+ <!-- Crawl pipeline -->
919
+ <IndexingCrawlPipeline
920
+ class="mb-3"
921
+ variant="inline"
922
+ :steps="[
923
+ { label: 'Robots.txt', status: stateSeverity(url.robotsTxtState, ['ALLOWED']), value: humanize(url.robotsTxtState, robotsTxtStateLabels) },
924
+ { label: 'Fetch', status: stateSeverity(url.pageFetchState, ['SUCCESSFUL']), value: humanize(url.pageFetchState, pageFetchStateLabels) },
925
+ { label: 'Indexing', status: stateSeverity(url.indexingState, ['INDEXING_ALLOWED']), value: humanize(url.indexingState, indexingStateLabels) },
926
+ { label: 'Verdict', status: stateSeverity(url.verdict, ['PASS']), value: humanize(url.verdict, verdictLabels) },
927
+ ]"
928
+ />
929
+
930
+ <!-- Coverage reason -->
931
+ <div
932
+ v-if="url.coverageState"
933
+ class="idx-coverage"
934
+ :class="url.verdict === 'PASS' ? 'idx-coverage--pass' : 'idx-coverage--issue'"
935
+ >
936
+ <UiIcon name="note" class="size-3 shrink-0 mt-px text-dimmed" />
937
+ <span class="text-xs" :class="url.verdict === 'PASS' ? 'text-muted' : 'text-default'">{{ url.coverageState }}</span>
938
+ </div>
939
+
940
+ <!-- Detail grid -->
941
+ <div class="idx-detail-grid">
942
+ <!-- Crawler -->
943
+ <div class="idx-detail">
944
+ <span class="idx-detail-label">Crawler</span>
945
+ <span class="text-xs text-muted">{{ humanize(url.crawlingUserAgent ?? '', crawlerLabels) }}</span>
946
+ </div>
947
+
948
+ <!-- Last crawl -->
949
+ <div class="idx-detail">
950
+ <span class="idx-detail-label">Last Crawl</span>
951
+ <span class="text-xs font-medium text-default">{{ formatFullDate(url.lastCrawlTime) }}</span>
952
+ </div>
953
+
954
+ <!-- Checks -->
955
+ <div class="idx-detail">
956
+ <span class="idx-detail-label">Checks</span>
957
+ <span class="text-xs text-muted">{{ url.checkCount }}</span>
958
+ </div>
959
+
960
+ <!-- Rich Results -->
961
+ <div v-if="url.richResultsVerdict && !url.richResultsVerdict.includes('UNSPECIFIED')" class="idx-detail">
962
+ <span class="idx-detail-label">Rich Results</span>
963
+ <div class="flex flex-wrap items-center gap-1.5">
964
+ <UiSeverityDot :severity="stateSeverity(url.richResultsVerdict, ['PASS'])" :label="humanize(url.richResultsVerdict, verdictLabels)" />
965
+ <span
966
+ v-for="item in (url.richResultsItems || [])"
967
+ :key="item.richResultType"
968
+ class="idx-chip"
969
+ >
970
+ {{ item.richResultType }}
971
+ </span>
972
+ </div>
973
+ </div>
974
+ </div>
975
+
976
+ <!-- Canonicals -->
977
+ <div v-if="url.userCanonical || url.googleCanonical" class="idx-canonicals">
978
+ <div class="idx-detail">
979
+ <span class="idx-detail-label">Canonical</span>
980
+ <span class="text-xs text-muted font-mono truncate" :title="url.userCanonical || undefined">
981
+ {{ url.userCanonical ? getPath(url.userCanonical) : '—' }}
982
+ </span>
983
+ </div>
984
+ <div v-if="hasCanonicalMismatch(url)" class="idx-detail">
985
+ <span class="idx-detail-label">Google sees</span>
986
+ <span class="text-xs font-mono truncate text-warning" :title="url.googleCanonical || undefined">
987
+ {{ url.googleCanonical ? canonicalDisplayLabel(url.googleCanonical, url.canonicalMismatchKind) : '—' }}
988
+ <span class="idx-chip text-warning ml-1">mismatch</span>
989
+ </span>
990
+ </div>
991
+ </div>
992
+
993
+ <!-- Actions -->
994
+ <div class="flex flex-wrap items-center gap-2 mt-4 pt-3 border-t border-default">
995
+ <UiButton
996
+ :href="url.url"
997
+ target="_blank"
998
+ size="xs"
999
+ class="min-h-11 sm:min-h-0"
1000
+ purpose="secondary"
1001
+ icon="external"
1002
+ label="Open URL"
1003
+ />
1004
+ <UiButton
1005
+ :href="gscConsoleUrl({ siteLabel: indexingGscSiteLabel, resource: 'url-inspection', page: url.url })"
1006
+ target="_blank"
1007
+ size="xs"
1008
+ class="min-h-11 sm:min-h-0"
1009
+ purpose="secondary"
1010
+ icon="search"
1011
+ label="Inspect in GSC"
1012
+ />
1013
+ <UiButton
1014
+ v-if="inspectUrls"
1015
+ size="xs"
1016
+ class="min-h-11 sm:min-h-0"
1017
+ purpose="secondary"
1018
+ :icon="inflightUrls.has(url.url) ? 'loading' : 'refresh'"
1019
+ :label="inflightUrls.has(url.url) ? 'Re-checking…' : 'Re-check with Google'"
1020
+ :disabled="inflightUrls.has(url.url) || inspectBudgetRemaining === 0"
1021
+ v-bind="{ title: inspectBudgetRemaining === 0 ? 'Daily inspection limit reached for this site' : 'Hit Google URL Inspection now (uses 1 of your daily 1800 site budget)' }"
1022
+ @click="handleReinspect(url)"
1023
+ />
1024
+ </div>
1025
+ </div>
1026
+ </template>
1027
+ </component>
1028
+ </div>
1029
+ </template>
1030
+
1031
+ <style scoped>
1032
+ .idx-chip {
1033
+ display: inline-flex;
1034
+ align-items: center;
1035
+ padding: 0.125rem 0.375rem;
1036
+ border-radius: 0.25rem;
1037
+ font-size: 11px;
1038
+ color: var(--ui-text-muted);
1039
+ background: var(--ui-bg-accented);
1040
+ }
1041
+
1042
+ .idx-expanded {
1043
+ padding: 1rem 1.25rem;
1044
+ border-radius: 0.5rem;
1045
+ background: color-mix(in srgb, var(--ui-bg-elevated) 20%, transparent);
1046
+ border: 1px solid color-mix(in srgb, var(--ui-border) 20%, transparent);
1047
+ }
1048
+
1049
+ .idx-coverage {
1050
+ display: flex;
1051
+ align-items: flex-start;
1052
+ gap: 0.375rem;
1053
+ padding: 0.5rem 0.625rem;
1054
+ border-radius: 0.375rem;
1055
+ margin-bottom: 0.75rem;
1056
+ }
1057
+
1058
+ .idx-coverage--pass {
1059
+ background: color-mix(in srgb, var(--color-success-400) 5%, transparent);
1060
+ border: 1px solid color-mix(in srgb, var(--color-success-400) 10%, transparent);
1061
+ }
1062
+
1063
+ .idx-coverage--issue {
1064
+ background: color-mix(in srgb, var(--color-warning-500) 5%, transparent);
1065
+ border: 1px solid color-mix(in srgb, var(--color-warning-500) 10%, transparent);
1066
+ }
1067
+
1068
+ .idx-detail-grid {
1069
+ display: grid;
1070
+ grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
1071
+ gap: 0.625rem 1.5rem;
1072
+ }
1073
+
1074
+ .idx-detail {
1075
+ display: flex;
1076
+ flex-direction: column;
1077
+ gap: 0.125rem;
1078
+ }
1079
+
1080
+ .idx-detail-label {
1081
+ font-size: 10px;
1082
+ font-weight: 500;
1083
+ text-transform: uppercase;
1084
+ letter-spacing: 0.04em;
1085
+ color: var(--ui-text-dimmed);
1086
+ }
1087
+
1088
+ .idx-canonicals {
1089
+ display: flex;
1090
+ flex-direction: column;
1091
+ gap: 0.375rem;
1092
+ margin-top: 0.75rem;
1093
+ padding-top: 0.75rem;
1094
+ border-top: 1px solid color-mix(in srgb, var(--ui-border) 30%, transparent);
1095
+ }
1096
+ </style>