# Coverage and status

What the Casa Elida foundation covers at 0.2.0, how each pattern from the retail reference maps to a recipe, and what is still open. Statuses are deliberately conservative.

| Status | Meaning |
| --- | --- |
| **Tested** | Recipe and runnable example exist, and a unit or browser test asserts the behaviour (every listed page also runs axe for WCAG 2.2 A/AA). |
| **Implemented** | Recipe and runnable example exist and were reviewed at 390 px and 1440 px; no dedicated assertion beyond the page-level axe and overflow checks. |
| **Specified** | Rules are written; no recipe yet. |
| **Needs input** | Waiting for a Casa Elida rule, data source or decision. |
| **Excluded** | Not adopted for Casa Elida. |

Examples: storefront `/tienda/` (home, `categoria`, `producto`, `escena`, `carrito`, `cuenta`), internal tools `/sistemas/`, labels `/sistemas/etiquetas/`, share previews `/compartir/`, recipe pages `/componentes/` and `/patrones/`. Run `pnpm dev`.

## Foundations

| Pattern | Recipe | Status | Notes |
| --- | --- | --- | --- |
| Colour, type, spacing, radius, layers, control and row sizes | `tokens/`, `exports/tokens.css` | Tested | Contrast pairs in `ce-theme.json` are validated. Brand red with white is 4.33:1, so small white text uses action red. |
| Inter 400/600/700/800 | `recipes/fonts.css`, `fonts/inter/` | Tested | Hashes checked. Arial fallback. |
| Density: touch, comfortable, compact | `data-ce-density` | Tested | Compact rows stay ≥ 40 px. |
| Focus, reduced motion, larger text | All recipes | Tested | Focus ring is light-on-dark over photography and the black utility bar. |
| Campaign colours without changing tokens | `--ce-campaign-surface`, `--ce-campaign-text`, `campaignColors()` | Tested | `campaignColors` reports the contrast ratio and the minimum it must meet. |

## Vue components (`@casaelida/vue`)

| Component | Recipe | Status | Notes |
| --- | --- | --- | --- |
| `CEButton` | `ce-button` | Tested | Unit tests; rendered on `/componentes/`. |
| `CETextField` | `ce-field`, `ce-input`, `ce-input-group` | Tested | Unit tests; rendered on `/componentes/`. Pass an `id` when several Vue apps share a page. |
| `CEPrice` | `ce-price` | Tested | Unit tests; every price on the site is rendered by it through `site/components/Price.astro`. |
| `CEProductCode` | `ce-code` | Tested | Unit tests; rendered in the code specimens on `/patrones/`. Product cards still write the code badge by hand. |
| `CEConversationList`, `CEMessageList`, `CEMessageComposer` | `ce-conversation-list`, `ce-message-list`, `ce-composer` | Tested | Unit tests and standalone browser proof in `tests/consumer/consumer.spec.mjs` using the anonymously installed package and packaged styles; `/mensajeria/` is the small composition example. See [Messaging](#messaging-ce-meta-app). |
| `CEAttachmentGroup`, `CEWorkStatus` | `ce-attachments`, `ce-work-status` | Tested | Unit tests, the standalone recipe/layout suite and installed-consumer attachment/context tests. Supplied states only; no application workflow. See [Messaging](#messaging-ce-meta-app). |

## Messaging (CE Meta App)

Presentation for conversation interfaces. Delivery, assignment, authorization and transport belong to the application; nothing here connects to a messaging provider. The full application lives in private `j3w1/ce-meta-app` after B4. `/mensajeria/` is a compact, Spanish simulated composition of the public components, with conversation selection and local reply/note events. The [B5 retirement map](https://github.com/j3w1/ce-theme/blob/main/docs/messaging-retirement.md) classifies all 67 transferred browser scenarios and five static titles. Public keyboard, focus, draft, selection, attachment/context and scroll contracts stay in the existing standalone and anonymous consumer harnesses; public CI needs no private checkout or credentials.

| Pattern | Recipe | Status | Notes |
| --- | --- | --- | --- |
| Conversation list: selected, unread, draft, kind, empty | `ce-conversation-list`, `ce-conversation`, `ce-avatar` | Tested | Native buttons; arrow-key navigation is not provided. |
| Message list: incoming, outgoing, system, long text and URLs | `ce-message-list`, `ce-message` | Tested | `role="log"`; keeps the reader's scroll position. |
| Internal note, always "No la ve el cliente" | `ce-message--note`, `ce-composer--note` | Tested | Presentation only; the service must enforce who can read a note. |
| Message status in words: Enviado, Entregado, Leído, No entregado | `ce-message-status` | Tested | Delivery only; never acceptance or completion of work. |
| Composer with reply and note drafts | `ce-composer` | Tested | Enter adds a line, Ctrl or ⌘ + Enter submits. |
| Attachments already sent: one to many images, uncropped, each asking to open | `ce-attachments`, `ce-attachment` | Tested | Presentation only: no upload, camera, storage, verification, zoom or viewer. Tiles reserve their box so images never shift the message list. |
| Contextual content in a message, and the progress of one piece of work | `ce-message-context`, `ce-work-status` | Tested | States are supplied by the application and are illustrative, not CE Systems rules. Delivery status and work progress are shown separately. |
| Voice notes, calls, camera, uploads and a photo viewer, native notification permission | — | Specified | Application/native scope in CE Meta App; browser tests here do not verify native Android or iOS behaviour. |
| Offline, upload failure and retry, restricted conversations | `ce-notice`, `ce-locked` | Specified | The composer can be disabled with a visible reason; the other states are not built. |
| Customer assignment, product sharing, AI answers | — | Excluded | Application responsibilities in CE Meta App; not public-component contracts. |

## Shared elements and forms

| Pattern | Recipe | Status | Notes |
| --- | --- | --- | --- |
| Buttons, icon buttons, links, chips | `ce-button`, `ce-icon-button`, `ce-link`, `ce-chip` | Tested | `ce-icon-button--action` for the card QuickAdd at 44 px (`--ce-size-target-public`); `--small` stays 40 px for other card actions. |
| Fields, validation, select | `ce-field`, `ce-input`, `ce-select` | Tested | `base-select` customizable list where supported; token chevron fallback elsewhere. |
| Native controls: textarea, radio, range, date and time, file, colour, meter, media | `ce-textarea`, `ce-radio`, `ce-range`, `ce-input`, `ce-color`, `ce-meter`, `ce-media` | Tested | [controls.md](controls.md) maps every HTML control to a recipe; a browser test fails on a raw control. Date, colour and file pop-ups stay with the browser. |
| Checkbox, switch, fieldset, input with prefix, quantity, upload, tokens, combobox list | `interface.css` | Implemented | Combobox needs the application's filtering and `aria-activedescendant` handling. |
| Breadcrumbs, tabs, disclosure | `ce-breadcrumbs`, `ce-tabs`, `ce-disclosure` | Tested | Tabs follow the arrow-key pattern in `behaviors.mjs`. |
| Dialog, drawer, menu, tooltip | `<dialog>`, `popover` | Tested | Dialogs return focus to the control that opened them. Menu and tooltip positioning is left to the application. |
| Notices, toast, spinner, skeleton, empty state, progress, save state | `interface.css` | Implemented | |
| Demonstration cue (DemoCue) | `ce-demo-cue` | Tested | The words come from the consumer, with `role="note"`; production output leaves the element out. Example: the `DemoCue` design-system card. Browser tests render the card at 390, 768 and 1440 px with text at 100%, 150% and 200% (wraps, stays inside its container, never overlaps the page header), run axe and check that the cue comes first in the main content; a unit test checks the recipe holds no text and no raw colour and that every example uses the canon wording. See [names.md](names.md#demonstration-cue). |
| Status pills | `ce-pill`, `ce-status` | Implemented | Always text plus colour. |
| Availability line (StockLine) | `ce-stock` with `data-state` `available`, `limited`, `unavailable`, `unknown`, `pending` | Tested | Always words plus a dot; the list is named «Disponibilidad». Browser tests render the five states at 390, 768 and 1440 px with text at 100%, 150% and 200% (the words wrap, the dot stays on the first line, nothing overflows), compare the dots (unknown equals no `data-state`; only `unavailable` is a ring) and read the words with forced colours and in greyscale. A unit test checks every sample's wording against its state and the demonstration fixtures. Screen-reader reading is not run. See [names.md](names.md#stockline). |
| Icons | `site/data/icons.mjs` (30 outlined icons) | Implemented | Social platforms are text links, not their marks. |

## Retail navigation and discovery

| Reference pattern | Recipe | Status | Notes |
| --- | --- | --- | --- |
| Skip links, including “skip list” before rails | `ce-skip` | Tested | |
| Black utility bar with store and delivery context | `ce-utility-bar`, `ce-store-context` | Tested | Store choice dialog with `ce-choice-card`. |
| Header: logo, primary links, pill search, account, favourites, cart count | `ce-site-header`, `ce-site-nav`, `ce-search`, `ce-site-action`, `ce-count` | Tested | Mobile: icons in the first row, full-width search below, menu in a start-side drawer. Search suggestions are not implemented. |
| Mega-menu panels | — | Specified | Use the drawer list (`ce-nav-list`) on all widths until the category tree is defined. **Needs input:** category hierarchy. |
| Category pills with thumbnails | `ce-category-rail`, `ce-category-link` | Implemented | |
| Category tiles on subtle ground | `ce-category-tiles`, `ce-category-tile` | Implemented | |
| Hero mosaic: one large, one wide, two small, 12 px gaps | `ce-mosaic`, `ce-tile` (`--light`, `--wide`, `--tall`) | Implemented | Light tiles use catalogue cut-outs on brand grounds because no approved lifestyle photography was supplied. |
| Split promotion: photo two thirds, colour panel one third | `ce-split-promo` | Implemented | Panel defaults to action red; set campaign colours per campaign. |
| Colour-block content cards | `ce-block-card` | Implemented | |
| Image cards with label row; pill-label cards | `ce-card-link`, `ce-pill-card` | Implemented | |
| Peeking carousels with track and prev/next | `ce-rail`, `ce-rail-buttons`, `enhanceRails` | Tested | Native scroll container; buttons are an enhancement. |
| Statement banner | `ce-statement` | Implemented | |
| Price-point circles | `ce-price-points`, `ce-price-point` | Implemented | Amounts are supplied commercial terms. |
| Social gallery | `ce-social-grid`, `ce-social-item` | Specified | **Needs input:** approved social images without account chrome. |
| Footer with link groups, legal row | `ce-site-footer`, `ce-footer-grid`, `ce-footer-legal` | Implemented | Payment-logo row omitted until the accepted methods and their logo licences are known. |
| Feedback prompt, notice bands | `ce-feedback`, `ce-band` | Implemented | |

## Product presentation

| Pattern | Recipe | Status | Notes |
| --- | --- | --- | --- |
| NAME / Description / specs | `ce-product-name`, `ce-product-description`, `ce-product-specs`, `productView` | Tested | Unit tests for casing rules. |
| CE code badge with on-screen number underline | `ce-code`, `codeSegments` | Tested | Underline removed in print; copying returns the exact code. |
| Product card: flag, optional desktop quick-add to cart, availability, more options, compare | `ce-product` plus `ce-product-flag`, `ce-product-row`, `ce-stock`, `ce-variant-thumbs`, `ce-product-select` | Tested | Browse first: no favourite and no full-width add button on the card. The QuickAdd icon shows only on the hovered or focused card on hover-capable screens from 640 px; on touch and narrow screens the whole card is the product link, with its other controls kept separate. A card with no Description and no specs shows no quick-add. The deprecated `ce-product-add` stays hidden at every width. Ratings and review counts are not shown: no review data exists. |
| Prices: S/ in line base (default), S/ unido, S/ elevado, yellow offer, red sale, unit and presentation basis | `ce-price`, `preparePrice`, `CEPrice` | Tested | |
| Store-aware price states | `ce-store-note`, `ce-price-pending`, per-store views | Tested | No store, price unavailable, store switch without stale amounts. Loading state styled (`aria-busy`) but not exercised. |
| In-page store line (`StoreBar`): store, change action, no-store and pending states | `ce-store-note` + `ce-link` | Tested | On every storefront page whose prices or availability depend on the store: the cart («Importes en …», with each store's supplied amounts), and the home, listing, product and scene pages («Precios y disponibilidad de …»). Each shows «Tienda: sin elegir» and no store-supplied amount without a store (the home page's «Hasta S/…» price-band links are not store prices). The action opens the store dialog, is a 44px target and shows the focus ring. Pending state («Actualizando», `aria-busy`, `role="status"`) shown in the StoreContext card and measured there with the Inter files and the generated recipes; its screen-reader announcement is not run. The product page's fulfilment «Cambiar tienda» link sits outside `ce-store-note` and stays under 44px. |
| Quantity prices | `ce-tiers`; label `ce-label-bulk` | Implemented | **Needs input:** the quantity-price rule and its source in CE Systems. |
| Listing: quick filters, result count, active filters, sidebar or drawer, sort | `ce-filter-bar`, `ce-filter-chips`, `ce-result-count`, `ce-active-filters`, `ce-listing`, `ce-listing-aside` | Tested | Columns 2 / 3 / 3 + sidebar / 4 + sidebar. Filter facets and counts come from the search service. |
| In-grid promotion | `ce-grid-promo` | Implemented | |
| Load more with progress | `ce-load-more`, `ce-progress` | Implemented | Keep a crawlable next-page link in the application. |
| Product detail: gallery, buy box, variants, quantity, one primary add to cart, favourite, fulfilment, facts, disclosures | `ce-pdp`, `ce-gallery`, `ce-buy-box`, `ce-variant-picker`, `ce-quantity`, `ce-buy-actions`, `ce-fulfilment`, `ce-facts` | Tested | One primary «Añadir al carrito» and one product-named favourite with a pressed state. Add outcomes and eligibility are supplied by the commerce service and only presented. No sticky buy-bar recipe: a consumer bar replaces the inline action and is never visible with it. Missing care information is stated, not invented. |
| Shoppable scene with hover pins and accessible list | `ce-scene`, `ce-tagged-media`, `ce-pin`, `ce-tag-list`, `enhancePins`, `enhanceMarkers` | Tested | Pins open a product card on hover, focus or tap, stay inside the photo, and can be hidden; the list remains, with named product links and no add action per product. Positions and prices are supplied data. The card text keeps the ProductStack offsets (2px NAME to Description; 8px to the price, store note or pending-price message). The open card stays inside the photo at 390, 768 and 1440 px with text enlarged x1.5 and x2 (every font size and the root size scaled, as a text-size setting does), including the longest NAME and a long Description; a card taller than its photo is limited to it and scrolls, also by keyboard, and every card's focus ring stays visible inside the photo (CR-09). Screen readers and real devices are not tested. |
| Lettered A, B, C markers for static media | `ce-tagged-media`, `ce-hotspot` | Tested | Social posts, print and share images, where nothing can hover. |
| Collage of scene photos | `ce-collage` | Specified | Recipe present; no approved lifestyle set to demonstrate. |
| Feature tags and detail insets on photos | `ce-feature-tag`, `ce-detail-inset` | Implemented | |
| Comparison table | — | Specified | Compare selection exists; the comparison view needs the attribute model. |
| Reviews and ratings | — | Excluded | No review data or moderation process. |

## Customer journeys

| Pattern | Recipe | Status | Notes |
| --- | --- | --- | --- |
| Cart lines: identity, supplied amount-or-note, availability, quantity and remove | `ce-cart-lines`, `ce-cart-line`, `ce-cart-line-body`, `ce-cart-line-actions` | Tested | CR-04/08: existing anatomy with ProductStack distances; optional fields and eleven static supplied-state scenarios in the Cart card. `tests/browser/cart-line.spec.mjs` measures 390/768/1440px at actual computed text factors 1/1.5/2 with shipped Inter (including px/rem descendants), gaps, fit/overlap, 44px targets, focus, keyboard traversal, click isolation and axe. Screen-reader pending/failed pass: not run, to schedule. No arithmetic or live commerce behaviour. |
| Cart layout and order summary | `ce-cart`, `ce-order-summary`, `ce-summary` | Implemented | Amounts are supplied by the commerce service; the interface never totals them. Compact summary lines, steps and choice cards are outside CR-04/08. |
| Checkout steps and fulfilment choice | `ce-steps`, `ce-choice-cards` | Implemented | **Needs input:** delivery coverage, costs, payment methods and their providers. |
| Favourites | `aria-pressed` heart on the product page, favourites section | Implemented | Not on catalogue cards. Persistence belongs to the account service. |
| Sign in / create account | `ce-auth`, `ce-divider` | Implemented | **Needs input:** identity provider, password rules, social sign-in. |
| Order tracking | `ce-timeline` | Implemented | **Needs input:** the order status vocabulary. |
| Store locator | `ce-locator`, `ce-location`, `ce-map-slot` | Implemented | **Needs input:** confirmed addresses, hours and the map provider. |
| Help and service links, FAQ | `ce-link-rows`, `ce-disclosure` | Implemented | |
| Returns, complaints book | Link rows | Specified | **Needs input:** returns policy and the complaints-book (Libro de Reclamaciones) process. |
| Gift cards, financing, loyalty pricing, assembly services, second-hand | — | Excluded | Not Casa Elida services today. |

## Internal workspaces (CE Systems, CE Meta, CE Radio)

| Pattern | Recipe | Status | Notes |
| --- | --- | --- | --- |
| App shell, module navigation, context switcher | `ce-app`, `ce-app-bar`, `ce-module-nav`, `ce-app-context` | Implemented | Collapses to a top scrolling nav below 1024 px. |
| Module navigation: link height and current page (CR-01) | `ce-module-nav`, `ce-app-brand` | Tested | Module and brand links are at least `max(--ce-size-target-public, --ce-control)` tall: 44 px with no density and in compact, 56 px in touch. Only `aria-current="page"` draws the current link. Labels stay inside the 240 px column with text at 150% and 200%. The AppShell card shows a seventeen-link example; the application supplies its modules and icons. No screen-reader walk has been run (to schedule). |
| Data table: sort, select, sticky header, numbers, bulk bar | `ce-data-table`, `ce-sort`, `ce-bulk-bar`, `ce-table-footer` | Tested | Sorting and selection state come from the application. |
| Record header, editor sections, read-only and locked fields, save state, audit | `ce-record-*`, `ce-form-*`, `ce-readonly`, `ce-locked`, `ce-save-state`, `ce-audit` | Tested | Locked code field explains that `1688toPL` allocates codes. A product record title follows the ProductStack through direct children (code to heading 8px, heading to specs 2px); a title without product identity keeps its 4px gap. The record header moves the status to the next line rather than narrow the title below its one-line code. |
| Permissions-aware presentation | `ce-locked`, `ce-pill`, disabled menu items | Implemented | Presentation only; the service enforces permissions. **Needs input:** role model. |
| Store price matrix | `ce-data-table` | Implemented | Read-only view of the pricing service. |
| Receiving with differences | `data-ce-density="touch"`, `ce-notice`, numeric inputs | Implemented | **Needs input:** receiving workflow and tolerance rules. |
| Point of sale | `ce-pos` | Specified | Recipe present; not demonstrated. **Needs input:** POS scope. |
| Compare versions | `ce-compare` | Specified | |
| Dashboards and charts | — | Specified | Follow the dataviz rules of the consuming tool; no chart recipes here. |
| HR, finance, approvals | — | Needs input | No business contracts supplied. |
| CE Radio player, playlists, Admin | ce-theme recipes plus CE Radio's token-only `user.css`, `chrome.css`, `admin.css` | Implemented | Applied in `j3w1/ce-radio` (branch `claude/great-meitner-hw3udm`); design-system cards `RadioPlayer`, `RadioStates`, `RadioPlaylists`, `RadioAdmin` are captured from the app. Windows checks on the store PC are pending. |

## Cross-channel outputs

| Output | Recipe | Status | Notes |
| --- | --- | --- | --- |
| Share image 1200 × 630, product / text / category / brand | `exports/share-card.css` | Tested | No prices; text inside the canvas; quarter-scale previews reviewed. Rendering service not built. |
| Share metadata contract | [sharing.md](sharing.md) | Specified | |
| Gondola label 80 × 40 mm and A4 sheet | `exports/print-label.css` | Tested | Size and containment tested in the browser. **Not verified:** physical printer, paper and QR scanning. |
| Product barcode label 40 × 20 mm, carton mark | `1688toPL` | Excluded | Owned by `1688toPL`; unchanged. |
| Social posts and stories | `ce-photo-panel`, `ce-callout` | Implemented | |
| Vuetify / Vuexy adapter (legacy) | `exports/adapters/vuetify.mjs` | Implemented | Agent proposal for the retired CE Systems; not for new applications; removal pending owner decision. |
| Claude Design system | `exports/design-system/` | Implemented | Synced copy for visual exploration. |

## Accessibility notes from the reference

The reference had issues this foundation avoids by construction: real buttons instead of clickable `div`s, no rating buttons that add tab stops, tabs with `aria-controls` and labelled panels, unique ids per store view, and no screen text below 12 px. Text on brand red stays large; small text uses action red (4.74:1). The storefront home keeps a visually hidden h1 because its first visual element is the mosaic; content pages show their h1.
