Skip to content

Conversation

@Diaan
Copy link
Collaborator

@Diaan Diaan commented Sep 16, 2025

No description provided.

Diaan added 14 commits August 25, 2025 11:46
…hance negative and indicator date handling; update styles in month-view.scss for better layout control.
…gic, date handling, and visual indicators; remove console logs for cleaner code.
…ontent to header and adjust margins for month indicators. Update select-month and month-view stories for better structure and rendering logic.
…onth selection; improve button styles and interactions for better accessibility and user experience.
…h, improve month selection logic, and update styles for better layout and accessibility.
…ter, enhance year selection logic, and improve button accessibility and styles.
…to validate functionality and ensure proper event handling.
…dd tests for month navigation in SelectDay component.
@Diaan Diaan linked an issue Sep 16, 2025 that may be closed by this pull request
19 tasks
@changeset-bot
Copy link

changeset-bot bot commented Sep 16, 2025

🦋 Changeset detected

Latest commit: 637254e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 37 packages
Name Type
@sl-design-system/shared Minor
@sl-design-system/calendar Patch
@sl-design-system/date-field Patch
@sl-design-system/accordion Patch
@sl-design-system/announcer Patch
@sl-design-system/avatar Patch
@sl-design-system/button Patch
@sl-design-system/callout Patch
@sl-design-system/checkbox Patch
@sl-design-system/data-source Patch
@sl-design-system/dialog Patch
@sl-design-system/editor Patch
@sl-design-system/emoji Patch
@sl-design-system/form Patch
@sl-design-system/format-date Patch
@sl-design-system/format-number Patch
@sl-design-system/grid Patch
@sl-design-system/inline-message Patch
@sl-design-system/menu Patch
@sl-design-system/number-field Patch
@sl-design-system/paginator Patch
@sl-design-system/panel Patch
@sl-design-system/popover Patch
@sl-design-system/radio-group Patch
@sl-design-system/search-field Patch
@sl-design-system/select Patch
@sl-design-system/switch Patch
@sl-design-system/tabs Patch
@sl-design-system/tag Patch
@sl-design-system/text-area Patch
@sl-design-system/text-field Patch
@sl-design-system/toggle-button Patch
@sl-design-system/toggle-group Patch
@sl-design-system/tooltip Patch
@sl-design-system/tree Patch
@sl-design-system/virtual-list Patch
@sl-design-system/tool-bar Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Sep 16, 2025

🕸 Website preview

You can view a preview here (commit 637254e2b347ff19a71b6edb0fe1adb2574eaeea).

@github-actions
Copy link
Contributor

github-actions bot commented Sep 16, 2025

🕸 Storybook preview

You can view a preview here (commit 637254e2b347ff19a71b6edb0fe1adb2574eaeea).

@jpzwarte jpzwarte marked this pull request as ready for review November 21, 2025 12:28
Copilot AI review requested due to automatic review settings November 21, 2025 12:28
Copilot finished reviewing on behalf of jpzwarte November 21, 2025 12:29
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements calendar functionality for a date picker component as part of issue #1862. The implementation includes significant upgrades to test infrastructure and styling improvements.

Key changes:

  • Upgraded Storybook from v9.1.13 to v10.0.7 and Vitest from v3.2.4 to v4.0.9
  • Implemented new calendar components: SelectDay, SelectMonth, SelectYear, and MonthView with comprehensive functionality
  • Added a new NewFocusGroupController for improved keyboard navigation in grid layouts
  • Added support for disabled dates, indicator dates (colored dots), min/max date constraints, and week number display

Reviewed Changes

Copilot reviewed 81 out of 82 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
yarn.lock Updated dependencies for Storybook v10, Vitest v4, and added new packages like scrollend-polyfill and chai-datetime
vitest.setup.ts Added chai-datetime plugin and updated import paths for Vitest v4 browser utilities
vitest.config.ts Migrated to Vitest v4 with new playwright provider configuration
packages/components/shared/src/converters/date-list.ts New converter for date array attributes
packages/components/shared/src/controllers/new-focus-group.ts New controller for advanced keyboard navigation in grid layouts
packages/components/calendar/src/*.ts Complete implementation of calendar components with accessibility features
packages/components/calendar/src/*.spec.ts Comprehensive test coverage for all calendar components
packages/components/calendar/src/*.scss Styling for calendar components following design system patterns
packages/locales/src/nl.* Dutch translations for calendar labels and announcements

}
};

export const DisabledDates: Story = {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this story, when I use only arrow right key to move to the next available days, when it moves to the next month it selects (even when I'm not selecting anything) the first day of next month and there when I use arrow right key again it jumps to the next month (which is disabled, so should not be available).

Screen.Recording.2025-11-27.at.15.11.40.mov

@Diaan
Copy link
Collaborator Author

Diaan commented Nov 27, 2025

When you hover over an indicator dot and then move on to the date the tooltip doesn't disappear.
Could be that it's the same issue as #2836 Or maybe the tooltip is not on the right element?

Screen.Recording.2025-11-27.at.15.43.27-1.mov

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.

[Calendar] Development

4 participants