@zero2webmaster/starter-kit 0.19.0 → 0.19.1

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # z2w-starter-kit
2
2
 
3
- **Version:** 0.19.0 | **Framework:** 2.18.0
3
+ **Version:** 0.19.1 | **Framework:** 2.18.0
4
4
 
5
5
  > Node CLI to scaffold new Z2W projects from canonical Templates + AGENTS.md.
6
6
 
@@ -83,7 +83,8 @@ The Claude Code skill at `~/.claude/skills/instantiate-z2w-project/SKILL.md` and
83
83
 
84
84
  ## Status
85
85
 
86
- - **v0.19.0 (current)** emits the **PWA baseline** for `nextjs` projects with a web UI — `public/manifest.json`, `public/icon.svg`, `public/sw.js` and `components/ServiceWorker.tsx`, wired into `app/layout.tsx` — so a scaffolded app installs on a phone. Three decisions run against the original design note and are documented in place: `app/icon.svg` is NOT emitted (a static icon file in that segment would silently retire the generated `app/icon.tsx` favicon), `theme_color` comes from the brand primary so it agrees with the layout's `viewport.themeColor`, and the glyph is a path rather than text because no font is guaranteed where the OS rasterises an icon. The service worker is network-first, never caches `/api/`, and evicts only its own cache prefix — that last clause fixed a real defect found by **executing** the emitted worker in tests rather than grepping it: an origin-wide sweep meant one Z2W app's deploy wiped a neighbouring app's offline cache under `/path` routing.
86
+ - **v0.19.1 (current)** emits a `:disabled` rule for **buttons** in `app/globals.css`, so a disabled button still looks disabled after the author gives buttons a brand fill. The scaffold ships no button styling of its own, so today the browser's grey rendering still applies — the trap opens on the author's first `background`/`color`, which overrides that grey and leaves `:disabled` a state with no appearance: the button looks pressable, the click does nothing, and the user concludes the app is broken. A sibling Z2W app shipped exactly that across ~50 screens behind a clean typecheck, a green build and 1,051 passing tests, because it is a rendered-pixel property no unit test holds. Includes the `:hover` cancel people forget — a `filter: brightness()` hover happily re-brightens a dimmed button at the moment the user is deciding to click. Verified on real pixels via CDP with `:hover` forced, and canary-verified by stripping the rule from a live scaffold.
87
+ - **v0.19.0** emits the **PWA baseline** for `nextjs` projects with a web UI — `public/manifest.json`, `public/icon.svg`, `public/sw.js` and `components/ServiceWorker.tsx`, wired into `app/layout.tsx` — so a scaffolded app installs on a phone. Three decisions run against the original design note and are documented in place: `app/icon.svg` is NOT emitted (a static icon file in that segment would silently retire the generated `app/icon.tsx` favicon), `theme_color` comes from the brand primary so it agrees with the layout's `viewport.themeColor`, and the glyph is a path rather than text because no font is guaranteed where the OS rasterises an icon. The service worker is network-first, never caches `/api/`, and evicts only its own cache prefix — that last clause fixed a real defect found by **executing** the emitted worker in tests rather than grepping it: an origin-wide sweep meant one Z2W app's deploy wiped a neighbouring app's offline cache under `/path` routing.
87
88
  - **v0.18.4** points the writer's cross-cutting placeholder check at EVERY emitted file. It had run against `CLAUDE.md` alone since Step 6 — one of the ~42 files a Next.js scaffold emits — so `sentry.shared.ts` shipped a literal `{{project_name}}`, a key that has never existed in the substitution map. Found by dogfooding a real scaffold, not by the suite. A per-project-type sweep now covers all eight types.
88
89
  - **v0.18.3** makes every emitted `.gitignore` refuse a downloaded cloud service-account key. The Google Cloud console names a private key `<project-id>-<12 hex>.json`, which matched nothing in the scaffolded ignore file and, unlike a stray `.env.production`, carries no hint in its filename that it is a credential. Found when a live Gmail delegation key for two SAVE THE FROGS! mailboxes landed in a repo this CLI had emitted.
89
90
  - **v0.18.2** bumps the emitted Agent Coordination fingerprint to **v0.1.26**, matching what `z2w-agent-coordination` currently publishes. Every scaffold emitted while the constant said `v0.1.25` carries a stale fingerprint, which is precisely the drift the fingerprint exists to detect.
@@ -126,4 +127,4 @@ Inquiries: kerry@zero2webmaster.com.
126
127
  ---
