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

BadgeCounter #807 #1126

Merged
merged 44 commits into from Jul 23, 2023
Merged

BadgeCounter #807 #1126

merged 44 commits into from Jul 23, 2023

Conversation

VladislavAntonyuk
Copy link
Collaborator

@VladislavAntonyuk VladislavAntonyuk commented Apr 3, 2023

Description of Change

Adds Badge Counter

Linked Issues

PR Checklist

  • Has a linked Issue, and the Issue has been approved(bug) or Championed (feature/proposal)
  • Has tests (if omitted, state reason in description)
  • Has samples (if omitted, state reason in description)
  • Rebased on top of main at time of PR
  • Changes adhere to coding standard
  • Documentation created or updated: Badge MicrosoftDocs/CommunityToolkit#298

Additional information

Copy link
Collaborator

@brminnick brminnick left a comment

Choose a reason for hiding this comment

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

Thanks Vlad!

Let's avoid adding a NuGet Dependency to CommunityToolkti.Maui.Core. Let's see if we can instead leverage that author's implementation.

I'd also like to rename the namespace to CommunityToolkit.Maui.ApplicationModel to align with .NET MAUI and rename the class to Badge so that we could add additional methods in the future (eg Clear()).

@ghost ghost added stale The author has not responded in over 30 days help wanted This proposal has been approved and is ready to be implemented labels May 15, 2023
@VladislavAntonyuk VladislavAntonyuk removed help wanted This proposal has been approved and is ready to be implemented stale The author has not responded in over 30 days labels May 30, 2023
@VladislavAntonyuk VladislavAntonyuk added the needs discussion Discuss it on the next Monthly standup label Jun 1, 2023
- Fix a typo in SamsungBadgeProvider.cs by changing "new[1]" to "new string[1]"
- Add a new test method GetBadgeFailsOnNet() in BadgeTests.cs that tests the behavior of getting badge count on .NET platform
- Modify the existing test method SetBadgeFailsOnNet() in BadgeTests.cs to throw NotSupportedException instead of NotImplementedException
- Add a new method GetCount() in BadgeImplementationMock.cs that throws NotImplementedException
Copy link
Collaborator

@brminnick brminnick left a comment

Choose a reason for hiding this comment

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

Hey Vlad! It looks like we have a bug in Windows' GetCount() implementation; it always returns 0

VladislavAntonyuk and others added 4 commits July 14, 2023 18:44
…ation.windows.cs

Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
…ation.tizen.cs

Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
…actory.android.cs

Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
…tBadgeProvider.android.cs

Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
Copy link
Collaborator

@brminnick brminnick left a comment

Choose a reason for hiding this comment

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

Nice work, Vlad!!

@brminnick brminnick merged commit b70a32d into main Jul 23, 2023
8 checks passed
@brminnick brminnick deleted the badge-counter branch July 23, 2023 17:46
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.

[Proposal] AppIcon Badge
4 participants