Suggest <show=condition> when the condition is a named attribute - #4068
Conversation
`<show if=cond>` reported only that a `value=` attribute was required, which does not say what to write. Name the shorthand and point the code frame at the offending attribute, matching the `<if>`/`<else>` wrong-attribute error. Also adds `<show>` to the best-practices skill checklist. It was absent, so agents editing `.marko` files reached for `<if>` for stateful toggles; the cheat sheet covers it but only reaches them after a compile error, and `<if>` for a toggle never errors.
🦋 Changeset detectedLatest commit: 828c940 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (4)
📒 Files selected for processing (5)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. WalkthroughThe pull request improves Merge Risk: ⚪ Minimal · up to This change improves the 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 2 files. (3 skipped: 3 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4068 +/- ##
==========================================
- Coverage 90.78% 90.78% -0.01%
==========================================
Files 424 424
Lines 20444 20447 +3
Branches 3871 3874 +3
==========================================
+ Hits 18560 18562 +2
+ Misses 1324 1323 -1
- Partials 560 562 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
I noticed that LLMs usually don't know that
<show>exists, and also that when they find out they often try<show if=cond>instead of<show=cond>.Remedied by adding to
marko-best-practicesand improving errors.