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

feat(module: datepicker): Add DateTimeOffset, DateOnly, TimeOnly support #3443

Merged

Conversation

Alexbits
Copy link
Contributor

@Alexbits Alexbits commented Sep 25, 2023

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / documentation update
  • Demo update
  • Component style update
  • Bundle size optimization
  • Performance optimization
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Other (about what?)

🔗 Related issue link

#1236
#1589

💡 Background and solution

Allows to use the DateTimeOffset in DatePicker/RangePicker.

📝 Changelog

Adds DateTimeOffset, DateOnly, and TimeOnly support to DatePicker, RangePicker, and TimePicker.

⚠️Breaking change: OnChange and OnPanelChange events are generic now to allow the use of the new types.

☑️ Self Check before Merge

⚠️ Please check all items below before review. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • Changelog is provided or not needed

@github-actions
Copy link

github-actions bot commented Sep 25, 2023

@Alexbits Alexbits changed the title feat(module: datepicker). Add DateTimeOffset, DateOnly, TimeOnly support feat(module: datepicker): Add DateTimeOffset, DateOnly, TimeOnly support Sep 25, 2023
@codecov
Copy link

codecov bot commented Sep 25, 2023

Codecov Report

Attention: 84 lines in your changes are missing coverage. Please review.

Comparison is base (6c2591a) 1.56% compared to head (e199078) 47.55%.

Additional details and impacted files
@@             Coverage Diff              @@
##           feature    #3443       +/-   ##
============================================
+ Coverage     1.56%   47.55%   +45.99%     
============================================
  Files          563      564        +1     
  Lines        26692    26831      +139     
  Branches       280      280               
============================================
+ Hits           417    12759    +12342     
+ Misses       26235    14032    -12203     
  Partials        40       40               
Files Coverage Δ
...ore/EventCallbackArgs/DateRangeChangedEventArgs.cs 100.00% <100.00%> (+100.00%) ⬆️
...core/EventCallbackArgs/DateTimeChangedEventArgs.cs 100.00% <100.00%> (+100.00%) ⬆️
...onents/core/Extensions/DataConversionExtensions.cs 100.00% <ø> (ø)
components/core/Helpers/DateHelper.cs 88.60% <100.00%> (+88.60%) ⬆️
components/date-picker/DatePicker.Razor.cs 79.85% <100.00%> (+79.85%) ⬆️
components/date-picker/RangePickerDefaults.cs 100.00% <100.00%> (+100.00%) ⬆️
components/date-picker/locale/FormatAnalyzer.cs 90.45% <100.00%> (+90.45%) ⬆️
components/slider/Slider.razor.cs 61.59% <80.00%> (+61.59%) ⬆️
components/date-picker/internal/DatePickerBase.cs 83.78% <71.05%> (+83.78%) ⬆️
components/date-picker/RangePicker.razor.cs 68.58% <65.45%> (+68.58%) ⬆️
... and 1 more

... and 244 files with indirect coverage changes

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

@ElderJames ElderJames changed the base branch from master to feature October 5, 2023 09:49
add(module:datepicker): generic OnPanelChange event

add(module:datepicker): generic OnChange event

fix(module:datepicker): DateTimeKind is not preserved

add(module:datepicker): DateTimeOffset unit tests

add(module:datepicker): add DateTimeOffset to range picker unit tests

add(module:datepicker): refactor unit tests

fix(module:datepicker): DateTime.Kind is not preserved

feat(module: datepicker). Add DateTimeOffset, DateOnly, TimeOnly support
@ElderJames ElderJames force-pushed the feat/date_picker_datetimeoffset branch from f3f2466 to b0144ff Compare October 8, 2023 16:12
@ElderJames
Copy link
Member

Hello @Alexbits , I have fix the conflicts but there still are a test case is failed. Could you please fix it?

@Alexbits
Copy link
Contributor Author

Alexbits commented Oct 9, 2023

Hello @Alexbits , I have fix the conflicts but there still are a test case is failed. Could you please fix it?

@ElderJames The Mask feature broke the RangePicker keyed input. There are issues in multiple places. Some of the changes do look absurd to me.

@Alexbits
Copy link
Contributor Author

Hey @ElderJames, I've fixed the unit test issues. Some merged changes still look weird to me 🤷🏻‍♂️. But I do not have time to delve into them at the moment.

@ElderJames
Copy link
Member

Thank you @Alexbits , I will continue to review thoes changes. I'm sorry I may have interfered with your efforts with this component.

@ElderJames ElderJames merged commit 6b0a8f4 into ant-design-blazor:feature Oct 18, 2023
6 checks passed
@Alexbits Alexbits deleted the feat/date_picker_datetimeoffset branch October 18, 2023 17:11
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.

None yet

2 participants