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

fix: #4455 Pass calendarStartDay props from week to day. #4609

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

yuki0410-dev
Copy link
Contributor

@yuki0410-dev yuki0410-dev commented Mar 18, 2024

Description

Linked issue: close #4455

Problem
See issue #4455

Changes

  • Pass calendarStartDay props from week to day.

Screenshots

To reviewers

Contribution checklist

  • I have followed the contributing guidelines.
  • I have added sufficient test coverage for my changes.
  • I have formatted my code with Prettier and checked for linting issues with ESLint for code readability.

Sorry, something went wrong.

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

⚠️ This pull request was not sent to the PullRequest network because the pull request is a draft.

Copy link

codecov bot commented Mar 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.94%. Comparing base (09198c9) to head (9129941).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4609   +/-   ##
=======================================
  Coverage   96.94%   96.94%           
=======================================
  Files          28       28           
  Lines        2589     2589           
  Branches     1091     1091           
=======================================
  Hits         2510     2510           
  Misses         79       79           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@yuki0410-dev yuki0410-dev marked this pull request as ready for review March 18, 2024 15:17
Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

✅ This pull request was sent to the PullRequest network.


@yuki0410-dev you can click here to see the review status or cancel the code review job.

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

PullRequest Breakdown

Reviewable lines of change

+ 38
- 0

97% JavaScript (tests)
3% JavaScript

Type of change

Fix - These changes are likely to be fixing a bug or issue.

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

This is a very simple change and I don't see any issues with the one line change in week.jsx. I did leave a comment to improve the test added by adding an it block. Otherwise, the code looks great!

Image of Joey G Joey G


Reviewed with ❤️ by PullRequest


const days = container.querySelectorAll(".react-datepicker__day--selected");

expect(days).toHaveLength(7);
Copy link

Choose a reason for hiding this comment

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

I think this test would benefit from an it statement describing what the expectation is. I'm not sure if the behavior of the test and the expect statements are valid or not.

🔹 Improve Test Coverage (Nice to have)

Image of Joey G Joey G

Copy link
Member

Choose a reason for hiding this comment

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

Agree, can we make an explicit case to confirm this behaviour?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it section added

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

PullRequest reviewed the updates made to #4609 up until the latest commit (9129941). No further issues were found.

Reviewed by:

Image of Joey G Joey G

Copy link

@pullrequest pullrequest bot left a comment

Choose a reason for hiding this comment

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

Not much to review and difficult to assess much without more context. But the test was helpful.

Image of David M David M


Reviewed with ❤️ by PullRequest

@martijnrusschen martijnrusschen merged commit 2b7b6af into Hacker0x01:main Mar 19, 2024
6 checks passed
@yuki0410-dev yuki0410-dev deleted the fix/4455 branch March 19, 2024 10:22
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.

calendarStartDay and showWeekPicker, selected week is not active
2 participants