cgcardona / muse public
chore main #15 / 100

chore: merge dev into main (#135)

* fix: escape HTML angle brackets in midi-demo card renderer

<S> in flag text (e.g. --strength <S>, --min-score <S>) was parsed by the browser as the <s> (strikethrough) element, bleeding strikethrough through the rest of each card. Add an esc() helper and apply it to cmd, desc, flags, and ret before inserting into innerHTML. The example field is left unescaped as it contains intentional HTML span tags.

* feat: align code-demo nav with midi-demo nav style

Replaces the flat tag-row header in code-demo.html with the same three-zone layout used in midi-demo.html: - Left: 'Muse' logo (monospace, accent colour) - Centre: title 'Hexagon API Gateway · Muse VCS' + metadata row (6 acts · 6 commits · 4 branches · 25 symbols, module tags, conflict/agent/language badges) - Right: v0.1.2 version badge + MIDI Demo / Code Demo links

Nav height bumped 52px → 60px and body padding-top updated to match.

* feat: add all 29 code semantic porcelain commands to code-demo

Expands the CLI reference section at the bottom of code-demo.html from 14 commands to all 29, grouped into 7 categories matching the MIDI demo pattern (group header with icon, label, description, and count badge):

1. Snapshot & Inventory — symbols, languages, grep, codemap 2. Symbol Identity & Hist — blame, symbol-log, lineage, detect-refactor 3. Query & Search — query, query-history, find-symbol, code-query 4. Architecture & Quality — hotspots, stable, coupling, compare, clones, coverage, api-surface 5. Impact & Dependencies — deps, impact, dead, breakage 6. Write & Transform — patch, checkout-symbol, semantic-cherry-pick 7. Infrastructure & Gates — index, invariants, check

Renderer updated to use GROUPS array + HTML-escape (esc()) for all text fields; example blocks with intentional span tags are exempt.

* feat: scale code-demo up 25% via zoom:1.25 on html element

Removes the need to manually browser-zoom to 125% on every load. A single CSS zoom on the root scales all layout, fonts, borders, fixed nav, and SVG panels proportionally without touching individual px values.

* fix: prevent cli-card grid overflow with min-width:0

Grid items default to min-width:auto, allowing content wider than the grid column to burst out of the track. Setting min-width:0 + overflow:hidden constrains each card to its column width regardless of content length.

* feat(code-demo): unify visual theme with MIDI demo

- Match :root variables (--bg, --card, --card2, --border, --muted, --gold) to MIDI demo values so both pages share the same dark base - Add gradient text to .nav-title (white→accent), matching MIDI's treatment - Change nav-tag and nav-badge border-radius to 20px (pill shape) - Add tinted background fill to .nav-badge (consistent with MIDI badge) - Upgrade nav-tag.green/.gold backgrounds to match MIDI pill pattern - Move demo links from nav-right to the left (logo → separator → links → center → badge), matching MIDI's three-zone nav layout exactly - Switch nav from position:fixed to position:sticky; drop body padding-top - Match nav backdrop: rgba(13,17,24,0.92) instead of rgba(9,13,22,.92)

* fix(code-demo): flip DAG to oldest-top newest-bottom (timeline order)

* fix(code-demo): graph mode buttons now actually filter the symbol graph

- Replace svgEl.className= with svgEl.setAttribute('class',...): SVG elements expose className as a read-only SVGAnimatedString, so direct assignment silently fails and the graph-dead / graph-impact CSS classes never applied - Impact mode: auto-select Router.dispatch on entry so the impact subgraph is visible immediately rather than dimming everything with no feedback

* fix(code-demo): impact mode updates per commit when navigating DAG

- Replace hardcoded COMMIT_EDGES[5] with COMMIT_EDGES[state.cur] in selectSymbol so impact highlighting and callee/caller info always reflect the currently selected commit's call graph - Re-apply selectSymbol in selectCommit when graphMode==='impact' so navigating commits in impact mode re-computes the impact subgraph against the new commit's edges

---------

Co-authored-by: Gabriel Cardona <gabriel@tellurstori.com>

G Gabriel Cardona <cgcardona@gmail.com> · 12h ago Mar 19, 2026 · 9fb2d692 · parent 809f3497
oldest
newest 86%

Comments

0

No comments yet. Be the first to start the discussion.