-
Notifications
You must be signed in to change notification settings - Fork 66
Add invalid state to keyboard commands and show localized Not in Wikidata
#273
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
Comments
@andrewtavis I would like to take this one. Also if possible, could you share the video of how it works in the iOS, that would make the things more clear 🙂 |
Thanks for your willingness to work on this, @smalik2811! Here's a video for how it works in iOS, as requested 😊 Simulator.Screen.Recording.-.iPhone.16.Pro.-.2025-02-05.at.19.44.16.mp4Please let us know if there are further questions! |
Thankyou for the video. Also I would like to clarify what happens when the user clicks the Scribe key in the |
In file state the Scribe key will result in the command options being shown :) So when the "Not in Wikidata" message is shown, then the user can press the Scribe key to see the commands and maybe retry the one that didn't work. |
Hello @andrewtavis, I have been working on the Invalid State and I have managed to get the current functionality by hiding the views from the command bar. However that's not enough I would also have to update the background drawable of the scribe key and restore it when the the keyboard exits the invalid state which makes the logic little complicated and does not follow SOLID principles. I was wondering if we could create a seperate layout file for the Invalid state that would make the logic more clean and easy to maintain. What do you recommend? Additionally, could you also share the colors that should be used for the Invalid.State.webm |
Thanks for the great work here as always, @smalik2811!
I think a separate layout file for the invalid state would be great :) Feel free to go in that direction! 🚀
The color we use for this is the same as the placeholder text for the command bar -
Let me know if there's anything else I can do to help! |
Hey @smalik2811 👋 Quick check in here to see if there's anything we can do to support on this issue :) Hope all's well with you! 😊 |
Hi @andrewtavis , Thank you for checking in! I appreciate you reaching out. I've been engaged with some other tasks recently, and unfortunately, I won't be able to contribute to this particular issue at this time. Therefore, I'd like to remove myself from this issue. I'm still very interested in contributing to the project in the future, and I'll keep an eye out for other opportunities. Thanks again for your understanding. |
Totally fine, @smalik2811! We hope to see you in the future :) |
Terms
Description
This issue would add the invalid input functionality to Scribe-Android keyboards. In Scribe-iOS, when a user tries to execute a command on a word that's not a valid value in the given database, the localized version of the string
Not in Wikidata
is displayed to the user on the command bar.A screenshot of this in Scribe-iOS is seen below:
The functionality is:
Plural
that will be made in [Plural] Insert noun plural when a user enters a noun into plural command and hits enter #272 orTranslate
in [Translation] Return translation based on an entered value and pressing the return key in Translate Mode #266ANY_BUNCH_OF_RANDOM_LETTERS
Not in Wikidata
in the keyboard languageinvalid
idle
)Note
The invalid state messages can be found in the interface files in the language directories of app/src/main/java/be/scri/helpers.
Contribution
Happy to discuss this and review when a PR is open! 🚀
The text was updated successfully, but these errors were encountered: