Skip to content

feat: add AI signposting for GDA#676

Open
mkouzel-yext wants to merge 4 commits into
mainfrom
gda-ai-signpost
Open

feat: add AI signposting for GDA#676
mkouzel-yext wants to merge 4 commits into
mainfrom
gda-ai-signpost

Conversation

@mkouzel-yext

Copy link
Copy Markdown
Contributor

Adds an signpost to the GenerativeDirectAnswer component that informs users that the direct answer content is AI-generated. The content of the signpost is customizable, but defaults are provided. The signposting is require to comply with upcoming EU regulations, and is therefore on by default.

J=WAT-5645
TEST=manual,auto

Tests added for GDA signpost.

Screen.Recording.2026-06-11.at.5.21.19.PM.mov

@mkouzel-yext mkouzel-yext requested a review from a team as a code owner June 11, 2026 21:30
@github-actions

Copy link
Copy Markdown
Contributor

Current unit coverage is 89.20094936708861%
Current visual coverage is 68.99383983572895%
Current combined coverage is 91.65372670807453%

@coveralls

coveralls commented Jun 11, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 84.578% (+0.1%) from 84.463% — gda-ai-signpost into main

*/
export interface AISignpostProps {
/** Icon displayed before the signpost label. Defaults to the SDK's AI signpost icon. */
icon?: React.ReactNode,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make the icon type React.JSX.Element to be consistent with existing props? And I think label, popoverHeader, and popoverBody can just be string.

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