Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions docs/components/collapsible/v0.6/actions-spacing-amendment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Collapsible v0.6 — action target spacing amendment

- **Status:** Approved 2026-11-23 (owner decision in [L37](../../../../odd/tasks/consumer-request-specs.md#log)).
- **Amends:** [v0.5 actions amendment](../v0.5/actions-amendment.md), superseding its `--space-2` gaps for the Header row and actions wrapper. All other promises remain unchanged. Canonical component issue [#181](https://github.com/egdev6/egdev-design-system/issues/181); consumer request [#550](https://github.com/egdev6/egdev-design-system/issues/550).
- **Approval / recovery:** Owner choice verbatim: "Collapsible + PreviewFrame + Sidebar (Recomendado)" ("Enmienda Collapsible v0.6 (acciones gap-5, fila gap-3) y otra para PreviewFrame/Sidebar footer (gap-5); JSDoc en Dialog/Panel/TopBar avisando de md/md. Cambio visual en las acciones de esos componentes."). This scoped choice authorizes the specified spacing changes and implementation, not new conventions, tokens or dependencies.
- **Snapshot identity:** `version: v0.6`; `contentSHA256: 230af171ddf3ba7b79f1ba671ffea19192a7992785f0fae8ac29b927459b3e83`; `visualHashes: Pending`; `approvalReference: odd/tasks/consumer-request-specs.md L37`; `canonicalIssue: https://github.com/egdev6/egdev-design-system/issues/181`; `latestPublishedComment: Pending` (remote history not checked). The digest identifies this transcription, not independent approval of a digest.
- **Hash definition:** SHA-256 of the UTF-8 payload from line-start `## 1. Purpose and scope` through EOF, including the final LF; metadata above it is excluded.

## 1. Purpose and scope

Space adjacent extended IconButton targets without changing the disclosure API or introducing a new component. The existing action wrapper was too tight for the two `md` actions reported in #550. Apply the one-token margin rule in [S12](../../../../odd/tasks/consumer-request-specs.md#specs): the visible gap must exceed the sum of adjacent target outsets by at least one spacing token.

## 2. Anatomy and composition

Keep the optional wrapping Header, native Trigger or heading, and independent wrapping actions wrapper as siblings in the existing order. Preserve Radix disclosure, separate controls, native focus and all other component parts. No new wrapper, stylesheet or internal module is introduced.

## 3. Public API

No prop, default, export, marker, naming convention or supported `className` surface changes. Consumers still supply their own actions and their behavior. Review and refresh the whole-file registry revisions of `Collapsible` types after implementation.

## 4. Behavior

The Header row uses `gap-3` and its actions wrapper uses `gap-5`, on both axes. Under default tokens these are 9.6px and 16px respectively. The row clears a default `md` action next to the non-extended Trigger: the 6.4px action outset plus a 3.2px token. The action band clears adjacent `md`/`md`, `md`/`lg`, `lg`/`lg` and `sm`/`lg` extended targets. Preserve wrapping and action independence.

Consumers must provide additional clearance for `sm`/`md` (`gap-6`, 19.2px) and `sm`/`sm` (`gap-7`, 22.4px) adjacent actions, for example by grouping them in a consumer-owned spaced wrapper. An `sm` action next to the Trigger also needs at least `gap-4` (12.8px), including the row gap; supply the additional leading clearance. These requirements assume default tokens and unscaled ancestors; also reserve each target from unrelated controls, clipping and overlays.

## 5. Accessibility

Action names, focus order, native activation and the Trigger's Radix semantics remain unchanged. Gap values are clearance measures, not an unconditional accessibility conformance or target-size claim.

## 6. Appearance

The Header row grows from `gap-2` to `gap-3` and the actions wrapper from `gap-2` to `gap-5`. Multiple actions can widen or wrap differently; the increased Trigger-to-actions spacing is visible. Existing Material, control sizes and six meaningful files remain unchanged. Expected-design visuals are Pending; visual conformity is **Not evaluated**.

## 7. Acceptance criteria

- Header and actions use `gap-3` and `gap-5`, retaining wrapping, DOM order, action independence and existing disclosure behavior.
- Focused component tests and real built-CSS browser hit tests cover the two adjacent `md` actions and the action next to Trigger, including rest/pressed, mouse/touch and LTR/RTL.
- Consumer guidance documents additional `sm` clearance; the changelog discloses the visual change. Browser hit tests do not substitute for visual approval or assistive-technology evidence.
13 changes: 13 additions & 0 deletions docs/components/collapsible/v0.6/implementation-evidence.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Collapsible v0.6 — implementation evidence

## Observed

- The [approved amendment](actions-spacing-amendment.md) has line-start payload SHA-256 `230af171ddf3ba7b79f1ba671ffea19192a7992785f0fae8ac29b927459b3e83`, matching its header.
- The first focused run produced four intended `gap-2` failures and 42 passes across Collapsible, PreviewFrame and Sidebar; the same command passed 46/46 after the recipe changes. The six-component Collapsible, PreviewFrame, Sidebar, Panel, TopBar and IconButton run passed 169/169.
- Headless Chrome 148.0.7778.167 at 1280×900, DPR 1, loaded a static scratch build from current source and default tokens. The Header row computed to `9.6px`, the actions gap to `16px`, each visible md IconButton to `32px`, and its pseudo-element to `44.7969px`.
- The complete three-component matrix passed **110 mouse and 110 touch sequences** across LTR and RTL. For each of six md actions it sampled the center, four edges and four corners at ±21.8px from center; it also sampled the Trigger edge facing the actions. Every sequence checked the rest and held hit target, pointerdown/up/click destination, exactly one intended activation, and no unintended disclosure request. Touch held-state verification used its activation path rather than relying on `:active`. Scratch was removed by the harness.
- Storybook docgen, Controls and CSS tests passed 507/507; `pnpm typecheck`, `pnpm lint`, props, artifact and system checks passed. Registry changes are 42 source revisions only; semantic anatomy changes are limited to CollapsibleHeader, PreviewFrame and Sidebar.

## Pending

These synthetic default-token fixtures do not cover consumer-provided small action pairs, narrow wrapping, physical devices, assistive technology or downstream applications. Expected-design comparison is unavailable; visual conformity is **Not evaluated**. The parent owns the final repository build and package-export check; package-consumption was not run.
39 changes: 39 additions & 0 deletions docs/components/sidebar/v0.3/footer-spacing-amendment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Sidebar v0.3 and PreviewFrame v0.2 — action target spacing amendment

- **Status:** Approved 2026-11-23 (owner decision in [L37](../../../../odd/tasks/consumer-request-specs.md#log)).
- **Amends:** [Sidebar v0.2](../v0.2/desktop-recipe-amendment.md) and [PreviewFrame v0.1](../../preview-frame/v0.1/implementation-plan.md). Their unmentioned promises remain unchanged. This shared delta retains separate canonical component issues: [Sidebar #123](https://github.com/egdev6/egdev-design-system/issues/123) and [PreviewFrame #127](https://github.com/egdev6/egdev-design-system/issues/127); consumer request [#550](https://github.com/egdev6/egdev-design-system/issues/550).
- **Approval / recovery:** Owner choice verbatim: "Collapsible + PreviewFrame + Sidebar (Recomendado)" ("Enmienda Collapsible v0.6 (acciones gap-5, fila gap-3) y otra para PreviewFrame/Sidebar footer (gap-5); JSDoc en Dialog/Panel/TopBar avisando de md/md. Cambio visual en las acciones de esos componentes."). This scoped choice authorizes the specified spacing changes and implementation, not new conventions, tokens or dependencies.
- **Snapshot identity:** `version: Sidebar v0.3; PreviewFrame v0.2`; `contentSHA256: e6dbb5e0ca231dbbde213bdace2991dbd85f8ae79218b473d4c247fcda63fd78`; `visualHashes: Pending`; `approvalReference: odd/tasks/consumer-request-specs.md L37`; `canonicalIssue: Sidebar https://github.com/egdev6/egdev-design-system/issues/123; PreviewFrame https://github.com/egdev6/egdev-design-system/issues/127`; `latestPublishedComment: Pending` (remote history not checked). The digest identifies this transcription, not independent approval of a digest.
- **Hash definition:** SHA-256 of the UTF-8 payload from line-start `## 1. Purpose and scope` through EOF, including the final LF; metadata above it is excluded.

## 1. Purpose and scope

Space adjacent extended targets in the existing PreviewFrame actions and Sidebar footer. Apply the [S12](../../../../odd/tasks/consumer-request-specs.md#specs) rule: visible gaps must exceed the sum of target outsets by at least one spacing token. Reuse existing slots; no new component, prop, token or dependency.

## 2. Anatomy and composition

Keep PreviewFrame's wrapping actions outside the figure caption, its canvas and separate lower footer unchanged. Keep Sidebar's scrollable body and pinned, non-wrapping footer in their existing order and Surface composition. Controls remain consumer-owned and retain native order and semantics.

## 3. Public API

No prop, default, export, marker, naming convention or supported `className` surface changes. `actions` and `footer` remain optional consumer content. Review and refresh all affected whole-file registry revisions after editing the two `types.ts` files.

## 4. Behavior

PreviewFrame's actions and Sidebar's footer each use `gap-5` instead of `gap-2`; under default tokens the visible gap is 16px. This clears adjacent `md`/`md`, `md`/`lg`, `lg`/`lg` and `sm`/`lg` extended IconButtons. PreviewFrame's separate lower footer is unchanged.

Consumers must provide additional clearance for `sm`/`md` (`gap-6`, 19.2px) and `sm`/`sm` (`gap-7`, 22.4px) adjacent actions, for example inside a consumer-owned spaced wrapper. The slot gap cannot fix spacing inside nested groups. Reserve targets from other interactive elements, clipping and overlays, and account for local token overrides and ancestor scaling. Sidebar's footer does not itself wrap; consumers provide sufficient host space.

## 5. Accessibility

Native names, focus and action behavior remain consumer-owned and unchanged. The token margin addresses adjacent target interception; it is not an unconditional accessibility conformance or target-size claim.

## 6. Appearance

The two affected bars visibly grow their gap by 9.6px under default tokens. PreviewFrame actions may wrap differently; Sidebar footer content may require more host width. Existing Material, control sizes and six meaningful files remain unchanged. **No stylesheet** or new internal module. Expected-design visuals are Pending; visual conformity is **Not evaluated**.

## 7. Acceptance criteria

- PreviewFrame actions and Sidebar footer use `gap-5` while their other geometry, content order, Material and semantics remain unchanged.
- Focused component tests and built-CSS browser hit tests cover adjacent `md` actions at rest and pressed, with mouse and touch, in LTR and RTL.
- Consumer guidance identifies additional `sm` spacing and host constraints; the changelog discloses the visual changes. Browser hit tests do not substitute for visual approval or assistive-technology evidence.
13 changes: 13 additions & 0 deletions docs/components/sidebar/v0.3/implementation-evidence.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Sidebar v0.3 and PreviewFrame v0.2 — implementation evidence

## Observed

- The [approved shared amendment](footer-spacing-amendment.md) has line-start payload SHA-256 `e6dbb5e0ca231dbbde213bdace2991dbd85f8ae79218b473d4c247fcda63fd78`, matching its header.
- The first focused run produced four intended `gap-2` failures and 42 passes across Collapsible, PreviewFrame and Sidebar; the same command passed 46/46 after the recipe changes. The six-component Collapsible, PreviewFrame, Sidebar, Panel, TopBar and IconButton run passed 169/169.
- Headless Chrome 148.0.7778.167 at 1280×900, DPR 1, loaded a static scratch build from current source and default tokens. PreviewFrame's actions and Sidebar's footer each computed to a `16px` gap; a visible md IconButton measured `32px` and its pseudo-element `44.7969px`.
- The complete three-component matrix passed **110 mouse and 110 touch sequences** across LTR and RTL. For each of six md actions it sampled the center, four edges and four corners at ±21.8px from center; it also sampled the Collapsible Trigger edge facing the actions. Every sequence checked the rest and held hit target, pointerdown/up/click destination and exactly one intended activation. Touch held-state verification used its activation path rather than relying on `:active`. Scratch was removed by the harness.
- Storybook docgen, Controls and CSS tests passed 507/507; `pnpm typecheck`, `pnpm lint`, props, artifact and system checks passed. Registry changes are 42 source revisions only; semantic anatomy changes are limited to CollapsibleHeader, PreviewFrame and Sidebar.

## Pending

These synthetic default-token fixtures do not cover consumer-provided small action pairs, narrow wrapping, physical devices, assistive technology or downstream applications. Expected-design comparison is unavailable; visual conformity is **Not evaluated**. The parent owns the final repository build and package-export check; package-consumption was not run.
7 changes: 7 additions & 0 deletions docs/distribution/consumer-requests.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,13 @@ merging. Consumer CI runs `egdev-ds doctor <project> --fail-on-pending` as the m
npx would look `egdev-ds` up on the registry instead of the vendored `@egdev/cli`). Pending placeholders then cause DS043 to fail with exit 1.
The local `ds:doctor` script stays warning-only for placeholders, so drafts may hold them.

**DS-internal gaps without app CSS.** Sometimes the gap sits inside a DS component, and the app writes no CSS that
`doctor` reports. For example, an internal action gap leaves two adjacent IconButton targets too close together. In
that case do not add an allowlist entry: with no finding to back it, the entry is stale (DS042) and fails `ds:doctor`.
File the Consumer request, leave a `// TODO(egdev-design-system#N)` comment at each affected usage so the dependency
stays visible and traceable, and keep the composition unchanged until the DS release that resolves it. Do not override
the component's internals to work around it, because that would be a DS046 or DS047 finding.

## 3. Implement in the DS

The change follows the usual DS workflow ([CONTRIBUTING.md](../../CONTRIBUTING.md), ODD when
Expand Down
Loading