-
-
Notifications
You must be signed in to change notification settings - Fork 36
Calendar default visibility #275
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
Open
halwehrenberg
wants to merge
24
commits into
FamousWolf:dev
Choose a base branch
from
halwehrenberg:calendar-default-visibility
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Calendar default visibility #275
halwehrenberg
wants to merge
24
commits into
FamousWolf:dev
from
halwehrenberg:calendar-default-visibility
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TASK] Increase version number to 1.5.0
[MERGE] Release version 1.5.1
[RELEASE] Version 1.6.0
This adds `data-date`, `data-weekday`, `data-month`, `data-year` and `data-week` attributes to the day container tag. It can be used for custom styling. Resolves: FamousWolf#116
This adds an option `filter` to filter out any event that matches a regular expression Resolves: FamousWolf#67
This can be used to for example show last week by setting `startingDayOffset: -7`. Resolves: FamousWolf#111
This adds a `showLegend` option to show a calendar legend at the top of the card. It is turned off by default. Resolves: FamousWolf#107
…calendar This prevents events with the same start time from jumping around when calendars are (re)loaded Resolves: FamousWolf#74
[DOCS] Fix typo
[TASK] Increase version to 1.7.1
[MERGE] Changes for version 1.8.0
[MERGE] Changes for version 1.9.0
[MERGE] Add missing documentation for `showLegend`
[MERGE] Changes for 1.10.0
[MERGE] Changes for release 1.10.1
[MERGE] Changes for version 1.11.0
[MERGE] Add funding links
[MERGE] Changes for version 1.11.1
[MERGE] Remove custom hacs repository instructions
[MERGE] Merge files for version 1.12.0
…fault' based on legendToggle option
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This PR introduces a new feature that allows users to configure calendars to be toggled off by default. This enhancement impacts both the visual editor and the runtime behavior of the Week Planner Card.
Changes
Runtime Behavior:
toggledOffByDefault
to specify which calendar entities should be toggled off (i.e., hidden) by default when the card loads.src/card.js
so that the_hideCalendars
array is populated using thetoggledOffByDefault
property.legendToggle
is true), clicking a calendar in the legend will add or remove that calendar's entity from the_hideCalendars
array.toggledOffByDefault
are already hidden, meaning they won't be displayed until toggled by the user.Visual Editor Enhancements:
src/editor.js
so that the "Calendars toggled off by default" multi-select field is conditionally rendered only when the "Toggle calendars by clicking on the legend" option is enabled.Testing
Runtime Testing:
toggledOffByDefault
property includes specific calendar entities, those calendars are hidden on card load._hideCalendars
list).Editor Testing:
legendToggle
is enabled.Notes
This new section is designed to improve user experience by providing finer control over calendar visibility on initial load. Feedback is welcome!