• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

yext / answers-search-ui / 27959158937

18 Jun 2026 05:51PM UTC coverage: 61.924% (+0.009%) from 61.915%
27959158937

Pull #1996

github

mkouzel-yext
feat: add AI signpost for GDA

Adds an signpost to the built in GenerativeDirectAnswer card to inform 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-5646](https://yext.atlassian.net/browse/WAT-5646)
TEST=manual,auto

Tests added for GDA signpost.
Pull Request #1996: feat: add AI signpost for GDA

2051 of 3457 branches covered (59.33%)

Branch coverage included in aggregate %.

16 of 16 new or added lines in 1 file covered. (100.0%)

336 existing lines in 12 files now uncovered.

3511 of 5525 relevant lines covered (63.55%)

27.17 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

40.0
/src/core/speechrecognition/support.js
1
import Bowser from 'bowser';
2

3
/**
4
 * Whether the SpeechRecognition API is supported by the current browser.
5
 *
6
 * Currently all languages in the SDK (en, es, fr, de, it, ja)
7
 * have SpeechRecognition support in browsers that support SpeechRecognition.
8
 * However, because browser specific SpeechRecognition documentation is poor to nonexistent,
9
 * new languages/locales will need to be manually tested for SpeechRecognition support.
10
 *
11
 * @returns {boolean}
12
 */
13
export function speechRecognitionIsSupported () {
14
  if (!(window.webkitSpeechRecognition && navigator.mediaDevices)) {
2!
UNCOV
15
    return false;
×
16
  }
17

18
  const browserData = Bowser.parse(navigator.userAgent);
2✔
19
  if (browserData.platform.type === 'desktop') {
2!
20
    return true;
2✔
21
  }
22

UNCOV
23
  const os = browserData.os.name;
×
24
  const browser = browserData.browser.name;
×
25

UNCOV
26
  return (browser === 'Safari' && os === 'iOS') ||
×
27
    (browser === 'Chrome' && os === 'Android') ||
28
    (browser === 'Samsung Internet for Android' && os === 'Android');
29
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc