chore(frontend): drop rewriteDeclaredTypeName, now unused - #1126
Conversation
DOPE-622 rewrote `restoreBufferName` to serialise the canonical text instead of preserving the typed form, which removed this helper's last production caller. Only its own suite imported it. `declaredNameRegex` went with it — the helper was its only user. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Jjy1Ja62BFtay579KYhBC7
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
💤 Files with no reviewable changes (1)
Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review. WalkthroughThe parser removes ChangesParser helper removal
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Other Merge Risk: ⚪ Minimal · up to No actionable current-head risk is established; the change is limited to removing unused code and its tests. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. A rabbit finds the rewrite trail gone Comment |
Follow-up to DOPE-622, from Julio's review (finding 2).
That change rewrote
restoreBufferNameto serialise the canonical text instead of preserving the user's typed form, which removedrewriteDeclaredTypeName's last production caller. Only its own test suite imported it afterwards.Removed:
rewriteDeclaredTypeNameinutils/PLC/data-type-text-parser.tsdescribeblock — 7 testsdeclaredNameRegex, which existed solely for that helperNo behaviour change: nothing in the app called it.
Validation
tsc --noEmitdata-type-text-parsersuiteutils/PLCsuitescompare-surfaces.pyCoverage totals moved by exactly the removed code: statements 20904 → 20887, functions 4236 → 4234.
No Jira card — non-ticket maintenance, which is what
chore/is for.🤖 Generated with Claude Code
https://claude.ai/code/session_01Jjy1Ja62BFtay579KYhBC7
Mirror of https://github.com/Autonomy-Logic/openplc-web/pull/769
Summary by CodeRabbit