-
Notifications
You must be signed in to change notification settings - Fork 3
Feature/app/allow costum symptoms #260
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
base: dev
Are you sure you want to change the base?
Feature/app/allow costum symptoms #260
Conversation
|
This is very nice! I don't have time right now to review it all. But I will spin it up before the end of the week. |
|
Ok I just managed to spin this up now. I had some dependancy issues (not related to this pr) but that is something else that will need to be looked at.. Anyway, this is awesome! One question, the Also that mark button does not show on the period settings screen when adding a new symptom there. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes are not logic based, just some really quick things to make the imports more resilient for if files get moved around.
|
Just another thing I thought about, we should store the symptoms all lower case in the db. Then display them with the inital character upper case. I feel trying to add some consistancy to the storage/display of the data might be nice overall. |
5ecb8ae to
e6729f5
Compare
That is a good point. Right now it's supposed to be treated as "default symptom" -> always shows up but is not preselected. That might be a good clarification to make somewhere. Regarding the second point, this mark button does not make sense to have in the settings screen, as you can only add default symptoms here anyways, so it would not do anything. |
What does this mean? Do you mean it adds it to the list of default symptoms in app. So its more of a behind the scenese thing. I don't understand what changes if I select default or not. Cheers |
|
This is coming along really nicely! While looking over your code I noticed that you found issues with the current implementation of how symptoms are stored. Which causes issues for when you want to count the total uses ect.. Anyway, I have made a new issue (And am about to fix it) to migrate the symptoms to their own DB table. While doing this I also thought that we could store the symptom text values in a DB too. So a the symptom table would be:
And we just assign a foreign key in my new symptom_log table that is associated with the symptom IDs:
The latest changes will probably cause merge conflicts on this branch (sorry!) but it will make the logic more sound in the long run. |
49d14ae to
1a531b8
Compare
|
@J-shw i've reworked this quite a bit and introduced a Since I consider this mostly done (if not bug free), I'll open this and remove the draft status. |
|
This is awesome! I will load it up later when I get back from work and have a look around it |
Slight issue still: - Insights are wrong, I logged 'test' twice and it only shows it as 1 Day. - The translated value is wrong. The value displayed on the graph seems to be the store value and not the translated one (for default values)
|
Hi @HaggitheSecond this is looking good! Turns out I can just commit to this branch lol.. So its all working with the new setting service, but as per this commit there are still some issues with the insights data. I have not got time tonight to look at it, but I can tomorrow |
Now when users log a symptom the value is saved as en english string, this should help users who export data or if they want to import and we have changed the symptom enum ect..
This is for the '+ Add' button.
|
Hi @HaggitheSecond I have made some more changes and I think this system is pretty much there! I have changed a few things:
I think thats everything? Anyway, if there is anything I have missed or you don't agree with just let me know. And once we are both happy with this, we can merge it all! |
Allows adding custom symptoms and setup what default symptoms show up when logging a day.
View when logging a new day or editing an existing log:

View in settings:
