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

Add improved error message for scanner page's upload button #281

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

pohuing
Copy link

@pohuing pohuing commented Oct 12, 2023

Fixes #280
There's already a noDocumentsScanned translation key. But since ones an error and the other a hint I prefer having different keys for that.

@astubenbord
Copy link
Owner

Hi, sorry for the late reply. I'll have a look tomorrow

@@ -1001,5 +1001,6 @@
"@discardChangesWarning": {
"description": "Warning message shown when the user tries to close a route without saving the changes."
},
"changelog": "Changelog"
"changelog": "Changelog",
Copy link
Owner

Choose a reason for hiding this comment

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

Regarding all translations: Did you add the new strings to the .arb files directly or did you create them in crowdin?

Copy link
Author

Choose a reason for hiding this comment

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

I added them directly

Copy link
Owner

Choose a reason for hiding this comment

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

I see. I think it would make more sense to not show a message when the button is disabled due to the current app state (not connectivity state), i.e. don't show a snackbar at all. Otherwise we would need a reason why the button is disabled. It should be evident to the user that the upload button is disabled because there is nothing to upload. So maybe remove the translations and the disabledReason property. Only show the "You're offline" snackbar when the user is offline and therefore the button is disabled. If disabled is true but the user is online, don't show anything.

@pohuing
Copy link
Author

pohuing commented Oct 19, 2023 via email

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.

[Bug]: Scanner page's upload button shows incorrect error
2 participants