Skip to content

fix(examples): restore addThreshold continuation lines + re-migrate#51

Merged
HanSur94 merged 2 commits into
mainfrom
claude/reverent-bohr
Apr 17, 2026
Merged

fix(examples): restore addThreshold continuation lines + re-migrate#51
HanSur94 merged 2 commits into
mainfrom
claude/reverent-bohr

Conversation

@HanSur94
Copy link
Copy Markdown
Owner

Summary

  • Restore 13 example files that only use FastSense.addLine/addThreshold (no Sensor API) — these were incorrectly damaged by the Phase 1011 migration agent
  • Re-migrate 41 example files with correct Sensor→SensorTag substitutions WITHOUT stripping addThreshold continuation lines

Root cause: Phase 1011 Plan 04 migration agent pattern-matched "Threshold" in fp.addThreshold() method calls and stripped their multi-line continuation arguments. addThreshold is a surviving FastSense method for visual threshold lines — it should never have been touched.

Test plan

  • All fp.addThreshold(...) continuation lines verified intact (47 across all files)
  • Zero legacy Sensor( constructor calls remain in examples
  • SensorRegistry/ThresholdRegistry fully replaced with TagRegistry
  • CI: Example Smoke Tests pass

🤖 Generated with Claude Code

HanSur94 and others added 2 commits April 17, 2026 12:47
…hold calls

- Sensor() -> SensorTag() constructor calls across all 41 example files
- StateChannel() -> StateTag() with 'X'/'Y' constructor args
- SensorRegistry -> TagRegistry (register/get/list/printTable/viewer/unregister)
- fp.addSensor() -> fp.addTag() for FastSense plot bindings
- Removed legacy Threshold() OOP constructor + addCondition + s.addThreshold(tVar)
- Removed s.addStateChannel() / s.resolve() calls (not on SensorTag API)
- Preserved all fp.addThreshold(value, ...) visual threshold lines untouched
- Updated stress_test helper functions to use getXY()/updateData()

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
These files only use FastSense.addLine/addThreshold (no Sensor API).
The Phase 1011 migration agent incorrectly stripped their addThreshold
continuation lines. Restored verbatim from origin/main.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@HanSur94 HanSur94 merged commit 63dfa58 into main Apr 17, 2026
7 of 9 checks passed
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

1 participant