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
12 changes: 12 additions & 0 deletions docs/components/attachment-field/v0.3/implementation-evidence.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# AttachmentField v0.3 — implementation evidence

## Observed

- The [S11 spacing amendment](remove-action-hit-area-amendment.md) records payload SHA-256 `e573cf4747cd5f6e40588e142735c2ba52b8f26b83350d181986b9d529bf6b5c`. The parent reports the corrected header was verified against the line-start payload definition.
- Two focused tests failed for the intended missing root/strip spacing, with 99 passing; the focused AttachmentField suite then passed 101/101. The first browser probes found the 9.6px root and strip gaps sufficient for their tested `elementFromPoint` and stationary events.
- A later isolated touch at a Remove corner showed that the v0.3 root gap did not guarantee clearance: `elementFromPoint` returned the IconButton, while Chrome targeted the nearby Textarea from pointer-down through click. The strip did not scroll or move, no pointer cancellation occurred, and changing `touch-action` did not fix the probe. The effect also reproduced in LTR at the same coordinates.
- The approved [v0.4 amendment](../v0.4/implementation-evidence.md) supersedes v0.3's root-gap value and clearance claim, retaining the `gap-3` strip. The final corrected implementation and exact-position regression passed the matrix described there.

## Pending

Do not treat the historical 9.6px root as an accepted general touch-clearance result. Physical-device and assistive-technology checks and approved visual references remain pending. Visual conformity is **Not evaluated**. The [shared IconButton evidence](../../icon-button/v0.4/implementation-evidence.md) records the complete checks and environment.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# AttachmentField v0.3 — remove-action target spacing amendment

