Repository navigation
Show the question's lf-group in the board, detail and On Me instructions that still showed a section - #6365
Merged
Conversation
…ons that still showed a section The lf-board instructions' composition snippet held a bare lf-options, which page check now refuses as ungrouped-question; it now wraps the question in an lf-group whose label asks it, and the prose names the question's lf-options rather than its section's. detail's author instructions, authoring-on-me.md and package-data.md name the question's lf-group where they named a section. Eval comments that named the retired lf-ask now name the question's lf-group or a page widget, and view-reveal-arrival's prompt no longer claims layoutChanged returns a promise, since it returns nothing. Every HTML snippet in a registry's instructions (two: lf-text-document's and lf-board's) passes page check; lf-board's failed it before.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#6256 retired
lf-askand #6315 made a question's group anlf-groupnamed by itslabel, sopage checkrefuses a barelf-optionsoutside a group asungrouped-question. Some shipped text still showed the old shape, and an agent copying it got refused. This PR corrects that text.lf-board's "One answer in its question and on a board" instructions (packages/default/registry.json) now wrap the snippet'slf-optionsin anlf-groupwhose label asks the question, and the prose says "its question'slf-options" rather than its section's. The matching heading inauthoring-on-me.mdfollows.packages/detail/instructions/author.md,authoring-on-me.md(the finding-then-question paragraph and the permission example's "not to the section round it") andpackage-data.md's "Views of an answer" now name the question'slf-groupwhere they named a section.Eval comments that named
lf-asknow name the question'slf-groupor a page widget (words-question-takes-a-thread,option-cards-take-their-width,options-draw-their-arrangement,options-stay-words-for-wording,workflows/usability_eval.yaml). Fixture data that records past state is left as it was.view-reveal-arrival's prompt no longer claimslayoutChangedreturns a promise, sincebrowser/runtime/widget-upgrade.jsreturns nothing from it.Verification: I wrote the board snippet into a scratch page and ran
bin/leaf page checkon it. Before the change it failed withungrouped-questionon<lf-options id=rail-choice>. After the change it passes. Across every package registry'sinstructionsthere are only two HTML snippets,lf-text-document's andlf-board's, and both passpage checknow. I added no regression test: two snippets don't make it cheap enough to pay for, a registry-only test would leave the packageinstructions/*.mdsnippets uncovered, and an agent that copies a bad snippet already gets the refusal from its ownpage check. A grep ofskills/,packages/*/instructions,packages/*/registry.jsonanddocs/finds no otherlf-askor section-as-group wording. Focused tests on registry instructions pass, as dodev/tests/test_evals.pycases apart from one that needspnpm installin this environment.