← Commit history

2.0.5: module version generated from the pack version; selfCheck(panel) argument documented; node --check and sha256 added to the release checks

John Lauer ·550ce0ad14 ·1mo ago ·parent 7ac79d9
3 files changed +18−2
assets/module/newbie-panel.js+5−1
@@ -361,6 +361,10 @@     'card padding':         ['padding',         '18px 20px 20px'],     'column gap':           ['columnGap',       '24px']   };+  /* selfCheck(panel) - pass the panel explicitly when the page mounts more than one, or+   * mounts into a shadow root. The no-arg form takes the FIRST .anp in the light DOM, which+   * is right for the single-panel case and silently wrong for the others. Returns+   * {ok:false, error} rather than throwing when there is no panel. (chip-fetcher, 2026-08-25) */   function selfCheck(panel) {     panel = panel || document.querySelector('.anp');     if (!panel) return { ok: false, error: 'no .anp panel on the page' };@@ -409,6 +413,6 @@     return { ok: ok, rows: rows };   } -  root.AdomNewbiePanel = { mount: mount, toast: toast, selfCheck: selfCheck, version: '1.0.0',+  root.AdomNewbiePanel = { mount: mount, toast: toast, selfCheck: selfCheck, version: '2.0.5',                            TWO_COL_MIN: TWO_COL_MIN, PHRASE_BUDGET: PHRASE_BUDGET }; })(typeof window !== 'undefined' ? window : this);
package.json+1−1
@@ -1,6 +1,6 @@ {   "slug": "adom-ui-design",-  "version": "2.0.4",+  "version": "2.0.5",   "type": "skill",   "description": "The Adom UI Design System plus a bundle of focused UI skills (tooltips, floating-windows, toasts, responsive-ui, app-shell, ai-driven-apps, clickable-paths, dark-default, input-feedback, settings-layout). One install drops the whole set of skill files onto your container, plus shared icon assets (the settings cog) so every Adom app draws the same glyph.",   "dependencies": {},
skills/newbie-panel/SKILL.md+12
@@ -117,6 +117,13 @@ find ~/.claude/skills/<pack> -name '*.js'        # the file is THERE grep -c 'root.AdomNewbiePanel' <that file>       # and it is the IMPLEMENTATION ``` +**Three greps prove a string is present, not that the file works.** Add `node --check` on+the served file (a truncated or mis-escaped 100KB file satisfies every grep and then throws+at the script tag) and publish the module's `sha256sum` with the release, so the next+verifier compares bytes rather than counts. The module also self-reports+`AdomNewbiePanel.version`, which is generated from the pack version at build time and cannot+drift from it: that is the string to quote when pasting selfCheck output.+ Version sizes are a second, cheap check: 2.0.1 was 120202 bytes and 2.0.2 was 192654. A release that claims to add a 100KB module and does not grow is not carrying it. Deprecate the broken versions rather than leaving them installable.@@ -127,6 +134,11 @@ broken versions rather than leaving them installable. AdomNewbiePanel.selfCheck()   // -> {ok, rows:[{what, want, got, pass}, ...]} ``` +`selfCheck(panel)` takes an optional panel. The no-arg form takes the FIRST `.anp` in the+light DOM, which is right for the single-panel case and silently wrong if you mount two or+mount into a shadow root: pass the panel explicitly then. With no panel at all it returns+`{ok:false, error:'no .anp panel on the page'}` rather than throwing.+ Run it in your dashboard, in ah's webview, and paste the result. It checks the card background, border, border colour, accent edge, radius, padding, column gap, whether the Copy icons resolve to a single x-position, the column count against the panel's width, and