-
Notifications
You must be signed in to change notification settings - Fork 2
Front End: Now saving settings in local storage #118
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
Also added a reload button and changed call structure a bit for easier data updating
You can choose if you want to save the to date The rest gets saved and restored automatically TODO: Add delta-timespan when ready
(Hopefully) improved type-checking logic, naming and some comments for the code.
Front End: Added delta chart and delta settings
- Unset localStorage items if user opted-out of localStorage using checkbox - Add global variable 'saveInLocalStorage' representing whether or not settings are supposed to be saved in localStorage - Fix issues with seperate scale switch for weight in compare chart
|
I ran into some issues with the separate scale switch + I added some logic to unset the items in localStorage (other than |
|
You use firefox, right? |
|
@AuxiliumCDNG Oh, that's interesting... Both Chrome and Firefox (on macOS) return |
|
What about other datatypes? Are booleans still booleans when you read them? They get "converted" to strings in my browser (Vivaldi). Thats why bools are supposed to be 0/1 (which is also a string 😂). |
Your changes break the intended use of daterange-save-to which is to keep the "end-date" up to date but keep all other settings. "to" not "too". Have a look at https://github.com/Programmier-AG/BeeLogger/wiki/Miscellaneous#localstorage-keys |
|
I would actually like to roll back and fix what's wrong in place. Or if you want to fix your version, you can do that. Your decision. |
This reverts commit 0f7c81d.
|
@AuxiliumCDNG Reverted my changes, the branch is now back to where you left off. |
|
I will try to come up with a fix. The same browser on windows 11 instead of 10 behaves as your browsers do btw. I will try to make it as redundant and "javascript-save" as possible. |
|
@AuxiliumCDNG I don't know if this helps but |
Works for me in Firefox and Vivaldi
|
Please hang on while I test the merge... |
|
@fabiancdng Please verify everything is working. Then feel free to merge. |
|
@AuxiliumCDNG It works for me. Only the checkbox to opt-in or out of saving the settings in the |
|
Uncheck it, change end date to yesterday, apply, reload the page and check if the end date changes. Does it change? |
|
Works for me now in Vivaldi 5.2.2623.41 (Stable channel) (64-Bit), which is the current build. |
fabiancdng
left a comment
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.
@AuxiliumCDNG Okay for me to merge then, thanks! It worked for me too except for the checkbox weirdness... But maybe that was just Firefox caching input states across tabs or me being dumb, who knows
@fabiancdng Did you do that? |
|
@AuxiliumCDNG Tried that both with the start and end date. It didn't change back when the checkbox was unchecked. Only tested it with Firefox though |
|
@fabiancdng Could you run |
|
@AuxiliumCDNG Oh haha works now 😅 Is it intentional that only the end date resets and not the start date? |
@fabiancdng It is |
|
@AuxiliumCDNG Sorry, overlooked that. I understand. |

Closes #56
Please run some thorough testing. I have no idea if it works reliably tbh. xD