Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added storybook stories for generative direct answer component #442

Merged
merged 2 commits into from
Jun 24, 2024

Conversation

anguyen-yext2
Copy link
Contributor

J=CLIP-1226
TEST=manual

ran npm run storybook
image

J=CLIP-1226
TEST=manual

ran `npm run storybook`
@anguyen-yext2 anguyen-yext2 requested a review from a team as a code owner June 20, 2024 19:04
Copy link
Contributor

Current unit coverage is 92.12445308701993%
Current visual coverage is 79.20517560073937%
Current combined coverage is 92.61418853255589%

@coveralls
Copy link

Coverage Status

coverage: 85.244% (-0.08%) from 85.321%
when pulling cb0c46c on dev/gda-storybook
into 3f83773 on develop.

@coveralls
Copy link

Coverage Status

coverage: 85.244% (-0.08%) from 85.321%
when pulling cb0c46c on dev/gda-storybook
into 3f83773 on develop.

@anguyen-yext2 anguyen-yext2 merged commit 9779374 into develop Jun 24, 2024
21 of 22 checks passed
@anguyen-yext2 anguyen-yext2 deleted the dev/gda-storybook branch June 24, 2024 14:33
Fondryext added a commit that referenced this pull request Feb 20, 2025
This PR adds Generative Direct Answers (GDA) and GDA analytics. Full merge thread can be found below - many of the changes were already in main and were just merged into the develop branch while developing.


* add generativeDirectAnswer support (#441)

J=CLIP-1226
TEST=auto,manual

added unit and visual regression test, ran and saw tests passed
added GDA to test-site App and verified that the appropriate gda content shows up and the UI looks as expected

* Added storybook stories for generative direct answer component (#442)

J=CLIP-1226
TEST=manual

ran `npm run storybook`

* update search-headless-react dependencies version to 2.5.0-beta.3 (#443)

New version has `queryDurationMillis` as an optional field of VerticalResults

J=CLIP-1226
TEST=auto,manual

ran `npm run test`
temporarily added GDA to ProductsPage in test site and verified that the appropriate gda content shows up after a vertical search.

* support clickable citation card with link (#444)

J=CLIP-1332
TEST=auto,manual

ran `npm run test` and test manually on test-site

* GDA: citations component override  (#451)

Changes:
- Added `CitationsContainer` prop to `<GenerativeDirectAnswer>` to allow custom components to be passed in
- Updated test cases and test-site with new component passed through

J=CLIP-1369
TEST=manual|auto

Ran `npm run build`, `npm run test`, and `npm run wcag` and did manual testing on test-site

* Check for search id before executing GDA (#454)

J=CLIP-1461
TEST=auto,manual

ran `npm run test` and tested manually on test-site to verified gda is executed as expected

* Automated update to THIRD-PARTY-NOTICES from github action's 3rd party notices check

* increment versions

* Automated update to THIRD-PARTY-NOTICES from github action's 3rd party notices check

* Update snapshots

* decrement package

* Function Vertical Support via search-core/headless upgrade (#459)

This change upgrades the version for search-core and search-headless to catch the changes which add support for function verticals. It also adds a function vertical page to the test-site for easier testing. An image of that page is attached.

J=WAT-3474
TEST=auto,manual

Tested via test-site, saw responses returned were upper cased as expected by the plugin, and the source was FUNCTION_VERTICAL.

<img width="1603" alt="Screenshot 2024-08-29 at 4 03 26 PM" src="https://github.com/user-attachments/assets/14e939eb-0ac3-493f-be83-44fdf9350358">

* do not display GDA citations without name field (#468)

J=CLIP-1565
TEST=auto,manual

added and ran jest test
verfied locally using test-site that divider and citations section are not displayed without minimum citation data

* Fix hook issues caused by citations rendering (#469)

TEST=manual
function as before on test-site. Verified it doesn't cause error in ALPHA

* Automated update to THIRD-PARTY-NOTICES from github action's 3rd party notices check

* try remaking package locks

* use develop package locks

* Automated update to THIRD-PARTY-NOTICES from github action's 3rd party notices check

* Update snapshots

* Automated update to THIRD-PARTY-NOTICES from github action's 3rd party notices check

* Update snapshots

* Automated update to THIRD-PARTY-NOTICES from github action's 3rd party notices check

* Automated update to repo's documentation from github action

* remake package locks

* Add analytics event for Generative Direct Answer card (#486)

* Add analytics event for Generative Direct Answer card

J=WAT-4600,WAT-4604
TEST=auto,manual

added unit test
tested manually on test-site:
- clicked on a citation and saw the citation click event logged in snowflake
- hardcoded a link in the gda text, clicked on the link, saw cta click event logged in snowflake

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>

* try copying package lock

* Upgrade versions to non-beta

* Automated update to THIRD-PARTY-NOTICES from github action's 3rd party notices check

---------

Co-authored-by: sahilvaidya <[email protected]>
Co-authored-by: anguyen-yext2 <[email protected]>
Co-authored-by: Yen Truong <[email protected]>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
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.

3 participants