-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Allow first day of week to be Sunday or Monday #3093
Conversation
208d3f9
to
bd8ba85
Compare
@simonpasquier |
@Git-Jiro thanks for doing this! I'm not really qualified for reviewing the code, @w0rm is definitely more qualified :) For the other reviewers, this PR introduces a new "Settings" tab which allows to select in a drop-down list the first day of the week (Monday or Sunday): From a feature standpoint, I wonder if the list shouldn't contain all week days? |
@simonpasquier good points! |
bd8ba85
to
e95f10b
Compare
Tried to make the settings page a little bit more visually appealing |
Signed-off-by: Martin Schimandl <[email protected]>
e95f10b
to
e07cdfa
Compare
@Git-Jiro thanks for the contribution! I left a few comments. @simonpasquier we shouldn't put all days in the dropdown, it's Monday or Sunday. Perhaps we could switch to the radio buttons, so that the user doesn't have to click twice to select the option? |
Signed-off-by: Martin Schimandl <[email protected]>
Signed-off-by: Martin Schimandl <[email protected]>
Signed-off-by: Martin Schimandl <[email protected]>
55e7575
to
3f48186
Compare
Signed-off-by: Martin Schimandl <[email protected]>
For me it looks like the current test failure is a false positive, is it possible to restart the test? |
@Git-Jiro thanks for the hard work! I have one last suggestion for the design. Let me know what you think. I am also happy to do it myself if you don't have time. |
I guess we are talking about radio buttons instead of the dropdown? |
Signed-off-by: Martin Schimandl <[email protected]>
b6528f4
to
6319577
Compare
Co-authored-by: Andrey Kuzmin <[email protected]> Signed-off-by: Martin Schimandl <[email protected]>
@Git-Jiro looks like |
Signed-off-by: Martin Schimandl <[email protected]>
@Git-Jiro thanks for your contribution. As a person living in Europe I definitely find this feature very useful 😁 |
* Allow week to start at Monday or Sunday Signed-off-by: Martin Schimandl <[email protected]> * refactor from Int to DataType Signed-off-by: Martin Schimandl <[email protected]> * refactor to use name 'firstDayOfWeek' everywhere Signed-off-by: Martin Schimandl <[email protected]> * CSS fine tuning Signed-off-by: Martin Schimandl <[email protected]> * Check firstDayOfWeek with case statements Signed-off-by: Martin Schimandl <[email protected]> * Change default to Sunday. Use radio buttons Signed-off-by: Martin Schimandl <[email protected]> * Update ui/app/src/Views/Settings/Views.elm Co-authored-by: Andrey Kuzmin <[email protected]> Signed-off-by: Martin Schimandl <[email protected]> * Regenerate assets_vfsdata.go Signed-off-by: Martin Schimandl <[email protected]> Signed-off-by: Martin Schimandl <[email protected]> Co-authored-by: Andrey Kuzmin <[email protected]> Signed-off-by: Yijie Qin <[email protected]>
* Allow week to start at Monday or Sunday Signed-off-by: Martin Schimandl <[email protected]> * refactor from Int to DataType Signed-off-by: Martin Schimandl <[email protected]> * refactor to use name 'firstDayOfWeek' everywhere Signed-off-by: Martin Schimandl <[email protected]> * CSS fine tuning Signed-off-by: Martin Schimandl <[email protected]> * Check firstDayOfWeek with case statements Signed-off-by: Martin Schimandl <[email protected]> * Change default to Sunday. Use radio buttons Signed-off-by: Martin Schimandl <[email protected]> * Update ui/app/src/Views/Settings/Views.elm Co-authored-by: Andrey Kuzmin <[email protected]> Signed-off-by: Martin Schimandl <[email protected]> * Regenerate assets_vfsdata.go Signed-off-by: Martin Schimandl <[email protected]> Signed-off-by: Martin Schimandl <[email protected]> Co-authored-by: Andrey Kuzmin <[email protected]> Signed-off-by: Yijie Qin <[email protected]>
refers to #3073