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 DatePickerProps #4932

Merged
merged 1 commit into from
Jul 8, 2024
Merged

Conversation

yuki0410-dev
Copy link
Contributor

Description

Linked issue: closes #4922

Problem
See issue

Changes

  • Add Partial toPick<AdditionalProps, "excludeScrollbar">
  • change to optional onSelect and onChangeProps. (Consider defaultProps)

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.

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 for review. Expert reviewers are now being matched to your request based on the code's requirements. Stay tuned!

What to expect from this code review:
  • Comments posted to any areas of potential concern or improvement.
  • Detailed feedback or actions needed to resolve issues that are found.
  • Turnaround times vary, but we aim to be swift.

@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

+ 43
- 24

100% TSX

Type of change

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

Copy link

codecov bot commented Jun 22, 2024

Codecov Report

Attention: Patch coverage is 71.05263% with 11 lines in your changes missing coverage. Please review.

Project coverage is 96.35%. Comparing base (f90932c) to head (ee69d7b).

Files Patch % Lines
src/index.tsx 71.05% 11 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4932      +/-   ##
==========================================
- Coverage   96.67%   96.35%   -0.32%     
==========================================
  Files          28       28              
  Lines        3275     3295      +20     
  Branches     1357     1392      +35     
==========================================
+ Hits         3166     3175       +9     
- Misses        109      116       +7     
- Partials        0        4       +4     

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

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.

The changes look good to me overall. I added one note about possibly simplifying the default value checks, but otherwise don't have any concerns about the updates. Thanks!

Image of Jonah Jonah


Reviewed with ❤️ by PullRequest

src/index.tsx Show resolved Hide resolved
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.

I have no concerns with this pull request. The duplication already mentioned would be nice to have but is non-blocking.

Image of Jacob Jacob


Reviewed with ❤️ by PullRequest

@martijnrusschen
Copy link
Member

it looks like the test coverage took a hit, can you review this?

@yuki0410-dev
Copy link
Contributor Author

yuki0410-dev commented Jun 27, 2024

@martijnrusschen
I just formally describe the fallback because defaultProps is not reflected in the type well, and I can't actually get the code to pass here.
(I can write this code well if it is a function Component instead of a Class Component.)
A similar case occurred during the typescript transition, and we believe that it cannot be helped.

@yuki0410-dev
Copy link
Contributor Author

@martijnrusschen
Is this PR likely to merge?

@martijnrusschen martijnrusschen changed the title fix DatePikcerProps fix DatePickerProps Jul 8, 2024
@martijnrusschen martijnrusschen merged commit 8fdc4fb into Hacker0x01:main Jul 8, 2024
5 of 7 checks passed
@yuki0410-dev yuki0410-dev deleted the bugfix/4922 branch July 8, 2024 10:06
@laug laug mentioned this pull request Aug 23, 2024
3 tasks
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.

excludScrollbar an optional property
2 participants