-
Notifications
You must be signed in to change notification settings - Fork 70
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
Diary only showing 3 nutriment goals #864
Comments
Have you assigned a goal to all 4? |
Yes, using "same goal every day." |
If you swipe the goal bar to the left, you should see the fourth goal. And if you disable the |
Yep that did it! |
Hello! |
@victorjagu So you disabled showing the nutrition units in the diary, but it's still only displaying three goals? Then how many goals does it show when the nutrition units are enabled? Only two? The only possible explanation for that would be that your phone's screen is too narrow. Waistline automatically decides how many goals to show based on the screen width. |
@EmilJunker, the answer to all of your questions is yes, that's exactly what's happening!, but I do think there is enough space, as you can see in this attachment: What do you think? I mean, having a look at the screenshot in the README, it seams that something is wrong unfortunately :( |
The code responsible for determining the number of goals to display can be found right here: waistline/www/activities/diary/js/diary.js Lines 310 to 322 in b2ca437
Apparently, the |
There is no other possible explanation. The source code is unambiguous. The only way to end up with just two goals being shown is if the One thing you could try that might help to get to the bottom of this is to rotate your phone into landscape mode and then go to the diary and see how many goals it displays (make sure to first switch to landscape mode and only afterwards navigate to the diary). It should normally show five goals in landscape mode, assuming you have that many goals defined and disabled the nutrition units. It does for me, anyway: |
Mmm I don't understand. If I rotate my phone to landscape and open the app as you suggested, I got the 4 goals and if I rotate the phone in that moment, I still see the four goals correctly. Btw, it in the web that you suggested to get my phone width, why the app got a "wrong" number according to that web? |
@victorjagu Okay, one last question: if you enable the nutrition units again, how many goals do you see in landscape mode? Does it go down to three or is it still four? One possible explanation might be that the |
Don't worry, as many questions or whatever to figure out why and, if possible, how to solve it, because it's a piity to me 😢 Answering your question, if I activate units, I got the same behaviour, my 4 goals show up correctly in landscape: Of course, as in the beginning of this post, If I open the app in portrait, I got just 2 goals... About how can this would happend, I don't know, but if I can try something else, just tell me. About a possible solution, is it maybe possible to add in settings the number of goals to show? I mean, it could be by default in "automatic" as now for example but, people with issues like me could "force" to X columns. |
Thank you. That tells me that the cause of the problem is indeed the fact that, for whatever reason, your
My phone is a Samsung too (Samsung A53), and I don't have this problem.
There is no easy way to do that. But if you want to go down that road, you could enable the developer mode on your phone and install ADB on your computer (see instructions here: https://www.xda-developers.com/install-adb-windows-macos-linux). Then you can connect your phone to your computer, navigate to
Yes, that would absolutely be possible and shouldn't be difficult to implement. I think that would be a useful feature. |
Thank you very much for your support! I will try the ADB inspection, but I'm not an advanced user so I will need some time before I come back with the result (if I can do it). Your comment looks not that much difficult but... 😅 Thanks again! |
Meanwhile, I got my hands on a Samsung S21 FE and tested it myself. I can confirm that it only shows three goals in the diary. As suspected, the reason is that the A simple short term solution would be to lower the limit for showing four goals from 400 to 360 since that is evidently enough space to fit four goals. And an even better long term solution would be to let the user decide how many goals they want to see (and maybe this could even be combined with an option to change the order of the goals in the diary indepenently from the global nutrient order). |
Exactly, I use Firefox on my phone. I didn't even think about a different browser could lead to a different window width 😅. Really appreciate your efforts @EmilJunker and I totally agree with both solutions. Having the possibility to change goals order is a plus! Again, thank you very much, it was really weird... By the way, if I can help with the app, just let me know how. Perhaps with Spanish translations? I'm aware that some menu items/fields are not translated yet. |
@victorjagu You are right, the Spanish translation is currently only 52% complete. Your help with that would be very appreciated. To provide translations, just go to https://crowdin.com/project/waistline and log in with your github account. Have fun translating! |
@EmilJunker, Spanish translation is now 100% complete 😊 |
I'm using app version 3.8.0, Samsung Galaxy S12, Android Version 12.
Right now my diary shows 3 goals at the bottom:
But I have 4 goals that are selected as "Show in Diary":
So one is always missing from the diary view.
I surmise that this is a bug given that the screenshot in the README shows 4 nutriment goals in the diary.
The text was updated successfully, but these errors were encountered: