Skip to content
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 Users to Hide Weekend Days #11

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open

Conversation

dathbe
Copy link
Contributor

@dathbe dathbe commented Mar 14, 2024

I've updated the code to add a variable that allows users to set whether they want to showWeekends in their configs, and updated the README accordingly. Default is the current behavior of showing weekend days.

Note: I believe this will also incorporate the changes from PR #10 because I built off that branch. So please make sure you have either merged that PR (or want to) before merging this one.

dathbe added 8 commits March 13, 2024 10:56
change "meal-description" to either "breakfast-description" or "lunch-description" depending on meal type.
replace "meal-description" with both "breakfast-description" and "lunch-description"
Testing conditional based on dayMenu.label
Add config variable to choose whether to display weekends; do not add entries if it is a weekend
Try to add additional days if one of the days is a weekend
comment out adding days for testing
uncomment from previous commit
Added showWeekends config variable and description
@dathbe dathbe changed the title Weekend Allow Users to Hide Weekend Days Mar 14, 2024
dathbe added 5 commits March 22, 2024 10:00
If Today/Tomorrow do not have a lunch menu, do not display (rough approximation for Today/Tomorrow being a weekend)
Add check for no breakfast too
Also hide "Today" and "Tomorrow" if there is no menu for those days (rough approximation for those days being weekends)
@dathbe
Copy link
Contributor Author

dathbe commented Mar 22, 2024

I've also changed it so that the max number of days to display is increased from 5 to 7 so that 5 weekdays can be displayed. This is sort of related to the weekend thing because without this change and if the weekends are set not to display, the number of displayed days fluctuates from 3-5 depending on what day of the week it is.

Change documentation to note change to allow 7 days
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant