Skip to content

feat(widget): render recommendation attributes and stabilize product display contract#6

Merged
digitalrisedorset merged 2 commits intomainfrom
feature/widget-attributes-rendering
Mar 30, 2026
Merged

feat(widget): render recommendation attributes and stabilize product display contract#6
digitalrisedorset merged 2 commits intomainfrom
feature/widget-attributes-rendering

Conversation

@digitalrisedorset
Copy link
Copy Markdown
Contributor

Context:

Completes initial end-to-end rendering of recommendation results from the intent engine.

Changes:

  • render product attributes dynamically (flatten attribute arrays)
  • guard against undefined values (safe mapping)
  • limit attribute display to reduce UI noise
  • prepare structure for product card (attributes, labels, image placeholder)

Impact:

  • aligns frontend with current engine response shape
  • exposes contract assumptions between engine → widget

Open questions:

  • should attribute display be deterministic or ranked?
  • should UI rely on labels or value IDs?
  • how do we handle missing images / incomplete products?

Next step:

  • integrate image rendering from catalog API
  • add add-to-cart interaction
  • refine UX around intent context switching

Herve Tribouilloy added 2 commits March 30, 2026 14:36
- only trigger AI interpretation when intent text is present
- allow filter selections to directly drive product suggestions
- stabilise handleAsk flow (no conditional hook usage)
- improve UX consistency between typed and structured intent
@digitalrisedorset digitalrisedorset merged commit cfe2931 into main Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant