← Corpus / dididecks-ai / sitemap

/data-assets/companies — reviewer audit of portfolio-company metadata + brand assets across every engagement layout

Reviewer audit over `data/**/portfolio/*.md` — companies are told from people by the *absence* of `role_class`. SSR'd behind auth.

Path
sitemap/routes/data-assets-companies.md
Authors
Michael Staton

/data-assets/companies

Data flow

  • Build-/request-time globs <consumer>/data/**/portfolio/*.md via import.meta.glob({eager: true, query: "?raw", import: "default"})
  • Parses frontmatter; filters to rows where role_class is unset (Persons are the inverse filter — see data-assets-people)
  • Parallel asset glob *.{png,jpg,jpeg,webp,avif,svg,ico} colocated with each .md discovers the row’s trademark__ / favicon__ files
  • Renders one table row per company with: slug, name, homepage (link), sector, brand-asset previews (trademark + favicon), confidence pill, status pill, source-URLs row

Render guards

  • prerender = false — every request goes through the consumer’s auth middleware. Audit pages contain portfolio graphs that should stay private. (Patched at the shell tier per the Refactor-Data-Assets-Audit-for-Brand-Quality-Ratings-and-Render-Guards plan.)
  • No CSS overflow trap on .table-wrap (a prior version trapped sticky table headers; one-line fix dropped the overflow). On narrow viewports the table pushes the page horizontally instead.

Layout compatibility

Consumer layoutGlob result
data/firms/{firm}/portfolio/ (calmstorm)matched
data/investors/{firm}/portfolio/ (chroma)matched
data/portfolio/ (humain flat operating-company variant)matched

Identical render path; only the firm-grouping in the table varies.

Status

  • ✅ Shipped
  • ✅ SSR-gated 2026-05-17
  • ✅ Sticky-header trap fixed 2026-05-17
  • [[data-assets-people]] — sibling route over data/**/{team,portfolio}/ filtered to role_class != null
  • [[../components/DeckStatsPanel]] — landing-page tile that links here
  • [[../components/DeckMatrix]] — landing matrix that surfaces the same data in audit-rating form
  • [[../../models/Company-Data-Model]] — full schema documentation
  • [[../../plans/Refactor-Data-Assets-Audit-for-Brand-Quality-Ratings-and-Render-Guards]]