Repository navigation
Conversation
A setting in the account menu shows ISO week numbers along the month view and the sidebar mini-calendar. Click a number to open that week. The week title includes the number. Off by default.
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
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.
Calendar: optional ISO week numbers on the month grid
The month view and the sidebar mini-calendar can show the ISO week number of each row. The setting is off by default, so the 7-column layout is unchanged until it is turned on.
What changes
· Week Nbeside the date range.trueis treated as off.Tests
isoWeekNumber/displayedWeekNumbercover week 1 spanning December, a 53-week year, a mid-year Thursday, Sunday-start vs Monday-start rows, and that the helpers do not mutate their input.defaultView.showWeekNumbersback tofalse.npm test: 1769 passed, 3 skipped.npm run buildsucceeds.Test plan
cd src/calendar && npm ci && npm test && npm run buildWeek Nin the titleNot included
Demo