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:notification): add onClick observable #4989

Merged
merged 1 commit into from
Apr 14, 2020

Conversation

wzhudev
Copy link
Member

@wzhudev wzhudev commented Apr 5, 2020

refactor message and notification

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Application (the showcase website) / infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

[x] Yes
[ ] No

NzNotificationDataFilled is replaced by NzNotificationRef.

NzMessageDataFilled is replaced by NzMessageRef.

Doing this to make these two components' API consistent with others', and to stop exposing some internal implementation details.

Other information

@zorro-bot
Copy link

zorro-bot bot commented Apr 5, 2020

This preview will be available after the AzureCI is passed.

@codecov
Copy link

codecov bot commented Apr 5, 2020

Codecov Report

Merging #4989 into master will decrease coverage by 0.04%.
The diff coverage is 94.76%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4989      +/-   ##
==========================================
- Coverage   91.48%   91.43%   -0.05%     
==========================================
  Files         538      550      +12     
  Lines       13738    13709      -29     
  Branches     2043     2111      +68     
==========================================
- Hits        12568    12535      -33     
- Misses        707      712       +5     
+ Partials      463      462       -1     
Impacted Files Coverage Δ
components/message/base.ts 89.62% <89.62%> (ø)
components/message/message-container.component.ts 100.00% <100.00%> (+11.36%) ⬆️
components/message/message.component.ts 100.00% <100.00%> (+10.63%) ⬆️
components/message/message.service.ts 100.00% <100.00%> (ø)
...s/notification/notification-container.component.ts 100.00% <100.00%> (+8.33%) ⬆️
components/notification/notification.component.ts 100.00% <100.00%> (+8.92%) ⬆️
components/notification/notification.service.ts 100.00% <100.00%> (ø)
components/core/services/singleton.ts 78.57% <0.00%> (-14.29%) ⬇️
components/page-header/page-header.component.ts 90.90% <0.00%> (-9.10%) ⬇️
components/time-picker/time-holder.ts 95.78% <0.00%> (-1.53%) ⬇️
... and 35 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6803a92...2537739. Read the comment docs.

@hsuanxyz
Copy link
Member

notification API 文档没改,还是 NzNotificationDataFilled , 另外这是 breaking change

@wzhudev wzhudev force-pushed the notification-click branch from 772d6e6 to 9326151 Compare April 14, 2020 02:36
@wzhudev wzhudev changed the title feat(module:notification): add onClose observable feat(module:notification): add onClick observable Apr 14, 2020
@wzhudev wzhudev force-pushed the notification-click branch from 9326151 to 4949d0b Compare April 14, 2020 02:38
@wzhudev wzhudev requested a review from hsuanxyz April 14, 2020 02:43
hsuanxyz
hsuanxyz previously approved these changes Apr 14, 2020
close NG-ZORRO#4986

BREAKING CHANGE: NzMessageDataFilled is replaced by NzMessageRef
BREAKING CHANGE: NzNotificationDataFilled is replaced by NzNotificationRef

Update components/message/typings.ts

Co-Authored-By: Hsuan Lee <HsuanGM@gmail.com>

Update components/notification/typings.ts

Co-Authored-By: Hsuan Lee <HsuanGM@gmail.com>
@wzhudev wzhudev force-pushed the notification-click branch from 229fb52 to 2537739 Compare April 14, 2020 04:08
@hsuanxyz hsuanxyz merged commit 9224240 into NG-ZORRO:master Apr 14, 2020
@hsuanxyz hsuanxyz mentioned this pull request Apr 15, 2020
@wzhudev wzhudev deleted the notification-click branch April 15, 2020 13:48
hsuanxyz pushed a commit to hsuanxyz/ng-zorro-antd that referenced this pull request Aug 5, 2020
close NG-ZORRO#4986

BREAKING CHANGE: 


- NzMessageDataFilled is replaced by NzMessageRef
- NzNotificationDataFilled is replaced by NzNotificationRef
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants