paperlint 14.1.0 → 14.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLAUDE.md +6 -1
- package/dist/skills/build-label-page/scripts/label-page-core.d.ts +70 -32
- package/docs/testing.md +12 -0
- package/eslint.config.mjs +17 -0
- package/package.json +2 -1
- package/skills/build-label-page/SKILL.md +19 -3
- package/skills/build-label-page/SKILL.md.spec.ts +18 -2
- package/skills/build-label-page/references/closed-choice-generator.md +86 -8
- package/skills/build-label-page/scripts/fixtures/v7-cards-items.json +138 -0
- package/skills/build-label-page/scripts/label-page-answerers.test.ts +381 -0
- package/skills/build-label-page/scripts/label-page-blocks.test.ts +277 -1
- package/skills/build-label-page/scripts/label-page-browser.test.ts +761 -10
- package/skills/build-label-page/scripts/label-page-core.js +311 -67
- package/skills/build-label-page/scripts/label-page-core.test.ts +49 -10
- package/skills/build-label-page/scripts/label-page-core.ts +511 -87
- package/skills/build-label-page/scripts/label-page-presets.test.ts +1 -1
- package/skills/build-label-page/scripts/label-page.js +5 -0
- package/skills/build-label-page/scripts/label-page.ts +5 -0
- package/skills/build-label-page/scripts/page-template.html +488 -62
|
@@ -87,7 +87,7 @@ const inOrder = (text: string, parts: readonly string[]): readonly string[] => {
|
|
|
87
87
|
);
|
|
88
88
|
};
|
|
89
89
|
|
|
90
|
-
test("🔴 a page naming the preset shows its words on the generic blocks: the linter's message, the rule's docs
|
|
90
|
+
test("🔴 a page naming the preset shows its words on the generic blocks: the linter's message, the rule's docs with the docs-examples note, the files like it, and the settings with their sides", async () => {
|
|
91
91
|
const { page, key } = build(setup("preset-face", preset()));
|
|
92
92
|
const shown = await showPage(page, {}, {}, PRACTICE_DONE);
|
|
93
93
|
const id = Object.entries(key.ids).find(
|
|
@@ -41,6 +41,11 @@
|
|
|
41
41
|
* "seed": 7, fixes the order; change it and every id changes
|
|
42
42
|
* "groups": {"python": "Python"},
|
|
43
43
|
* "labeller_knows": ["python"], optional: items of other groups are not put on the page
|
|
44
|
+
* "answerers": ["author", "second"], optional, 2 or more: each answers under their own name;
|
|
45
|
+
* documents become `<answerer>~<id>`; an item's own
|
|
46
|
+
* `answerers` (a subset) shows it to those only
|
|
47
|
+
* "min_seconds": 30, optional: an answer saves only after its card was on
|
|
48
|
+
* screen that long; stored as `seconds`
|
|
44
49
|
* "familiarity": true, optional: a "how well do you know" question per group;
|
|
45
50
|
* left out, none is asked (an approval page)
|
|
46
51
|
* "familiarity_question": "How well do you know {group}?", optional
|
|
@@ -41,6 +41,11 @@
|
|
|
41
41
|
* "seed": 7, fixes the order; change it and every id changes
|
|
42
42
|
* "groups": {"python": "Python"},
|
|
43
43
|
* "labeller_knows": ["python"], optional: items of other groups are not put on the page
|
|
44
|
+
* "answerers": ["author", "second"], optional, 2 or more: each answers under their own name;
|
|
45
|
+
* documents become `<answerer>~<id>`; an item's own
|
|
46
|
+
* `answerers` (a subset) shows it to those only
|
|
47
|
+
* "min_seconds": 30, optional: an answer saves only after its card was on
|
|
48
|
+
* screen that long; stored as `seconds`
|
|
44
49
|
* "familiarity": true, optional: a "how well do you know" question per group;
|
|
45
50
|
* left out, none is asked (an approval page)
|
|
46
51
|
* "familiarity_question": "How well do you know {group}?", optional
|