Commit Graph

21 Commits

Author SHA1 Message Date
Nima Karimi ef0aacf2d2
Woo AI Release 0.4.0 (#40134)
Updating version and changelog
2023-09-14 06:24:19 +03:00
Nima Karimi 01dd039b21
Suggest product categories with AI (#39437)
* Accept arguments for the TinyContent getContent method.

Used to fetch the plain text version of the description.

* Add a class to the loading message content

* Set the max description length as global constant

* Create a MagicButton component and use it

* Get plain text description instead of HTML

* Return full category hierarchy (Parent > Child)

* Add method to return all available categories on the product edit page

* Helper function to generate product data instructions for the prompt

* Helper function to select category checkboxes on DOM

* Create component to display a list of suggestion items as pills

* Add product category suggestions to product edit page

* Use the AI package to get text completion

* Add tracks

* Add changelog

* Fix merge conflict

* Remove NoMatch state for category suggestions

* Get available categories using WC REST API

* Suggest new categories

* Run separate prompts for existing and new category generation

* Fix overflow in suggestion pills

* Don't include existing selected categories in prompt

* Add util to encode html entities

* Exclude "Uncategorized" category from product data

* Allow excluding properties from the product data instructions

* Create category from suggestion if it doesn't exist

* Show suggestions as links instead of pills

* Ask for feedback after suggestion selected

* Decode html entities in available categories results

* Don't encode html entities when comparing available categories

* Change feedback box style

* Suggest only one category

* Remove log

* Show feedback box after generating suggestions

Instead of showing it after a suggestion is selected

* Fix typo
2023-09-12 19:59:26 +03:00
Thomas Shellberg 8ec91504ff
Add Short Description "Write With AI" Button + Inform about automatic generation (#39805)
* Add "Write With AI" button to product short description media buttons area.
2023-09-06 12:36:14 +02:00
Thomas Shellberg c61f453fdb
Remove Woo AI Enabled Setting and rework copy on the Woo AI Settings page. (#39784)
* Woo AI - Remove enabled setting. Re-order tone of voice settings and adjust neutral messaging.
2023-09-06 11:07:39 +02:00
Thomas Shellberg ffb38055a0
Woo AI - fix store branding settings page regression. (#39773)
Woo AI - fix store branding settings page regression.
2023-08-17 21:45:32 +02:00
Thomas Shellberg a319582c6d
Fix saving bug with Woo AI settings page and simplify. (#39565)
* Fix Woo AI plugin settings page save bug and refactor settings page.
2023-08-15 22:10:21 +02:00
Thomas Shellberg 9418072a47
Add Branding + Tone to Product Descriptions (#39253)
* [Woo AI] generate product descriptions using tone of voice and/or business description context.
2023-08-09 14:15:18 +02:00
Sam Seay e8c3808527
Upgrade TypeScript to v5.1 (#39531) 2023-08-08 16:35:31 +12:00
Joel Thiessen 144bf08293
Generating the short description on the product editor (#39237)
* [Woo AI] Generate short description after long description is generated.
2023-08-07 14:03:52 +02:00
Sam Seay 4a2fd63b99
Use syncpack customTypes to keep pnpm and node in sync. Update pnpm to 8.6.7 (#39245) 2023-07-18 14:27:18 +12:00
Joel Thiessen 7cb5cfed69
Making completion utilities available in AI package (#39190)
Co-authored-by: github-actions <github-actions@github.com>
2023-07-17 10:25:14 -07:00
Joel Thiessen b7e7d66de8
Adding basic Woo AI settings screen (#38920) 2023-07-12 17:12:03 -07:00
Nima Karimi 1096ddb0d3
Incorporate additional product data to generate AI description (#39150)
* Switching front-end description logic to use new endpoint

* Logging troubles

* Tentively working for title suggestions

* Adding changelog

* Updating to accept altered response body for title suggestions

* Using client-size streaming instead of our own proxy API

* Removing obsolete API code

* implementing feedback

* Refactoring product data logic

* Fixing getAttributes function to work with local attributes

* Allowing for boolean values in product data

* Refactoring getCategories to always return array

* Removing orphaned type

* Refactoring getCategories again

* Refactor productData methods to get attributes and categories

* Include product properties in the prompt for generating description

* Add changelog

* Include local attributes in addition to global attr

* Show error if parsing suggestions fail

---------

Co-authored-by: Joel <dygerati@gmail.com>
2023-07-10 23:35:03 +03:00
rodelgc 90a6ba76dd
Update `wp-env` to `8.2.0` (#39100)
* Update pinVersion

* Syncpack fix mismatches

* Update lockfile via `pnpm i`

* Add changelog.

* Add more changelogs
2023-07-06 10:06:39 -07:00
Joel Thiessen 419bd98db7
Updating product AI features endpoints (#38930) 2023-07-05 18:39:19 -07:00
Sam Seay 957fb2b07e
Update pnpm to 8.6.5 (#38990) 2023-06-29 16:51:29 +12:00
Nima Karimi 8d5d8d9302
Release Woo AI plugin v0.2.0 (#39011)
Updating versions and changelog
2023-06-29 02:21:33 +03:00
Joel Thiessen 9927facfb3
Adding tracks events indicating visibility for ai features (#39005) 2023-06-28 10:32:12 -07:00
Nima Karimi 500cdb8b23
Update the product's permalink (slug) when an AI suggestion is selected (#38902)
* Add product id to product data

* Create a React Hook for updating product slug

* Update product slug when title is updated.

* Add changelog

* Import hooks from index

* Use getPostId util to get product ID

* Only update draft product's slug
2023-06-27 21:46:18 +03:00
Joel Thiessen 6c3256b413
Handling errors from token endpoint (#38708) 2023-06-19 13:44:05 -07:00
Joel Thiessen 8098c35588
Add initial release of WooAI plugin (#38610)
Co-authored-by: Joel Thiessen <444632+joelclimbsthings@users.noreply.github.com>
Co-authored-by: Nima Karimi <73110514+nima-karimi@users.noreply.github.com>
Co-authored-by: Thomas Shellberg <tommy.shellberg@automattic.com>
2023-06-08 13:20:05 -07:00