Skip to content

fix: hide g2p warnings from the GUI, show them in console#496

Merged
joanise merged 1 commit intomainfrom
dev.ej/hide-g2p-warnings
Dec 19, 2025
Merged

fix: hide g2p warnings from the GUI, show them in console#496
joanise merged 1 commit intomainfrom
dev.ej/hide-g2p-warnings

Conversation

@joanise
Copy link
Member

@joanise joanise commented Dec 19, 2025

PR Goal?

Marc noticed that sometimes our toast about g2p warnings can get really long, especially when aligning a long text, but it's not actually informative. 99% of users won't care that this or that word had to fall back to und or even understand what that means.

In brainstorming, Marc and I figured it would make more sense to console.log() the RAS web api log for the advanced user who wants to see them, but keep them out of the GUI because they're just visual noise to most users.

So that's what this PR does

Feedback sought?

I guess vetting that this idea makes sense.

Priority?

normal

Tests added?

nope

How to test?

  • Enter test asdf test in the text
  • any audio
  • select English as the language
  • and click "go to the next step"
  • See that the toast about g2p failing with eng for asdf is not diplayed, but if you open the console you'll see the full assemble log including the g2p warnings with header RAS Web API assemble/ log:.

Confidence?

high

Version change?

no

@joanise joanise requested a review from marctessier December 19, 2025 19:28
@semanticdiff-com
Copy link

semanticdiff-com bot commented Dec 19, 2025

Review changes with  SemanticDiff

Changed Files
File Status
  packages/studio-web/src/app/upload/upload.component.ts  21% smaller
  packages/studio-web/src/i18n/messages.es.json  0% smaller
  packages/studio-web/src/i18n/messages.fr.json  0% smaller
  packages/studio-web/src/i18n/messages.json  0% smaller

@github-actions
Copy link
Contributor

github-actions bot commented Dec 19, 2025

PR Preview Action v1.6.3
Preview removed because the pull request was closed.
2025-12-19 21:27 UTC

@joanise joanise force-pushed the dev.ej/hide-g2p-warnings branch from 753f2c4 to 52a4074 Compare December 19, 2025 19:32
@joanise joanise force-pushed the dev.ej/hide-g2p-warnings branch from 52a4074 to e9bf251 Compare December 19, 2025 19:34
@joanise joanise merged commit 66294e9 into main Dec 19, 2025
3 checks passed
@joanise joanise deleted the dev.ej/hide-g2p-warnings branch December 19, 2025 21:27
Copy link
Collaborator

@marctessier marctessier left a comment

Choose a reason for hiding this comment

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

Works great! gp2 Warning were in console logs.

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.

2 participants