dashboard page fixes v1 (visual only)

This commit is contained in:
MatejGhub committed 2026-09-12 23:17:23 +02:00
1 parent 32c6c828b1
commit 90abd6846c
29 files changed
+455 -557

No files matched your search

+14 -14
View File
@@ -20,7 +20,7 @@ const TRY_IT_TIP =
export const DOCS_GUIDE_TREE: DocsGuideTree = {
version: 2,
disclaimer:
"This is a guided router for the public API docs — not a chat bot and not an AI. Pick options to land on the right endpoints.",
"This is a guided router for the public API docs, not a chat bot or AI. Pick options to find the right endpoints.",
rootId: "root",
escapeLinks: [
{ label: "Browse API reference", href: "/docs#overview", kind: "docs" },
@@ -33,7 +33,7 @@ export const DOCS_GUIDE_TREE: DocsGuideTree = {
id: "root",
pathKey: "start",
title: "What are you trying to do?",
body: "I’ll route you to the right Descrybe public API docs (/api/v1). Pick one option — no free-text needed.",
body: "I’ll route you to the right Descrybe public API docs (/api/v1). Pick one option; no free text is needed.",
choices: [
{
id: "first",
@@ -99,7 +99,7 @@ export const DOCS_GUIDE_TREE: DocsGuideTree = {
{
id: "process",
label: "Process / enrich products",
description: "Two contracts — choose carefully",
description: "Two contracts; choose carefully",
nextId: "q.process"
},
{
@@ -116,7 +116,7 @@ export const DOCS_GUIDE_TREE: DocsGuideTree = {
id: "q.feeds",
pathKey: "feeds",
synonyms: ["supplier feed", "import csv", "sync feed"],
title: "Feeds — what do you need?",
title: "Feeds: what do you need?",
choices: [
{
id: "create",
@@ -158,7 +158,7 @@ export const DOCS_GUIDE_TREE: DocsGuideTree = {
},
{
id: "chooser",
label: "Not sure — compare both",
label: "Not sure? Compare both",
nextId: "answer.process.chooser"
}
]
@@ -169,7 +169,7 @@ export const DOCS_GUIDE_TREE: DocsGuideTree = {
id: "q.export",
pathKey: "export",
synonyms: ["channel feed", "google shopping", "export csv"],
title: "Export feeds — what do you need?",
title: "Export feeds: what do you need?",
choices: [
{
id: "setup",
@@ -323,10 +323,10 @@ export const DOCS_GUIDE_TREE: DocsGuideTree = {
body: "1) Create or copy a company API key (dk_…). 2) Jump to Authorize and enter Authorization: Bearer dk_… (preferred) or X-API-Key. 3) Confirm the server URL matches your environment. 4) Open any operation below, fill params/body from the examples, and click TRY. Unauthenticated smoke: GET /health. Authenticated smoke: GET /products.",
authNote: AUTH_NOTE,
endpoints: [
endpoint("GET", "/health", "No key required — confirm the viewer reaches the API"),
endpoint("GET", "/health", "No key required; confirm the viewer reaches the API"),
endpoint("GET", "/products", "Authenticated smoke list (page=1&limit=1)"),
endpoint("POST", "/products/process", "EAN batch — after Authorize"),
endpoint("POST", "/process", "Jobs process — after Authorize")
endpoint("POST", "/products/process", "EAN batch after Authorize"),
endpoint("POST", "/process", "Jobs process after Authorize")
],
links: [
{ label: "Authorize panel", href: docsAuthHref(), kind: "docs" },
@@ -421,7 +421,7 @@ export const DOCS_GUIDE_TREE: DocsGuideTree = {
synonyms: ["ean", "items[].ean", "products/process"],
title: "Public process (EAN batch)",
outcome: "Start and poll enrichment using POST/GET /products/process.",
body: "POST body uses items[].ean (preferred). Responses use HTTP 200 with { data: { process_id, … } }. Poll GET until COMPLETED. items[].description is generated HTML product copy (headings, paragraphs, lists) whose length follows the category description formula — not a one- or two-sentence blurb. Some categories request very long multi-section articles. Handler also accepts raw_product_ids as an alternate on this same path.",
body: "POST body uses items[].ean (preferred). Responses use HTTP 200 with { data: { process_id, … } }. Poll GET until COMPLETED. items[].description is generated HTML product copy (headings, paragraphs, lists) whose length follows the category description formula, not a one- or two-sentence blurb. Some categories request very long multi-section articles. Handler also accepts raw_product_ids as an alternate on this same path.",
authNote: AUTH_NOTE,
endpoints: [
endpoint("POST", "/products/process", "Start processing by EAN"),
@@ -437,7 +437,7 @@ export const DOCS_GUIDE_TREE: DocsGuideTree = {
{ label: "Authorize & Try", href: docsAuthHref(), kind: "docs" },
{ label: "Processing UI", href: "/processing", kind: "app" }
],
warning: "Not an alias of POST/GET /process — different body and envelope.",
warning: "Not an alias of POST/GET /process; it uses a different body and envelope.",
relatedIds: ["answer.process.jobs", "answer.process.chooser", "answer.products"]
},
@@ -474,7 +474,7 @@ export const DOCS_GUIDE_TREE: DocsGuideTree = {
synonyms: ["which process", "dual contract"],
title: "Which process API should I use?",
outcome: "Pick EAN batch for integrations; pick /process for dashboard-style jobs.",
body: "1) Public process: POST/GET /products/process — items[].ean, HTTP 200 { data: { process_id } }. 2) Jobs: POST/GET /process — raw_product_ids, flat JSON, 202 on start. Mixing envelopes is the most common integration bug.",
body: "1) Public process: POST/GET /products/process uses items[].ean and returns HTTP 200 { data: { process_id } }. 2) Jobs: POST/GET /process uses raw_product_ids, flat JSON, and returns 202 on start. Mixing envelopes is the most common integration bug.",
authNote: AUTH_NOTE,
endpoints: [
endpoint("POST", "/products/process", "EAN batch"),
@@ -637,7 +637,7 @@ export const DOCS_GUIDE_TREE: DocsGuideTree = {
{ label: "Authorize", href: docsAuthHref(), kind: "docs" },
{ label: "Products UI", href: "/products", kind: "app" }
],
warning: "Reset is destructive to processed state — confirm before calling in production.",
warning: "Reset is destructive to processed state. Confirm before calling it in production.",
relatedIds: ["answer.products", "answer.process.jobs"]
},
@@ -676,7 +676,7 @@ export const DOCS_GUIDE_TREE: DocsGuideTree = {
pathKey: "billing",
synonyms: ["credits", "plan", "upgrade", "limits"],
title: "Billing and plan limits",
outcome: "Plan and credit limits are enforced server-side on processing — manage them in the app, not via /api/v1.",
outcome: "Plan and credit limits are enforced server-side during processing. Manage them in the app, not via /api/v1.",
body: "The public API-key surface does not expose checkout. Use Plans / Billing in the web app. Insufficient credits or free-tier gates typically surface as processing failures rather than OpenAPI operations.",
links: [
{ label: "Plans", href: "/plans", kind: "app" },