Text Color and Null Checks

By Elena Herzinger

More progress has been made. I asked about the special case text and how to know when to show it. No one knew, so they just decided if there is no end date or duration amount to just have the days left text be blank, and if they want to change it in the future, they will. Honestly, I was glad to hear that because I really was stuck on how to get that set up, and having it be blank was an easy thing to set up.

The other things I got done this week were getting the text color to change when a challenge is close to being done. Now when a challenge is within three days of ending, the days left text color turns from grey to yellow. I also figured out why getProgress was not working. It was because some of the user data was null, and so getProgress was calling null data and crashing the program. I put a null check around it, and now it works, but there are some strange gaps where the challenge cards that were null used to be placed.

Fixing that spacing is one of the things I need to fix coming up soon. I have no idea how to do it, but I’ll spend some time researching, and if I can’t get it, I’ll ask for some help. The last thing I need to do is something I should have done several weeks ago. In my first ticket, I never loaded in the initial data; instead, you have to click another button so the data will load in. It is annoying, but I haven’t been able to figure out how to do it, but now there’s nothing really for me to do, so I have to do it now.

Leave a comment