Skip to content

1.0.4

Choose a tag to compare

@mohammad425 mohammad425 released this 27 Jul 07:53
· 124 commits to master since this release

Front-end fixes to the AI assistant and the product comparison, found by testing against the real shop with real WooCommerce products.

  • The assistant's answers now render properly. It is an LLM and replies in Markdown, so a reply literally read **Price:** 19,99 € on the storefront. Answers now render as real text, lists and emphasis. The reply is third-party text, so it is turned into elements directly and never passed through as HTML.
  • The comparison table no longer shows indexing internals. WooCommerce attributes arrive prefixed, so a row read "Attr color"; the indexing timestamp appeared as if it were a product attribute; the same attribute could produce two identical rows; and values showed raw ("instock"). Prefixes are stripped, acronyms like SKU read correctly, internals are excluded, duplicates merge, values are humanized, and rows that actually differ between products sort to the top — a row where every product says the same thing helps nobody choose.
  • Comparison columns keep a readable width on a phone instead of squeezing until titles truncate.
  • Turning on the AI assistant no longer restyles the Search tab. The close button used to move out of the search input row into the tab bar; the search tab keeps its own again.

Also refreshed the npm version markers and the composer lock hash, which had drifted.

Tests: JS 143, PHP unit 87, integration 104. The built package was activated in a real WordPress: 16 REST routes, block registered, admin menu and capabilities in place.

Merged in #16.

Packaging: the JavaScript source is no longer bundled. wordpress.org needs the unminified source for the built files in public/, and the readme now links the repository and gives the build command instead — 130 KB off the download.