Skip to content

fix(site): align homepage/gateway text with sibling repos; remove all em/en dashes - #16

Merged
emmanuel-a-otchere merged 1 commit into
mainfrom
vibe/site-text-sync-99b5e6
Nov 25, 2026
Merged

emmanuel-a-otchere merged 1 commit into
mainfrom
vibe/site-text-sync-99b5e6

Conversation

@emmanuel-a-otchere

Copy link
Copy Markdown
Contributor

Summary

Closes the drift between https://assessment-models.github.io/ and the underlying Assessment-Models/* repos (plus technehub-labs/dea-metamodel), and enforces the no-em/en-dash style rule site-wide.

Gaps found (site vs. repos)

  • Portfolio cards hardcoded in assets/js/ecosystem.js were stale: DT Operationalized showed v1.0.1 (repo: v2.0.1), Operations showed v2.0.0 / "6 dimensions" (repo: v3.0.0, 9 dimensions), maturity-model-standard showed v0.1.0-draft (repo VERSION: 1.0.1), maturity-model-template v0.1.0-draft (VERSION: 0.1.0), dea-catalog-maturity-models in the registry v0.1.0-draft (VERSION: 1.1.0-alpha).
  • Root cause in scripts/sync_org_catalog.py: version resolution used only releases/tags and defaulted to v0.1.0-draft, never reading the repo VERSION file. Fixed: manifest -> VERSION file -> releases/tags.
  • Hero "verified contract" inspector showed a fabricated assessment-manifest.json (keys org/repo/model_id/imported_components do not exist in the real file). Now shows the real manifest verbatim, and the touchpoint tab shows a verbatim touchpoints.yaml excerpt.
  • Scale callout contradicted canonical dea:maturity-bands-v2 (technehub-labs/dea-metamodel@v1.0.0): gates were labeled L-0..L-4 with effort multipliers 1.0/1.15/1.35/1.6/1.85; canonical is L-1..L-5 with 1.0/1.5/2.5/4.0/6.0. Fixed; all site copy unified on "L-1..L-5, L-0 = Not Assessed sentinel" (dea-metamodel issue #214).
  • No-JS telemetry fallback showed 26 seams; registry actually holds 44 (25 touchpoints + 19 handshakes). Fixed in index.html and the JS fallback.
  • Em/en dashes (U+2014/U+2013): 157 occurrences across 31 tracked files, including rendered registry descriptions. All replaced with plain hyphens; generated registry text is now deep-sanitized at sync time.

Changes

  • scripts/sync_org_catalog.py: VERSION-file resolution + deep_sanitize of all published strings before hashing.
  • data/ecosystem-registry.json + public/data/...: regenerated (versions above, dash-free, hash/timestamp recomputed).
  • index.html, assets/js/ecosystem.js, gateway/assets/js/metro-graph.js, src/ui/persona.ts, src/ui/walkthrough.ts, src/views/catalog.ts: corrected copy (versions, dimension counts/names, real manifest sample, canonical scale callout, L-1..L-5 wording, 4 component packages, telemetry fallback).
  • All remaining tracked files: em/en dashes -> hyphens (incl. README, .gitignore, workflows, gateway views).
  • New scripts/lint-site-text.mjs: fails CI on any U+2014/U+2013 in tracked files, on portfolio-card versions that drift from data/ecosystem-registry.json, and on stale telemetry fallbacks. Wired into validate-homepage.yml, gateway-validation.yml, and deploy.yml.

Verification

  • node scripts/lint-site-text.mjs -> OK (0 dashes; cards/fallbacks match registry)
  • repo-wide scan: 0 em/en dashes outside .git/node_modules
  • npx tsc --noEmit -> clean; npm test -> engine tests passed; npm run build:site -> built
  • registry JSON valid + passes schema/ecosystem-registry.schema.json
  • every github.com/{owner}/{repo} link in index.html/ecosystem.js verified to exist via gh repo view
  • Note: the live sync was reproduced locally from sibling clones because the sandbox GitHub token is rejected by the API (401) and the anonymous rate limit was exhausted; the fixed sync_org_catalog.py will run normally in CI with GITHUB_TOKEN.

… em/en dashes

- sync_org_catalog.py: resolve versions from assessment-manifest.json, then
  root VERSION file, then releases/tags (was: draft default), and deep-sanitize
  U+2014/U+2013 out of all generated registry text before hashing
- registry regenerated: maturity-model-standard v1.0.1,
  dea-catalog-maturity-models v1.1.0-alpha, maturity-model-template v0.1.0
- homepage cards corrected: DT Operationalized v2.0.1, Operations v3.0.0 with
  9 dimensions, component package list (4), dimension names aligned to manifests
- hero inspector now shows the real assessment-manifest.json and a verbatim
  touchpoints.yaml excerpt instead of fabricated samples
- scale callout aligned to canonical dea:maturity-bands-v2: L-1..L-5 labels,
  effort multipliers 1.0/1.5/2.5/4.0/6.0; site copy unified on L-1..L-5 with
  L-0 as the Not Assessed sentinel
- telemetry no-JS fallback 26 -> 44 seams (25 touchpoints + 19 handshakes)
- all 157 em/en dashes across 31 tracked files replaced with plain hyphens
- new scripts/lint-site-text.mjs guard (dash scan + portfolio-card/telemetry
  facts vs registry) wired into validate-homepage, gateway-validation, deploy

Co-authored-by: emmanuel-a-otchere <emmanuel-a-otchere@users.noreply.github.com>
@emmanuel-a-otchere emmanuel-a-otchere self-assigned this Nov 25, 2026
@emmanuel-a-otchere
emmanuel-a-otchere marked this pull request as ready for review November 25, 2026 01:41
@emmanuel-a-otchere
emmanuel-a-otchere merged commit b576359 into main Nov 25, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants