Skip to content

fix: improve connectivity HTML if quota info error#8130

Open
WofWca wants to merge 1 commit intomainfrom
wofwca/quota-error-html
Open

fix: improve connectivity HTML if quota info error#8130
WofWca wants to merge 1 commit intomainfrom
wofwca/quota-error-html

Conversation

@WofWca
Copy link
Copy Markdown
Collaborator

@WofWca WofWca commented Apr 16, 2026

Currently if the provider doesn't support quota info
the HTML displays something like

example.com: Connected
Not supported by your provider.
image

It's not clear that "not supported" only refers to quota info.

@WofWca WofWca changed the title fix: improve connectivity HTML on quota info error fix: improve connectivity HTML if quota info error Apr 16, 2026
Currently if the provider doesn't support quota info
the HTML displays something like

```
example.com: Connected
Not supported by your provider.
```

It's not clear that "not supported" only refers to quota info.
@WofWca WofWca force-pushed the wofwca/quota-error-html branch from 80ea722 to ca807dc Compare April 16, 2026 09:49
Err(e) => {
ret += &escaper::encode_minimal(&e.to_string());
// TODO translate "Quota".
ret += &format!("Quota: {}", &*escaper::encode_minimal(&e.to_string()));
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Maybe add a stock str with a function that takes the encoded error as an argument? And UIs will translate it later

@link2xt
Copy link
Copy Markdown
Collaborator

link2xt commented Apr 19, 2026

Maybe better just not display anything at all if quota is not supported? User cannot do anything about it, they will have to see "Quota: Not supported by your provider." below each transport that does not support it.

@WofWca
Copy link
Copy Markdown
Collaborator Author

WofWca commented Apr 19, 2026

Good idea. Though I guess we would still want to display the text if it's a different kind of error?

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