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: Implement Badging API #11661

Merged
merged 21 commits into from
Nov 20, 2024
Merged

feat: Implement Badging API #11661

merged 21 commits into from
Nov 20, 2024

Conversation

ahqsoftwares
Copy link
Contributor

@ahqsoftwares ahqsoftwares commented Nov 12, 2024

closes #4489

This PR implements badging api for Windows, macOS, Linux, IOS from tao upstream ref #1002

@ahqsoftwares ahqsoftwares changed the title Update tao and implement set_badge_count, set_badge_label, _set_overlay_icon`, closes #489 Update tao and implement set_badge_count, set_badge_label, _set_overlay_icon`, closes #4489 Nov 12, 2024
@ahqsoftwares ahqsoftwares changed the title Update tao and implement set_badge_count, set_badge_label, _set_overlay_icon`, closes #4489 Update tao and implement set_badge_count, set_badge_label, set_overlay_icon, closes #4489 Nov 12, 2024
Copy link
Contributor

github-actions bot commented Nov 12, 2024

Package Changes Through d094a46

There are 8 changes which include tauri-bundler with minor, tauri-cli with minor, @tauri-apps/cli with minor, tauri with minor, tauri-runtime with minor, tauri-runtime-wry with minor, @tauri-apps/api with minor, tauri-utils with patch

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
@tauri-apps/api 2.1.1 2.2.0
tauri-utils 2.1.0 2.1.1
tauri-bundler 2.1.0 2.2.0
tauri-runtime 2.2.0 2.3.0
tauri-runtime-wry 2.2.0 2.3.0
tauri-codegen 2.0.3 2.0.4
tauri-macros 2.0.3 2.0.4
tauri-plugin 2.0.3 2.0.4
tauri-build 2.0.3 2.0.4
tauri 2.1.1 2.2.0
@tauri-apps/cli 2.1.0 2.2.0
tauri-cli 2.1.0 2.2.0

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

@ahqsoftwares ahqsoftwares changed the title Update tao and implement set_badge_count, set_badge_label, set_overlay_icon, closes #4489 Update tao and implement Badging API, closes #4489 Nov 13, 2024
@ahqsoftwares ahqsoftwares marked this pull request as ready for review November 13, 2024 08:11
@ahqsoftwares ahqsoftwares requested a review from a team as a code owner November 13, 2024 08:11
@ahqsoftwares ahqsoftwares changed the title Update tao and implement Badging API, closes #4489 feat: Implement Badging API, closes #4489 Nov 13, 2024
@ahqsoftwares ahqsoftwares changed the title feat: Implement Badging API, closes #4489 feat: Implement Badging API Nov 13, 2024
crates/tauri-runtime-wry/src/lib.rs Show resolved Hide resolved
crates/tauri/src/webview/webview_window.rs Show resolved Hide resolved
crates/tauri/src/webview/webview_window.rs Show resolved Hide resolved
crates/tauri/src/webview/webview_window.rs Outdated Show resolved Hide resolved
crates/tauri/src/window/mod.rs Outdated Show resolved Hide resolved
packages/api/src/window.ts Outdated Show resolved Hide resolved
packages/cli/index.d.ts Outdated Show resolved Hide resolved
packages/cli/index.js Outdated Show resolved Hide resolved
.changes/overlay.md Outdated Show resolved Hide resolved
crates/tauri/src/window/mod.rs Outdated Show resolved Hide resolved
Comment on lines 2347 to 2351
name: m.name,
scaleFactor: m.scaleFactor,
position: new PhysicalPosition(m.position),
size: new PhysicalSize(m.size)
}
Copy link
Member

Choose a reason for hiding this comment

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

let's revert this formatting

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 was actually done by prettier

Copy link
Member

Choose a reason for hiding this comment

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

looks like something is wrong on your setup, as CI was failing because of this

Copy link
Member

@amrbashir amrbashir 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 ready to merge, just a couple of docs nit-picks and you need to regen the global script, just run pnpm build:api in root

crates/tauri/src/webview/webview_window.rs Outdated Show resolved Hide resolved
crates/tauri/src/webview/webview_window.rs Outdated Show resolved Hide resolved
crates/tauri/src/window/mod.rs Outdated Show resolved Hide resolved
crates/tauri/src/window/mod.rs Outdated Show resolved Hide resolved
packages/api/src/window.ts Outdated Show resolved Hide resolved
packages/api/src/window.ts Outdated Show resolved Hide resolved
@amrbashir amrbashir merged commit 020ea05 into tauri-apps:dev Nov 20, 2024
3 checks passed
@amrbashir
Copy link
Member

Thank you

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.

[feat] Support Badging API
2 participants