6 Commits

Author SHA1 Message Date
Firehose Bot
7c06204ac2 fix(microprints): fix source viewer showing stale content when switching files
The source_viewer component used static DOM IDs (id='source-viewer')
with phx-update='ignore'. When switching expanded files, LiveView
reused the same DOM element but phx-update='ignore' prevented content
from being updated, showing the previous file's source.

- Override source_viewer/1 in MicroprintsLive with unique per-file IDs
  generated via :erlang.phash2(file_path)
- Add test verifying expand-switch shows correct source content
- Add test for highlight/expand coupling (collapse when highlighting
  a different file)
- All 160 tests pass
2026-05-18 18:04:47 +01:00
Firehose Bot
36bdc0610e fix(microprints): collapse expanded file when highlighting a different file
- Add test in microprints_live_test.exs that documents the uncoupled state bug
- Fix handle_event("highlight_line") to collapse expanded_path when
  highlighting a line in a different file
- All 159 tests pass
2026-05-18 17:28:30 +01:00
Firehose Bot
1f0423841a chore: add yaks for LinkValidator simplifications 2026-05-07 12:48:40 +01:00
Firehose Bot
83eb8f7d50 chore: commit misc untracked files (llm-metrics, mise.toml, block-agent-idea.html) 2026-05-07 11:57:24 +01:00
Firehose Bot
ec16342249 publish post 2026-04-30 09:16:59 +01:00
Firehose Bot
9c769959ad Add pi.dev tag to Pi-related engineering posts 2026-04-29 21:34:00 +01:00