127
128
 
128
129
  *Scaffolded 2026-05-28 via the [[instantiate-z2w-project]] Claude Code skill v1; reconciled against the consolidated skill v1.1.0 (brief-first + Agent Coordination block) on 2026-05-29.*
129
- *Version: 0.19.0 | Last Updated: 2026-08-16*
130
+ *Version: 0.19.1 | Last Updated: 2026-08-17*
@@ -815,6 +815,67 @@ body {
815
815
  border-radius: 4px;
816
816
  font-size: 15px;
817
817
  }
818
+
819
+ /* --- Disabled buttons -------------------------------------------------------
820
+ *
821
+ * This scaffold ships no button styling of its own, so today a disabled button
822
+ * still gets the browser's own greyed-out rendering and looks disabled. THE TRAP
823
+ * OPENS THE MOMENT YOU GIVE A BUTTON ITS OWN \`background\` and \`color\`, which
824
+ * every branded design system does within its first week: your fill overrides
825
+ * the user agent's grey, and \`:disabled\` becomes a state with no appearance.
826
+ * The button then looks completely pressable, the click does nothing, and the
827
+ * user concludes the app is broken rather than that the control is unavailable.
828
+ * That is not hypothetical — a sibling Z2W app shipped fully-pressable-looking
829
+ * disabled buttons across ~50 screens from its first commit, behind a clean
830
+ * typecheck, a green production build and 1,051 passing tests, because this is a
831
+ * rendered-pixel property that no type system or unit test can hold.
832
+ *
833
+ * So the rule is emitted BEFORE the first branded button exists, and it is
834
+ * written as element/attribute selectors rather than a \`.btn\` class, so it
835
+ * applies to whatever you style later whatever you end up calling it.
836
+ *
837
+ * THE \`:hover\` HALF IS THE ONE PEOPLE FORGET. A \`filter: brightness(1.08)\`
838
+ * hover — the most common way to add a hover state — happily re-brightens a
839
+ * dimmed button at exactly the moment the user is deciding to click it, undoing
840
+ * the signal precisely when it is being read. Same for a \`transform\` lift.
841
+ *
842
+ * Deliberately NOT a bare \`[disabled]\` selector: that also matches
843
+ * \`input\`/\`textarea\`/\`select\`, whose disabled palette above was chosen for
844
+ * measured contrast, and layering \`opacity\` on top of it would undo that. It
845
+ * would also dim a whole \`<fieldset disabled>\` twice over. Disabled TEXT INPUTS
846
+ * and disabled BUTTONS are different problems and get different rules.
847
+ *
848
+ * \`aria-disabled="true"\` is covered alongside \`:disabled\` because a button that
849
+ * must stay focusable (so a screen-reader user can find it and hear why it is
850
+ * unavailable) is marked that way and is NOT matched by \`:disabled\`.
851
+ */
852
+ button:disabled,
853
+ button[aria-disabled="true"],
854
+ input[type="submit"]:disabled,
855
+ input[type="button"]:disabled,
856
+ input[type="reset"]:disabled,
857
+ [role="button"][aria-disabled="true"] {
858
+ opacity: 0.45;
859
+ cursor: not-allowed;
860
+ filter: none;
861
+ box-shadow: none;
862
+ }
863
+
864
+ /* Cancels a hover effect declared on the enabled button. Kept as a separate rule
865
+ rather than folded above because the pseudo-class raises specificity, which is
866
+ what lets it beat a later \`.btn:hover\`. It does NOT beat a two-class hover
867
+ such as \`.btn.is-primary:hover\` — if your design system gets that specific,
868
+ add \`:not(:disabled)\` to the hover selector at the source, which is the fix
869
+ that scales. */
870
+ button:disabled:hover,
871
+ button[aria-disabled="true"]:hover,
872
+ input[type="submit"]:disabled:hover,
873
+ input[type="button"]:disabled:hover,
874
+ input[type="reset"]:disabled:hover,
875
+ [role="button"][aria-disabled="true"]:hover {
876
+ filter: none;
877
+ transform: none;
878
+ }
818
879
  `;
819
880
  }
820
881
  /* --- Card-path bot protection (acceptsCards) -------------------------------- */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zero2webmaster/starter-kit",
3
- "version": "0.19.0",
3
+ "version": "0.19.1",
4
4
  "description": "Node CLI to scaffold new Z2W projects from canonical Templates + AGENTS.md.",
5
5
  "author": {
6
6
  "name": "Dr. Kerry Kriger",