-
-
Notifications
You must be signed in to change notification settings - Fork 29
Enable screen for visited polling stations #241
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
Conversation
b2c9ccc
to
995f12e
Compare
Hey @lukstbit thanks! I'll test the implementation and get back on the UI part, just to answer your questions:
|
@lukstbit awesome! I just made a small commit with the icon from figma. It's faster like this 😄 I'll test everything tomorrow and let you know ;) |
hey @lukstbit I've started testing the UI changes for these, I've found the following:
|
18c2196
to
1ada38c
Compare
I implemented the requested changes.
I've left this out on purpose. Are you sure this should be implemented? A list item with an arrow to its right is a iOS UX pattern and not something really found/used in Android. If you do want to implement this tell me and also mention if the arrow button should have a special action. |
@lukstbit Woooh! Looks awesome! 🚀 Just a nitpick though :/ could you put a menu icon in the visited section topbar instead of the back action? Just to keep it consistent with the other screens 😃
Good point! I'll get back to you on this, but I think we can ignore it :D |
@lukstbit ok, I got an ok from the UX team, there's no use for the arrow icon on android :D nice catch! thanks! |
Also, one more nitpick :/ Would it be possible to hide the 'select from visited stations' text from the polling station details screen when first loading the app? Since it's a bit weird if there are no visited station added yet. |
As I said in the first comment, I decided to use an Activity instead of a fragment because it was easier to implement. I can put an independent menu in the app bar but is not going to look/work good because it's another activity and the user will see clearly that he's using another "screen of the app". If it's a must I can refactor it into a fragment and plug it in the activity with the forms or with the polling stations selection but it is going to take time. Also, I want to point out that the menu doesn't appear in the polling station selection activity.
Imagine the outrage if the users would have seen that arrow 😆 On a more serious note, yes I will implement disabling the station selection for the first time, there's no point for the user to see that when first starting. |
Kudos, SonarCloud Quality Gate passed!
|
@aniri The user will now not see the option to select from visited stations when he hasn't selected at least on station. Also, I noticed something which doesn't seems right: Go to forms screen -> select one form -> select a question -> choose an answer -> hit BACK(the system button) -> app makes an empty POST request to /answers(which is successful)-> the app shows the question with green(as answered). Are these answers registered on the backend? I'm asking this because if you select and answer multiple questions then hitting BACK it will make a POST request to /answers with all the answers except the last selected one(from the screen where we hit BACK). The behavior seems inconsistent and could be a bug which makes us miss answers. |
Aaarghh, right. We already have the polling station selection activity with no menu. Yep, this will be tricky to refactor. But we'll keep it in mind for later :D For now it is perfect 😄
Madness! 🤣
Awesome, thanks! Also please mark this PR as ready for review after this last change :D I'll go through the code again for a quick check and then it can be merged 🚀 |
OMG, yes, it is a bug! The post request should send the answer in this case and not make an empty post :/ Nice catch! I'll add an issue for it! |
* fix send note on question * Add simple usage for values from remote config at "About page" * Use values from remote config for menu * Copy files to cache instead of using directly. Fixes #178 * Remove file from cache after sending in any sync case * Fix null string property * Made font for selected item in the menu bold (#195) * added collapse keyboard function (#215) * added collapse keyboard function * fix: keyboard collapse and opens again while switching multiple inputs * refactor: collapseKeyboardIfFocusOutsideEditText() to Utils.kt * Use the orderNumber field for sorting (#222) * Use the orderNumber field for sorting * Remove duplication for sonar * Fix sorting for forms (#227) * Sending firebase token on the login call (#225) * Use filesDir instead of cacheDir (#230) * Enable upload of multiple files with note (#231) * Enable uploading multiple files with note * Allow user to select multiple files * Improve error strings for note files * Update app/src/main/res/values-ro-rRO/strings.xml Co-authored-by: Irina Borozan <anirib@gmail.com> * replace: `this` with appropriate lifecycle owner (#224) Co-authored-by: Irina Borozan <anirib@gmail.com> * check db reset remote config flag on startup * cleanups and add default value for remote config param * Add sync related UI changes (#233) * Add sync related UI changes * small layout adjustments * Add latest changes Co-authored-by: Irina Borozan <anirib@gmail.com> * removed extra activate * Allow user to delete note files (#237) * Allow user to delete note files * Handle file deletion failure * Send count of unsynced items to analytics (#244) * Send count of unsynced items to analytics * renamed variable to keep it consistent Co-authored-by: Irina Borozan <anirib@gmail.com> * fixed remote config init error and add min interval setting (#245) * Fix RxJava null values usage (#240) * Fix incorrect selection of counties (#247) * Enable screen for visited polling stations (#241) * Enable screen for visited polling stations * Enable selecting from previously visited stations * added visited stations icon from figma * Implement requested changes * Hide station selection on first run Co-authored-by: Irina Borozan <anirib@gmail.com> * Enable details screen for user's notes (#242) * Enable details screen for user's notes * Implement UI requested changes * Fix issues with form-question codes * Fix adding notes directly from forms list * Tweak UI and save codes for note into database * Update app/src/main/java/ro/code4/monitorizarevot/ui/notes/NoteDetailsFragment.kt * Update app/src/main/res/values/strings.xml * Apply suggestions from code review Co-authored-by: Irina Borozan <anirib@gmail.com> * Add info for visited stations screen (#256) * Fix UI for notes after changing stations (#254) * Bugfix/cleanups on app update (#257) * refactored has selected stations shared pref * fixed db cleanups after app update * Add checks for empty answers list to sync (#252) * added new link in menu and new guide (#259) * changed logout display in menu and default safety link (#260) Co-authored-by: Dmitriy <dekanszn@gmail.com> Co-authored-by: caldareanda <61616802+caldareanda@users.noreply.github.com> Co-authored-by: Avadhut Tanugade <30384908+mrwhoknows55@users.noreply.github.com> Co-authored-by: lukstbit <52494258+lukstbit@users.noreply.github.com> Co-authored-by: Pedro Francisco de Sousa Neto <pedrokra@gmail.com> Co-authored-by: AlexandraDaraban <AlexandraDaraban@users.noreply.github.com>
What does it fix?
Closes #234
Closes #235
This implements the visited polling stations UI and all the requests from the issue. For this I created a new activity, I wanted to reuse The PollingStationsActivity but it seemed difficult to incorporate it in the current code so I chose the easier solution. At this moment I'm making it a draft to discuss :
How has it been tested?
Manually, as I created the UI.