-
Notifications
You must be signed in to change notification settings - Fork 83
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
Make command bar cursor more apparent #35
Comments
The above was done by a designer as an example for a blogpost header. This could be used as a guide for doing the greyed out text, which could be |
We could also do "Scribe" in greyed out letters to keep it consistent across keyboards. |
Hi @andrewtavis, I would like to help with this task. I am new to iOS Development. It would be really helpful if you could give me a few pointers as to what needs to be done. For the greyed out letters, I was wondering if adding a placeholder text property to |
@SaurabhJamadagni, thanks for reaching out! I'd be very happy to give some direction on this. Your suggestion to add a placeholder text is definitely in the right direction, but then this placeholder text would only be viewable when Let me bounce another idea off of you, as it's been a while since this issue was made: we have the general problem that we want the user to better understand that they'll be typing into the command bar instead of the Would be great to get your feedback on the above, and I'll also check with the designer on this too :) We're currently in the midst of redoing all the App Store images 😊 |
@andrewtavis When I type, my attention tends to go to the place where I am typing in the document automatically. So I am just wondering if animating the command bar would be distracting? I completely understand that the whole point is to get the attention of the user to the command bar. But also we wouldn't want the user forgetting the context of what they were typing with the looking back and forth 😅 What if instead of animating the commandBar, we have some placeholder text and animate the placeholder text. It would grab the user's attention but also be subtle enough to not distract. Just trying to brainstorm here. I hope I am being of some help. While you check with the designer, is there anything else I can help you with? |
@SaurabhJamadagni, you very much are being of help! I actually totally agree with what you said. The designer said we'd definitely need to prototype any significant color change to the UI like changing the command bar's color. I honestly like my idea less than the original and yours now 😄 The first task would be to add the placeholder text anyway, so let's do that, and we can see if we want to animate it later. Looking into the files and helping you understand what's going on here in relation to all this:
|
And for this, another very simple issue is #168. Feel free to let me know if you have interest in that issue, and then I can give a similar summary :) |
"write" would be more inline with the name of the app in my opinion and better in terms of consistency throughout languages. I also prefer the |
Yes I would love to work on that issue till the intricacies of this issue are figured out. Initially I was confused between the two issues. But because of my current limited knowledge, I just chose the one which looked simpler. It would be really helpful if you could give a similar summary for issue #168. It is really helping me understand the project better! Thank you so much for taking the time for helping me understand the project! 😊 |
My pleasure! I'll head over there and type something out 😊 |
@SaurabhJamadagni, the designer said that he liked this version the best as the directions are very clear, so what we should look to do is make three different prompts:
Let me know how it sounds on your end, and hope you had a nice weekend! |
Yes, the clarity absolutely makes sense. It would definitely improve user experience. Also like discussed before, is any form of animation going to be added? I would love to hear your and the designer's take on that too. We could surely get started with implementing it. Let me know whenever you want me to start working on this issue. I did have a pleasant weekend. I hope the same was true for you :) |
My weekend was also very nice! Am going to be pushing the new App Store image designs later today, and socially had some nice days 😊 Let's not do animation as of now, and once the greyed text is finished we can make a new issue to discuss animation if we decide we need it. It might be a bit complex to add to a field that the user needs to be able to type into, so let's do a simple implementation and iterate. You are free to start working on this. The big difference is that instead of |
Hi @andrewtavis, sorry I was away for a couple of days. Coming to this issue, if I am not wrong, the three variables My guess is the bigger part of the changes will happen to the I tried to navigate a bit on my own, but I think I will need a little bit of an explanation. Could you please help me? |
@SaurabhJamadagni, all fine on the timing. I've been busy the last few days too :) Yes, CommandVariables.swift would be where to put those variables, and then their translated versions for each language need to go into the respective set layout functions like Very true that the main challenge will be in the view controller. Most of the actual changes will be in there, and that's where we'll need to change the color and make sure that the prompt disappears after the user types something. General ideas on this, and let me know if you need more help:
Let me know how this sounds! |
How are you doing on your development environment? Have you been able to get Scribe up and running on an emulator? Happy to help with that if you need some 😊 |
Hi @SaurabhJamadagni, no worries on no update in a while :) Thanks for checking in!
Another thing is that we need to make sure that the characters are being entered properly and that the prompt can't be deleted (there's a check in there similar to those above that blocks delete if |
The above is a lot of text, so let me know if you have questions! I think we're really close on this 😊 |
I was considering a separate variable because I didn't want to add to the sudden crashes that might be happening due to booleans getting crossed as we had discussed earlier. Is that something we should worry about right now or should I work on getting some implementation in place first? Sorry for the confusion 😅
That is a great point! This would also bring all the checks in one place instead of having to look for the individual cases.
Yes I did observe that when I ran the simulator. I was able to delete the prompt as well. I was just about to ask about it. Thanks for clarifying :) I'll just change the check from |
I think that this is likely the best method, and it also abstracts away from KeyboardViewController.swift which is so massive 😅 In this case we wouldn't use a boolean variable per your question above :)
We'll just have to keep an eye on this and test it to make sure that it doesn't delete and that the commands go through 😊 Sounds like you're making good progress! Feel free to send along an initial PR and we can talk about where you're at :D |
@SaurabhJamadagni, coming back to the issue to continue the conversation :) Again, thanks so much for your work in #175! Really well done - we're almost done with this! Part 3 is likely a bit trickier than we think, but maybe not. Again I think that this Stack Overflow question should be most of what we're looking for as far as coloration - we can use the index coloration with the color change length based on the length of the placeholder and index starting based on the length of the prompt (plus one as we have a space between as of now 😊). I think that we can do the coloration within A big question would be which grey for both light and dark mode. I played around with it a little bit, and I think that if we want to use colors that are already defined we can use Let me know how you feel about the colors :) FYI I also just made Happy to give more directions on this if needed. Not sure what your schedule is, but my hope would be we could get this finished by Sunday so that I can do a release that evening. I have a presentation on Scribe at a Berlin Swift coding group on Wednesday, and it'd be great if this could be implemented by then (App Store Connect will check new releases within 48 hours). If not, no stress as I'll still show the WIP on the emulator! 😊 |
@andrewtavis, I'll do my best to get it done. I had to send my laptop for a battery replacement today as it had clocked a lot of cycles and needed immediate service. I should have it back by tomorrow. In the worst case that I am unable to finish it or the laptop delivery is delayed I'll let you know in advance. I hope that is alright. But for the most part, I think I can get it done by Sunday. 😊 |
Sorry to hear about the computer problems, @SaurabhJamadagni! Just let me know, and again no stress on if it can't happen by Sunday :) |
Hi @SaurabhJamadagni, wanted to draw your attention to the upcoming Wikimania 2022 Hackathon 😊 Generally these events bring people together online to work on Wikimedia tasks and give presentations. I participated at the last hackathon and worked a bit on Scribe-Android, and Scribe should be able to participate again at this one. The email just went out earlier today. Basically we'd work a bit on Scribe over those few days and then present what it is we've been able to achieve afterwards. If this is something you'd be interested in, then we could make a plan of some interesting things we could work on. Just sending this along to check your interest :) Figured it might be a fun experience for you 😊 |
Thanks for considering me @andrewtavis! I would be thrilled to participate. The first day timings seem a bit tricky by my timezone (IST) but I'll help out as much as possible haha. Am I required to register anywhere or do you just register as one team? This sounds like a fun opportunity! Thank you 😊 About the current task regarding placeholder text, my laptop seems to have given up. I am currently using a borrowed machine from my sister. Hoping to set up git and the project locally by today. I played around with attributed texts a bit a few hours back. I should have an initial PR soon! |
My pleasure to include you, @SaurabhJamadagni! I figured this would be a fun experience, and it's good to have Scribe folks show up to Wikimedia events so we can keep the connection strong.
No worries if you can't make the first day. These things tend to be informal. It'd be good if you create a Wikimedia account prior to this so that you can sign up, and I'll reach out to see if there's a chance for a talk (maybe not this time). Do you have any Wikimedia accounts yet for Wikipedia or something? If not, I'm pretty sure creating an account on wikimedia.org will make a global account for all Wikimedia projects (projects are what Wikimedia calls things like Wikipedia and Wikidata). Big thing is that we should have three minute slots to present what it is that we want to work on and what it is that we achieved on the first and last day respectively. From there we can work on things and also attend some talks on Wikimedia related topics. We can connect before then and make a plan, and you'd be welcome to present what it is you worked on :) People are super welcoming, so no stress about this!
Sorry to hear about your further computer troubles, but nice of your sister to let you use hers! Again no stress on the PR. Get to it when you can, and hope you can have a functioning machine of your own as soon as you can! 😊 |
I currently don't have an account but I'll create one soon.
That sounds super exciting! Makes me a little nervous but I guess that is part of the experience 😅 Thanks for including me! I am looking forward to it! |
Hi @andrewtavis! I wanted a little bit of your help 😅
I would love to hear if you have any other approaches in mind. It could really be of immense help. Any form of brainstorming could also maybe help me find an alternate direction. Do let me know :) |
Hi @SaurabhJamadagni, sorry for a late reply to this :) Have had a relaxing day before starting a new job tomorrow.
This sounds like a fine solution to me :) Totally fine to add another variable and add UIKit to the files that need it. Generally what I was thinking is that the Let me know if you have further questions 😊 Feel free to do the above method and send along what you can get done! |
Congratulation on the new job @andrewtavis! I wish you the best! I will try to get the implementation in place. Thanks for your input. 😊 |
Thank you for the congratulations and well wishes, @SaurabhJamadagni!! :) Looking forward to the PR 😊 |
All done here, @SaurabhJamadagni!!! I'll work on #176 later this week and do the release 😊 Thanks again so much for your hard work 💪 Feel free to let me know what else you might have interest in doing here, or I'd be happy to make some suggestions :) |
Just played around with it a bit more :) Really looking forward to v1.4.0! 🚀 |
@andrewtavis, if you have any suggestions do let me know. I would be glad to be of help. Else, I'll browse through the issues today and let you know! Thank you for your help with this issue! It made all the difference 😊 |
We can do a few more before the hackathon, @SaurabhJamadagni :) What first comes to mind is #165, which I’d love your feedback on, and then #178 should be very simple if you’d like to do it :) |
I would be happy to jump on both issues. I'll leave my thoughts on issue #165 in its corresponding comments. You can assign me these two issues, @andrewtavis. I would be happy to work on them :) |
8c13530 Merge pull request scribe-org#73 from yerimmii/ko-json bc78915 Create ko.json 3f2a3de Minor edit to .gitignore for spacing e40d892 Merge pull request scribe-org#72 from axif0/bangla 1afc6ea Creating Bangla localization 23c56ed Merge pull request scribe-org#70 from KesharwaniArpita/ArpitaContributionsMarathi d49ed68 Create string.xml 7dc4b73 Create mr.json (Marathi) 6bc6502 Merge pull request scribe-org#69 from axif0/work 933237d Update pr_maintainer_checklist.yaml fa75400 Merge pull request scribe-org#68 from OmarAI2003/MSA-internationalization 329ad53 Translate from en to ar c81e3a1 Add Arabic translation file (ar.json) for localization support 45bce87 Merge pull request scribe-org#66 from OmarAI2003/improve-android-convert-str-to-json b774027 Minor spacing and removing permissions error a3eeda1 Merge pull request scribe-org#67 from weblate/weblate-scribe-scribe-i18n c67255b Translated using Weblate (Spanish) 7054971 fix: add check for missing values_directory a90a040 Error handling for file read and write operations 9295291 Use a single variable for the 'jsons' folder path and add error handling for missing 'jsons' folder. 5e85b16 Merge pull request scribe-org#64 from OmarAI2003/improve-android-convert-jsons-to-strings 94482ef Added docstrings to Android string conversion functions 2a7b35b for the recently supported language: adding the 'hi' language folder generated by the script to prevent 'directory not found' errors when testing the reverse conversion (JSON to strings). 13a4849 small fix to the lang_dir e5ca964 Refactor: Pre-load language JSON files before generating strings.xml files f8ffe63 Use a single variable for the 'jsons' folder path and add error handling for missing 'jsons' folder. 7dbeaa1 Merge pull request scribe-org#62 from OmarAI2003/improve-convert-jsons-to-xcstrings a3e5fbf Minor edits to script spacing and comments 5fb2fc5 Merge pull request scribe-org#63 from KesharwaniArpita/ArpitaContributionsHindi fd91955 Create hi.json 9fcc0de fix: update inline comments to start with lowercase as per style guide. 8925a4b Rename variable for improved clarity aee58c0 Add error handling for missing base language file d41c8eb Remove automatic creation of the 'jsons' folder d811de7 Optimize performance by pre-loading language JSON files 81da648 Refactor: Use a single variable for the 'jsons' folder path and ensure it exists. f354bb4 Fix file handling: Use context managers to ensure safe reading and writing of files. 13d52f2 Merge pull request scribe-org#58 from OmarAI2003/improve-convert-xcstrings-to-jsons 8b13ee6 Fix to en.json being written rather than en-US + minor edits 2a7e03d Merge pull request scribe-org#61 from weblate/weblate-scribe-scribe-i18n f0abf87 Translated using Weblate (French) 6c4acae Merge pull request scribe-org#60 from OmarAI2003/fix-typo-in-readme.md d30380a Revert: Move Localizable.xcstrings back to original location 46a68da moved Localizable.xcstrings again where it was as andrew told me d426a4b Fix typo in README: Changed 'an tools' to 'tools' 0d48009 made the changes as per the feedback and added Localizable.xcstrings to 'jsons' directory 42e76dd Improve language handling and ensure directory creation b1ccff7 Refactor: Use context manager for writing JSON files to ensure proper file handling. 5b97d83 Add JSON loading error handling in convert_xcstrings_to_jsons.py 32b8f70 Improve file handling in convert_xcstrings_to_jsons.py 7536be6 Update app menu headings to not include second word caps c286cf2 Merge pull request scribe-org#50 from weblate/weblate-scribe-scribe-i18n 3038710 Translated using Weblate (Spanish) b80ddc7 Translated using Weblate (Spanish) faf7ce3 Various fixes of strings and adding conjugate keys 1eb7d47 Minor update to readme headers 04574f8 Remove unused keys and fix colon spacing 8492a7a Make sure that application names are not localized 0ac6710 Merge pull request #48 from weblate/weblate-scribe-scribe-i18n 80708cb Translated using Weblate (Spanish) dd15564 Merge pull request #47 from weblate/weblate-scribe-scribe-i18n f05f74d Translated using Weblate (Spanish) 5701774 Add missing and update incorrect strings c0a45c2 Merge pull request #46 from angrezichatterbox/Run-Json-to-XML-Scripts 3af18ab feat:Ran the script for converting json to xml 935903a Edit working directory for conversion workflows to try to fix error c60a196 Merge pull request #45 from weblate/weblate-scribe-scribe-i18n fc18213 Translated using Weblate (Spanish) 872d232 Set working directory for conversion scripts 2f6f5ab Fix incorrect keys in translation language JSONs feb4a18 Edit to conversion scripts to fix their paths with relation to root d6cce32 Fix German GitHub key c26c78d Add all app texts for scribe + conjugate with new keys ad588cc Update the suggested room based on new room name 1e07813 Merge pull request #42 from angrezichatterbox/XML-TO-JSON-FIX 2a8fe2a fix:Added escape characters for \n 924f00c scribe-org#37 minor edits to conversion scripts and try new command path aafa0f6 scribe-org#37 update Scribe-i18n structure and fix conversion workflow 6a8faaa Merge pull request scribe-org#39 from Jag-Marcel/i18n-refactor 2b9caff Added newline at end of all JSON files e775e46 Updated jsons and xcstrings file using new iOS scripts dd018c1 Refactored iOS conversion scripts to use python json package 7f8c273 Updated conversion workflow to use paths filter instead of conditional check ff21cdb Refactored scripts into new iOS and Android folders 700a3ce Update Android strings given new conversion script 1ba25e6 Remove reference to contribution guide as it's been removed 5f38e75 Merge pull request scribe-org#38 from angrezichatterbox/special_character_check_xml 40d1edb feat:Added special character replacement in the Script d9a35d7 Minor update of readme to make subtree creation more clear 10b07b5 Merge pull request scribe-org#36 from angrezichatterbox/xml_conversion dcad620 Run stings conversion script + workflow for Android + docs 8b65382 feat:Added script for conversion from strings.xml to json cea2273 feat:Added script for conversion from json to strings.xml b25df32 Revert change to conversion to see if adding the full path will make it work 18d50ca Merge pull request scribe-org#35 from Jag-Marcel/xcode-script-fix b8a1598 Merge pull request scribe-org#34 from wkyoshida/20 7aeba36 Removed conditional from action cf9878e docs: Add documentation on using Scribe-i18n as a git subtree 307cadc Merge pull request scribe-org#33 from Jag-Marcel/xcode-script-fix 44fa905 Removed quotes around bool value git-subtree-dir: Scribe/i18n git-subtree-split: 8c13530b51716c2e2f38be2565b6ef1f5a3d4188
This issue is to add a minor UI element to Scribe keyboards where the command bar would be shown to be actionable when
commandState == true
in KeyboardViewController.swift and CommandVariables.swift. As of now the cursor and prompt are static and in one color, but adding a blink or greyed out "write" in the keyboard language would make it more apparent to the user that they will be typing in the command bar instead.Changing the prompt to have greyed out text would likely be the easiest solution to this (see image below).
Translate
images in the App Store to show the command placeholderThe text was updated successfully, but these errors were encountered: