Both entries were mapped by kegId (29745, 33918) but had no imagePath, so the card drew the generated silhouette. Images come from the PerfectDraft DE storefront, encoded to WebP like the existing art (800 px and the native 700 px). The reference snapshot is re-synced to integration commit 1598e7b0, which spells 29745 as Löwenbräu Oktoberfestbier. Issue #8 on the integration repo.
Co-authored-by: Cursor <cursoragent@cursor.com>
Maps integration product ID 48180 to a camden-stout entry next to the
other Camden rows. Artwork is taken unchanged from card PR #2; ABV 4.0%
checked against Camden Town Brewery's own PerfectDraft listing. The
reference snapshot is re-synced to the integration commit that adds the
key (8b2c4418), and the stale lockfile is regenerated.
Co-authored-by: MThomas564 <mattraethomas97@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
The card already had the DE/AT wrap and artwork; the integration now
reports that product ID, so the join can complete. Bump to 0.4.1.
Co-authored-by: Cursor <cursoragent@cursor.com>
Replaces the global beer_name override with beer_overrides, a map keyed
by the product ID the integration reports. An entry applies only while
that keg is tapped, so a correction retires itself on a keg swap — which
matters because a card cannot rewrite its own config and so could never
prune a stale entry.
beer_name is now ignored, joining beer_entity. That is what fixes the
reported symptom: cards configured before 0.3.0 all carry the key,
because the editor of that era always wrote it and getStubConfig seeded
it, and 0.3.1 promoted those dormant values into permanent overrides.
No migration is possible, since the old value records no product ID.
An applied override is now marked on the card with the name detection
resolved, so it can never be mistaken for a detection result. The editor
records corrections against the currently tapped keg and lists saved
entries so leftovers are visible and removable.
Verified against the built bundle in a browser with stubbed hass data:
the reported case, the keg-swap recurrence, unrecognised IDs, the no-keg
state, all five layouts, and a 0.4.0 config loading on the 0.3.1 bundle.
Co-authored-by: Cursor <cursoragent@cursor.com>
Implements openspec/changes/auto-detect-gap-closure.
Catalog now covers all 114 product IDs the integration can report (was 57).
22 IDs mapped onto existing entries, unlocking 20 keg photos that already
shipped but were unreachable; 36 new entries added for beers the card did
not know. Product ID 48061 was mapped to the wrong beer -- it is Northern
Monk Faith, not A Little Faith -- so it now has its own entry.
Detection precedence is explicit: beer_name override, then product ID, then
reported keg name, then an honest no-keg state. Removes the fallback that
displayed Leffe Blonde whenever detection failed, and prefers the card's
curated name over the integration's product-listing name (12 labels).
beer_name returns as an optional override, empty by default, which also
un-orphans custom_beers. Cards on integrations without the keg sensors now
get told to update rather than shown a wrong beer. _resolveEntities no
longer latches on temperature alone.
Adds npm run check:catalog to catch upstream catalog drift, the root cause
of the original gap.
Hardware verification (tasks 8.1-8.3) still outstanding.
Co-authored-by: Cursor <cursoragent@cursor.com>
- Wire imagePath for 31 newly downloaded keg product images
- Add Castelain Ch'ti Blonde and Hertog Jan Grand Pilsener entries
- Add onerror fallback on <img> to show letter initial if image fails
- Remove 18 stale placeholder images from dist/kegs/
- Bump CARD_VERSION, EDITOR_VERSION, and package.json to 0.1.6
Made-with: Cursor