← Results index

Fix meta leverage catalog row JS helpers

2026-08-22T17:33:35Z Bug fix completed Restored ninth Source badge cell in renderMetaCatalogRow and renderWeightedMetaCatalogRow in docs/assets/js/catalog-equalize.js to satisfy 9-column catalog contract and non-AS badge assertion.
catalog leverage meta weighted-meta javascript bug-fix

Objective

Restore the Source badge column in the browser-rendered leverage Meta and weighted-Meta catalog rows so tests/test_catalog_leverage_meta.py::test_js_meta_leverage_helpers and tests/test_catalog_leverage_weighted_meta.py::test_js_weighted_meta_leverage_helpers pass without weakening assertions. The live helpers had regressed to 8 <td> and omitted class="badge non-as".

Approach

Files changed

Validation

Results

Both JS helpers now satisfy the 9-column contract exercised by the two named tests without assertion weakening. Greps confirm no other JS duplicates needed the same fix and call sites (applyMetaLeverage, applyWeightedMetaLeverage, emptyStateColspan) are consistent. Publication artifacts are deterministic via canonical producers.

Risks / Limitations

Static server-rendered meta catalog templates that still emit 8-column rows without Source remain diverged from the JS contract and rely on hideSourceColumn to hide the column at render time. That template path was explicitly out of scope for this JS-helper bead.

Source artifact: research/results/qm-hkqu.md