You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Portal home: cut the mock blocks, wire the rest to real data (Stirling-Tools#6931)
## What this changes
Cleaning up the portal home page. Most of what was under the plan card
was mock — it hit endpoints that don't exist on any backend, so on SaaS
it just showed a wall of "—" and "Nothing here yet". I removed the fake
stuff and wired the bits worth keeping to real data.
**Scrapped (all mock, no backend anywhere — self-hosted included):**
- The "No usage yet" usage chart
- The KPI strip (Docs/30d, Pipelines, Agents active, Eval pass rate)
- The "Build a pipeline in seconds" fork wizard (fake build animation,
deploy was a TODO)
- The Sources/Pipelines/Agents product cards
- The "Popular use cases" marketing cards
- Enterprise region health
- The "Try a PDF operation" runner
Deleted their component/api/mock/MSW/story files too, plus the now-dead
i18n keys and CSS.
**Wired to real data (finished, not removed):**
- The plan strip and the sidebar footer now show the **real** 30-day
processed-PDF count from `/api/v1/usage/fleet-stats` (was a mock KPI).
Shows "—" honestly when the backend can't compute it, never a fake
number.
- **Recent activity** now reads the **real audit log** — the same
endpoint the Infrastructure → Audit tab uses.
**Result:** one simple layout for all tiers — plan strip → recent
activity + quick actions → "What runs on your PDFs" (the real policy
summary). Every block is backed by data that actually exists.
Net: **−3,221 / +89 lines**, 17 files removed.
## Testing
typecheck (all variants), full test suite (1211), saas + proprietary
builds, lint, format, storybook build, toml-sort — all green. The
`unusedTranslations` test guarantees no orphaned i18n keys were left
behind.
subtitle = "Drop a sample, pick an op, see what Stirling returns."
7277
-
title = "Try a PDF operation"
7278
-
7279
-
[portal.opRunner.action]
7280
-
close = "Close"
7281
-
openBuilder = "Open the pipeline builder"
7282
-
run = "Run operation"
7283
-
runAgain = "Run again"
7284
-
running = "Running…"
7285
-
7286
-
[portal.opRunner.drop]
7287
-
hint = "or use a sample document."
7288
-
pickAnother = "Pick another sample"
7289
-
replaceHint = "Drop again or pick another sample to replace."
7290
-
title = "Drop a PDF here"
7291
-
useSample = "Use a sample"
7292
-
7293
-
[portal.opRunner.empty]
7294
-
description = "Once operations are published, they'll show up here."
7295
-
title = "No featured ops yet"
7296
-
7297
-
[portal.opRunner.error]
7298
-
title = "The operation didn't complete"
7299
-
unknown = "Unknown error"
7300
-
7301
-
[portal.opRunner.hint]
7302
-
aSample = "a sample"
7303
-
press = "Press"
7304
-
ready = "Ready"
7305
-
toInvoke = "to invoke"
7306
-
7307
-
[portal.opRunner.hint.runOn]
7308
-
before = "Run"
7309
-
middle = "on"
7310
-
7311
-
[portal.opRunner.running]
7312
-
title = "Running {{label}}…"
7313
-
7314
-
[portal.opRunner.status]
7315
-
completed = "Completed"
7316
-
failed = "Failed"
7317
-
7318
7206
[portal.pipelines]
7319
7207
subtitle = "Every automated document pipeline on the backend: an ordered chain of operations over a set of sources, run on a trigger. Click a row for its steps and sources."
7320
7208
title = "Pipelines"
@@ -7573,9 +7461,6 @@ soon = "Soon"
7573
7461
7574
7462
[portal.processingStatus]
7575
7463
managePlan = "Manage plan"
7576
-
pdfsThisMonth = "PDFs this month"
7577
-
progressLabel = "{{used}} of {{cap}} PDFs used this month"
7578
-
upgrade = "Upgrade"
7579
7464
volumeSuffix = "PDFs processed · last 30 days"
7580
7465
7581
7466
[portal.procurement]
@@ -7944,8 +7829,8 @@ appEditor = "Editor"
7944
7829
appProcessor = "Processor"
7945
7830
brandSuffix = "Stirling Processor"
7946
7831
docsCount = "{{docs}} docs"
7947
-
docsProcessed = "Docs processed"
7948
7832
linkAccount = "Link Stirling account"
7833
+
planEditor = "Editor plan"
7949
7834
planEnterprise = "Enterprise plan"
7950
7835
planProcessor = "Processor plan"
7951
7836
primaryNav = "Primary navigation"
@@ -8053,40 +7938,6 @@ action = "Sign in again"
8053
7938
body = "Your Stirling account session has expired. Sign in again to view billing — your instance stays linked."
8054
7939
title = "Session expired"
8055
7940
8056
-
[portal.usageChart]
8057
-
defaultLabel = "Docs processed · last 30 days"
8058
-
delta = "{{pct}}% vs prior 30d"
8059
-
docsValue = "{{value}} docs"
8060
-
srAnnounce = "{{date}}: {{value}} docs"
8061
-
8062
-
[portal.useCases]
8063
-
title = "Popular use cases"
8064
-
viewAll = "View all pipelines"
8065
-
8066
-
[portal.useCases.items.authenticity]
8067
-
blurb = "Cryptographic checks at the document boundary — signature validation, tamper detection, signing flows for outbound documents. Trust decisions in the pipeline, not your app code."
8068
-
cta = "Try authenticity check"
8069
-
eyebrow = "AUTHENTICITY"
8070
-
title = "Verify signatures and detect tampering"
8071
-
8072
-
[portal.useCases.items.autoRouting]
8073
-
blurb = "One classifier reads what arrived — KYC form, invoice, contract, COI — and routes to the right downstream pipeline. No manual triage, no docs in the wrong workflow."
8074
-
cta = "Build a classifier pipeline"
8075
-
eyebrow = "AUTO-ROUTING"
8076
-
title = "Auto-classify and route incoming documents"
8077
-
8078
-
[portal.useCases.items.piiRedaction]
8079
-
blurb = "Strip sensitive fields before storage, indexing, or LLM processing. Schema-aware, per-field audit, BYOK or HYOK keys. Compliance at the document boundary, not per pipeline."
8080
-
cta = "See redaction pipelines"
8081
-
eyebrow = "PII REDACTION"
8082
-
title = "Redact PII before it leaves your stack"
8083
-
8084
-
[portal.useCases.items.trainingData]
8085
-
blurb = "Batch-import an archive, redact PII, classify, chunk, and emit ready-to-load JSON for fine-tuning, eval sets, or RAG. Self-completing and replayable."
0 commit comments