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

User Feedback: UI is not yet completely configurable #11152

Closed
soerface opened this issue Mar 17, 2024 · 4 comments · Fixed by #11153
Closed

User Feedback: UI is not yet completely configurable #11152

soerface opened this issue Mar 17, 2024 · 4 comments · Fixed by #11153

Comments

@soerface
Copy link
Contributor

Problem Statement

Right now, the "User Feedback" UI is configurable with settings like buttonLabel, formTitle etc.

However, it is not possible to change the (required) label. Also, in case of a network error / adblocker, an english error message is displayed that is also not configurable.

I would like to have all UI elements configurable, so that I can adjust it to the language of my webpage.

Solution Brainstorm

Add options isRequiredLabel and errorMessageText to allow configuration.

@Lms24
Copy link
Member

Lms24 commented Mar 18, 2024

Hey @soerface thanks for writing in! Gonna tag @billyvg and @c298lee to please take a look and further triage this, thanks :)

soerface added a commit to soerface/sentry-javascript that referenced this issue Mar 19, 2024
soerface added a commit to soerface/sentry-javascript that referenced this issue Mar 19, 2024
soerface added a commit to soerface/sentry-javascript that referenced this issue Mar 20, 2024
soerface added a commit to soerface/sentry-javascript that referenced this issue Mar 21, 2024
billyvg added a commit that referenced this issue Mar 25, 2024
…11152) (#11153)

Fix #11152

This introduces an option `isRequiredLabel`, and I planned to also add
`errorMessageText`.

However, this PR is branched off from a version that is a couple days
old. Right now, @c298lee is currently working on getsentry/sentry#63749,
which is causing major changes and the current version on master doesn't
work yet. Therefore, I didn't yet implement `errorMessageText`.

So consider this PR as a PoC, and either feel free to tag me when the
screenshot changes are done – then I'll redo the changes based on the
version that supports screenshots – or add the option on your own;
however you prefer 🙂

One open question:

Until now, there was only the error message:

> There was a problem submitting feedback, please wait and try again.

Now, depending on the status code, we have three error messages:

> - 'Unable to send Feedback. This is because of network issues, or
because you are using an ad-blocker.'
> - 'Unable to send Feedback. Invalid response from server.'
> - 'Unable to send Feedback'

Do you have a suggestion how we could make the message configurable,
without introducing too many and redundant settings? Maybe we should go
back to only one message? I'm not sure if an end-user cares about
whether it is a network issue or a server error.

---------

Co-authored-by: Billy Vong <billyvg@users.noreply.github.com>
@AbhiPrasad
Copy link
Member

Released with https://github.com/getsentry/sentry-javascript/releases/tag/7.109.0 - thanks for contributing @soerface!!

@soerface
Copy link
Contributor Author

Cool, thank you very much for your quick feedback, much appreciated!

cadesalaberry pushed a commit to cadesalaberry/sentry-javascript that referenced this issue Apr 19, 2024
…etsentry#11152) (getsentry#11153)

Fix getsentry#11152

This introduces an option `isRequiredLabel`, and I planned to also add
`errorMessageText`.

However, this PR is branched off from a version that is a couple days
old. Right now, @c298lee is currently working on getsentry/sentry#63749,
which is causing major changes and the current version on master doesn't
work yet. Therefore, I didn't yet implement `errorMessageText`.

So consider this PR as a PoC, and either feel free to tag me when the
screenshot changes are done – then I'll redo the changes based on the
version that supports screenshots – or add the option on your own;
however you prefer 🙂

One open question:

Until now, there was only the error message:

> There was a problem submitting feedback, please wait and try again.

Now, depending on the status code, we have three error messages:

> - 'Unable to send Feedback. This is because of network issues, or
because you are using an ad-blocker.'
> - 'Unable to send Feedback. Invalid response from server.'
> - 'Unable to send Feedback'

Do you have a suggestion how we could make the message configurable,
without introducing too many and redundant settings? Maybe we should go
back to only one message? I'm not sure if an end-user cares about
whether it is a network issue or a server error.

---------

Co-authored-by: Billy Vong <billyvg@users.noreply.github.com>
@yasseralsaidi
Copy link

how custmoize error message?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants