open-design/apps/web/tests
Yuhao Chen 2f553941d3
fix(runtime): auto-annotate imported HTML elements for Tweaks selection (#892) (#1169)
* fix(runtime): auto-annotate imported HTML elements for Tweaks selection (#892)

* fix(runtime): always annotate missing od-ids and broaden selector (#892)

- Remove the conditional gate so annotateMissingOdIds runs for every
  srcdoc, not just comment/inspect bridges. This fixes the persistence
  regression where saved Inspect tweaks reference synthesized data-od-id
  selectors that vanish when the bridge is rebuilt without annotations.

- Expand the selector to cover div-based imported HTML (div[class],
  div[id]), headings, buttons, and links so Picker/Pods work on
  common anonymous wrapper markup.

Addresses review feedback from lefarcen and mrcfps.

* fix(runtime): narrow div selector, skip iframe/object/embed, add tests (#892)

- Replace broad div[class] with direct-child combinators only under
  semantic containers, body, and [id] elements to avoid layout noise
- Add iframe, object, embed to the skip list alongside script/style
- Add tests for: direct-child divs, nested div skip, always-on behavior,
  skip list with id attributes, div children of [id] elements
- Format selector as array join and skip tags as Set for readability

* fix(runtime): let annotateManualEditSourcePaths coexist with data-od-id (#892)

annotateMissingOdIds now runs unconditionally, so elements like main/h1
get data-od-id before annotateManualEditSourcePaths runs. The old skip
condition (has data-od-id) incorrectly prevented source-path marking on
those elements. Change the guard to skip only when the element already
has data-od-source-path, allowing both attributes to coexist.
2026-05-16 16:17:36 +08:00
..
artifacts feat(web): render GFM tables in markdown artifact and chat renderers (#1496) 2026-05-13 21:15:23 +08:00
components test(web): decouple memory preview icon assertion (#1863) 2026-05-16 11:37:34 +08:00
edit-mode Implement manual edit inspector (#1448) 2026-05-13 13:25:58 +08:00
hooks fix(web): parse Provenance with Markdown-bold labels (#1584) 2026-05-14 11:04:24 +08:00
i18n feat: add Italian (it) locale support (#1323) 2026-05-15 16:38:55 +08:00
lib fix(web): parse Provenance with Markdown-bold labels (#1584) 2026-05-14 11:04:24 +08:00
providers feat(audio): add ElevenLabs audio support (#1384) 2026-05-13 15:53:41 +08:00
runtime fix(runtime): auto-annotate imported HTML elements for Tweaks selection (#892) (#1169) 2026-05-16 16:17:36 +08:00
state Garnet hemisphere (#1702) 2026-05-14 21:12:50 +08:00
styles fix(web): keep filter pill hover labels readable (#1828) 2026-05-15 23:07:43 +08:00
utils fix(web): unbreak Create button on plain HTTP / LAN-IP deployments (#849) (#900) 2026-05-08 16:50:59 +08:00
analytics-identity.test.ts feat(analytics): PostHog product analytics (P0 events, consent-gated, packaged) (#1428) 2026-05-12 22:32:42 +08:00
analytics-scrub.test.ts feat(analytics): PostHog product analytics (P0 events, consent-gated, packaged) (#1428) 2026-05-12 22:32:42 +08:00
api-attachment-context.test.ts Inline attached file context for BYOK chats (#1730) 2026-05-15 15:52:15 +08:00
App.test.ts fix(web): suppress autosave indicator for draft-only Connector key edits (#1232) 2026-05-11 20:52:45 +08:00
comments.test.ts [codex] Add visual draw annotation context (#1547) 2026-05-13 20:02:19 +08:00
quickSwitcherRecents.test.ts feat(web): add Cmd/Ctrl+P quick file switcher (#556) 2026-05-06 10:31:50 +08:00
router-marketplace.test.ts Garnet hemisphere (#1702) 2026-05-14 21:12:50 +08:00
router.test.ts Garnet hemisphere (#1702) 2026-05-14 21:12:50 +08:00
sidecar-proxy.test.ts Migrate beta release publishing to R2 (#805) 2026-05-07 19:13:52 +08:00