companyCardModel (lib/company-history.mjs)

career-ops · web/src/lib/company-history.mjs · javascript · MIT
crm

Pure JS module that builds a company card model from payload, mapping verdicts and facts.

// Source: https://github.com/career-ops-hq/career-ops | License: MIT | Copyright 2026 Santiago Fernández de Valderrama
// Provided via justclaw.it.com; keep this notice with the code.
// Shaping for the company evidence card.
//
// Pure .mjs so the report view can import it and `node --test` can cover it.
//
// ── The rule this module exists to hold ─────────────────────────────────────
//
// company-history.mjs distinguishes "the check ran and found nothing" from "the
// check never ran", and says why in its own comment:
//
//     It must still not claim `none-detected` — the check was skipped for it,
//     exactly as on the full card.
//     …Without the Set an aggregator would render as `none-detected`, which
//     claims a negative result from a check that never ran.
//
// A UI that

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key