- **Status:** Approved 2026-11-22 (owner's conditional choice in [S11 and L23](../../../../odd/tasks/consumer-request-specs.md)).
- **Amends:** the approved [v0.2 consolidated contract](../v0.2/spec.md) and [v0.1 implementation](../v0.1/implementation.md); canonical issue [#497](https://github.com/egdev6/egdev-design-system/issues/497). Unmentioned promises remain unchanged.
- **Approval / recovery:** Owner choice verbatim: “Separar o desactivar (Recomendado)” (“Primero la separación mínima con tokens existentes; si exige cambiar el layout de la miniatura, se desactiva el área con excepción documentada. Enmienda registrada en ambos casos.”). The observed conflicts can be addressed by increasing existing gaps without changing thumbnail dimensions or the corner-button arrangement, so the spacing branch applies. This is a scoped S11 decision, not a new naming convention or release.
- **Snapshot identity:** `version: v0.3`; `contentSHA256: e573cf4747cd5f6e40588e142735c2ba52b8f26b83350d181986b9d529bf6b5c`; `visualHashes: Pending`; `approvalReference: odd/tasks/consumer-request-specs.md S11, L23`; `canonicalIssue: https://github.com/egdev6/egdev-design-system/issues/497`; `latestPublishedComment: Pending` (remote history not checked).
- **Hash definition:** SHA-256 of the UTF-8 payload from line-start `## 1. Purpose and scope` through EOF, with LF line endings and final newline; tracking metadata is excluded.

## 1. Purpose and scope

Keep the automatically expanded Remove targets clear of the consumer control and adjacent thumbnail items. Reuse AttachmentField, its Stack and Cluster layouts and existing spacing tokens; no new component, token or dependency. A Chrome hit test found the first Remove extension intercepting a point inside the preceding Textarea and the next thumbnail intercepting two points in that Remove control's centered 44px square.

## 2. Anatomy and composition

The root Stack, wrapping Cluster list, thumbnail `w-20` PhotoFrame and `sm` outline IconButton at `top-1 end-1` remain. Change the root and strip spacing only; do not resize the thumbnail, move the control, add a wrapper or suppress the target. Existing DOM order, names, status and event ownership remain.

## 3. Public API

No prop, default, export, marker or naming convention changes. Existing AttachmentField registry mappings remain unchanged. The spacing change is internal composition and does not change `types.ts` or add a new target option.

## 4. Behavior

The root Stack and wrapping thumbnail Cluster use `gap={3}` instead of `gap={2}`. Under default tokens their 9.6px gap replaces 6.4px and provides clearance for the centered Remove extension both between the consumer control and the strip and between adjacent thumbnail items. Native activation, focus restoration, controlled/uncontrolled values, validation, disabled state, wrapping, RTL and callbacks remain unchanged. Hosts must still avoid clipping, overlays, ancestor transforms and insufficient local token overrides.

## 5. Accessibility

The visible Remove box remains approximately 25.6px under default tokens; the supported unobstructed hit square extends to 44.8px. The previous below-44px limitation is superseded only in that supported context. Native names, tab order, focus, announcements and the consumer's responsibility for the Textarea label remain. Neither spacing nor this amendment establishes unconditional WCAG or assistive-technology conformance.

## 6. Appearance

Both gaps increase by 3.2px under default tokens, so the field can become taller and thumbnail rows can wrap differently. Thumbnail size, corner-button position, Material and focus remain unchanged. Six meaningful files remain; **No stylesheet** or new internal module. Expected-design references remain Pending; visual conformity is **Not evaluated**.

## 7. Acceptance criteria

- Root and wrapping strip both use the next existing spacing token, preserving thumbnail geometry, DOM order and Remove/Dropzone behavior.
- Focused tests preserve controlled removal and wrapping; built-CSS browser checks probe the centered square, adjacent thumbnails and the consumer-control boundary with real pointer events.
- Changelog and usage guidance disclose the spacing change; browser, assistive-technology and visual-reference evidence remain separately reported.
13 changes: 13 additions & 0 deletions docs/components/attachment-field/v0.4/implementation-evidence.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# AttachmentField v0.4 — implementation evidence

## Observed

- The [S11/L25 superseding amendment](remove-action-hit-area-amendment.md) records payload SHA-256 `89e3a613b91b4d6353718d5d7f7991d9b7ca7d0f512d2c13904396877cc734e2`. The parent reports the corrected header was verified against the line-start payload definition.
- RED: `pnpm exec vitest run packages/ui/src/molecules/attachment-field/AttachmentField.test.tsx --maxWorkers=2 --no-cache --configLoader runner` exited 1 with one intended root-gap failure and 100 passes. GREEN: the same command exited 0 with 101/101 passing, including existing wrapping, geometry and controlled-removal cases. The final combined composition/Text suite passed 417/417.
- The current-source Chrome matrix measured a 12.8px root gap (`gap-4`) and a 9.6px thumbnail-strip gap (`gap-3`). Wide and wrapped fixtures passed **144 mouse and 144 touch** center/edge/corner sequences across LTR/RTL and normal/reduced motion, with one intended removal request per sequence.
- A separate fixture reproduced the previous button box `(827.1875, 1711.59375, 25.59375, 25.59375)`. All four Remove corners and the neighboring Textarea boundary passed mouse and touch in both directions and motion modes: **40 additional sequences**. The formerly failing point was approximately `(817.984375, 1702.390625)`; the corrected fixture directed the touch to Remove, while a point inside the Textarea still targeted the Textarea.
- Thumbnail dimensions, corner-button positioning and the strip's `gap-3` were retained. The root spacing change is visible in flow and is disclosed in the UI changelog and story guidance.

## Pending

These observations cover a specific default-token fixture and synthetic Chrome input, not arbitrary adjacent controls, physical devices or all browsers. Assistive technology, visual-reference comparison and the final distributable package remain unverified. Visual conformity is **Not evaluated**. See the [shared IconButton evidence](../../icon-button/v0.4/implementation-evidence.md) for all commands and broader limitations.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# AttachmentField v0.4 — remove-action target spacing amendment

- **Status:** Approved 2026-11-22 (owner's conditional choice in [S11 and L25](../../../../odd/tasks/consumer-request-specs.md)).
- **Amends:** the approved [v0.3 target-spacing amendment](../v0.3/remove-action-hit-area-amendment.md), superseding its root gap and clearance claim; canonical issue [#497](https://github.com/egdev6/egdev-design-system/issues/497). Unmentioned promises remain unchanged.
- **Approval / recovery:** Owner choice verbatim: “Separar o desactivar (Recomendado)” (“Primero la separación mínima con tokens existentes; si exige cambiar el layout de la miniatura, se desactiva el área con excepción documentada. Enmienda registrada en ambos casos.”). L25 records the observed Chrome touch conflict and applies the spacing branch because the next existing token does not change thumbnail layout. This is a scoped S11 decision, not a new naming convention or release.
- **Snapshot identity:** `version: v0.4`; `contentSHA256: 89e3a613b91b4d6353718d5d7f7991d9b7ca7d0f512d2c13904396877cc734e2`; `visualHashes: Pending`; `approvalReference: odd/tasks/consumer-request-specs.md S11, L25`; `canonicalIssue: https://github.com/egdev6/egdev-design-system/issues/497`; `latestPublishedComment: Pending` (remote history not checked).
- **Hash definition:** SHA-256 of the UTF-8 payload from line-start `## 1. Purpose and scope` through EOF, with LF line endings and final newline; tracking metadata is excluded.

## 1. Purpose and scope

Supersede only the root-spacing and clearance promises in AttachmentField v0.3. Chrome touch targeting selected the adjacent consumer Textarea from pointerdown at a Remove target corner even though `elementFromPoint` identified the IconButton. Keep the extended target, use existing spacing tokens and preserve thumbnail dimensions and placement; no new component, token or dependency.

## 2. Anatomy and composition

The root Stack uses `gap={4}`. The wrapping thumbnail Cluster keeps `gap={3}`; the `w-20` PhotoFrame and `sm` outline IconButton at `top-1 end-1` remain unchanged. No wrapper, thumbnail resize, control repositioning or target suppression is introduced. DOM order, names, status and event ownership remain.

## 3. Public API

No prop, default, export, marker or naming convention changes. This internal composition change does not modify `types.ts`, add a target option or change the existing AttachmentField registry mappings.

## 4. Behavior

Under default tokens, the root gap increases from 9.6px to 12.8px; the strip gap remains 9.6px. This corrects v0.3’s claim that a 9.6px root gap provides clearance from the consumer control: Chrome may adjust a touch toward the nearby Textarea even when the point hit-tests to Remove. The next existing token cleared the reproduced corner without changing thumbnail layout. Native activation, focus restoration, controlled and uncontrolled values, validation, disabled state, wrapping, RTL and callbacks remain unchanged. Hosts must avoid clipping, overlays, intervening controls and insufficient local token overrides; browser touch adjustment is not equivalent to `elementFromPoint`.

## 5. Accessibility

The visible Remove box remains approximately 25.6px under default tokens and its unobstructed target extends to 44.8px. The larger root gap is an evidence-driven clearance measure, not an unconditional guarantee for arbitrary consumer content, browsers or assistive technologies. Native names, tab order, focus, announcements and the consumer’s responsibility for the Textarea label remain unchanged.

## 6. Appearance

The root gap increases by 3.2px from v0.3, moving the strip relative to its sibling without changing the thumbnail’s size, position within its item, corner control, Material or focus. The strip keeps its v0.3 gap. Six meaningful files remain; **No stylesheet** or new internal module. Expected-design references remain Pending; visual conformity is **Not evaluated**.

## 7. Acceptance criteria

- Root Stack uses `gap={4}` and wrapping Cluster retains `gap={3}`, preserving thumbnail geometry, DOM order and Remove/Dropzone behavior.
- Focused tests preserve controlled removal and wrapping. Built-CSS browser checks cover adjacent controls, centered-square points and the consumer boundary using mouse and touch in LTR and RTL, including normal and reduced motion.
- Changelog and usage guidance disclose the root and strip gaps; browser, assistive-technology and visual-reference evidence remain separately reported.
37 changes: 37 additions & 0 deletions docs/components/button-group/v0.2/hit-area-amendment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# ButtonGroup v0.2 — compact IconButton target amendment

- **Status:** Approved 2026-11-22 (owner choice in [S8 and L18](../../../../odd/tasks/consumer-request-specs.md)).
- **Amends:** [v0.1 implementation and approved contract](../v0.1/implementation.md), canonical issue [#79](https://github.com/egdev6/egdev-design-system/issues/79), with [v0.1 approval](https://github.com/egdev6/egdev-design-system/issues/79#issuecomment-6251489483). Unmentioned promises remain unchanged.
- **Approval / recovery:** Owner choice verbatim: “SocialLinks mínimo + ButtonGroup sin área (Recomendado)” (“Enmienda SocialLinks: `gap` pasa a separación mínima por tamaño (md ≥ gap-4, lg ≥ gap-2; mismos valores y default) → sus iconos tienen 44px. ButtonGroup (pegado y spaced) desactiva el área extendida: compacto por diseño; sus IconButton quedan por debajo de 44px y se documenta. Sin cambio visual en ButtonGroup.”). This records the scoped S8 decision; it is not a new convention approval or release.
- **Snapshot identity:** `version: v0.2`; `contentSHA256: 10094b1045023191dbe8e52907f0050be9e9eb4dd095a2fb86e1011dbd7bfa01`; `visualHashes: Pending`; `approvalReference: odd/tasks/consumer-request-specs.md S8, L18`; `canonicalIssue: https://github.com/egdev6/egdev-design-system/issues/79`; `latestPublishedComment: Pending` (remote history not checked).
- **Hash definition:** SHA-256 of the UTF-8 payload from line-start `## 1. Purpose and scope` through EOF, with LF line endings and final newline; tracking metadata is excluded.

## 1. Purpose and scope

Keep both existing compact group layouts without overlapping the newly extended IconButton targets. Reuse ButtonGroup; no new component, public target opt-out, token or dependency. Its existing React exports and sources are in `packages/ui/src/molecules/button-group/`.

## 2. Anatomy and composition

The native named or unnamed group and supported direct Button/IconButton action hosts remain; their normal Slot trigger composition, refs and native semantics are preserved. The group locally disables the invisible extension of its IconButtons in both `attached` and `spaced` modes without child cloning or a new focusable object.

## 3. Public API

`variant?: 'spaced' | 'attached'` and default `spaced`, `label` and `children` remain unchanged in type and defaults. The changed contract is that grouped IconButtons deliberately retain only their visible pointer target. Registry mappings remain `variant` → `visual-treatment` and `label` → `accessible-name`; no convention, alias or exception change is approved. The reviewed pre-change source is `packages/ui/src/molecules/button-group/types.ts`, `ButtonGroupProps`, SHA-256 `2ecb19299d2410ef130ed830d62b410b17c8adc04bb73625de6bd0940ed94e51`; usage revisions require refresh after its bytes change.

## 4. Behavior

Both group variants suppress the IconButton extension for all pointer types while preserving their existing gaps, wrapping, direct-child ordering and callbacks. Standalone IconButtons retain their automatic target. No key handler, synthetic event or independent state is added.

## 5. Accessibility

Grouped IconButtons can remain below 44px: their visible default-token boxes are 25.6px, 32px and 38.4px. This scoped compact exception is not a 44px or WCAG target-size claim. Each enabled action keeps its native tab stop, accessible name and visible-root focus ring; consumers choose a larger alternative when their context requires one.

## 6. Appearance

No group layout or resting appearance changes: attached and spaced retain their existing geometry. The separate IconButton v0.5 pressed-paint change still applies. Material and focus remain owned by the children. Six existing meaningful files remain; **No stylesheet** or new internal module. Expected-design references for this compatibility change are Pending; visual conformity is **Not evaluated**.

## 7. Acceptance criteria

- Both variants suppress the target extension for native and compatible slotted IconButtons while preserving direct child hosts, gaps, names, callbacks, focus and ref forwarding.
- Rerendering between variants and rendering standalone controls preserves the respective scoped and automatic behavior; built-CSS browser tests verify hit boundaries and no intercept of neighboring actions.
- Usage guidance documents the below-44px limitation; browser, assistive-technology and visual-reference evidence are reported separately rather than inferred.
18 changes: 18 additions & 0 deletions docs/components/button-group/v0.2/implementation-evidence.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# ButtonGroup v0.2 — implementation evidence

## Observed

- The [S8 compact-target amendment](hit-area-amendment.md) has payload SHA-256 `10094b1045023191dbe8e52907f0050be9e9eb4dd095a2fb86e1011dbd7bfa01`. Both `attached` and `spaced` locally suppress the IconButton pseudo-element; standalone IconButtons retain it.
- The earlier implementation worker reported six intended composition failures before 331/331 passed. The final combined composition/Text suite passed 417/417, including ButtonGroup.
- In the current-source Chrome matrix, both group variants contained native `sm`, `md` and `lg` IconButtons. The computed `::after` content was `none`; center and four visible-axis points produced **120 mouse and 120 touch** correct sequences across LTR/RTL and normal/reduced motion.
- This is a deliberate compact exception, not a 44px target claim: visible default-token boxes are approximately 25.6px, 32px and 38.4px. The unchanged compact layout is not evidence of visual approval.

## Marker-free follow-up

ButtonGroup reserves `data-icon-button-target="compact"` on its own root as an internal composition signal, not a new consumer prop or target-size option. IconButton consumes it with the static direct-parent utility `[[data-icon-button-target=compact]>&]:after:content-none`; ButtonGroup no longer styles through the public `eg-icon-btn` marker. Direct-parent scope preserves the earlier behavior for nested, non-direct IconButtons. The prop-naming registry was reviewed: the signal is not a new own prop, and no convention or approval was added; affected existing source revisions were refreshed.

The three-component focused run went from 14 intended failures and 120 passes to 134/134. In Chrome 148 with current-source CSS and JS, both group variants in LTR and RTL suppressed native and slotted direct children. Sixteen direct-child mouse/touch activations passed; 72 nested-child and 36 standalone center/edge/corner mouse/touch sequences retained the approximately 44.8px extension. A scratch CSS audit found all 76 static IconButton utilities and no `.eg-icon-btn` styling selector in the utilities layer.

## Pending

The follow-up exercised a slotted group child in synthetic Chrome input, not physical hybrid/coarse-primary devices or assistive technology. The parent owns a fresh package build and package-exports recheck. Browser environment and other checks are in the [shared IconButton evidence](../../icon-button/v0.4/implementation-evidence.md). Visual conformity is **Not evaluated**.
Loading