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

[PM-19372] feat: Log out all accounts App Intent #1444

Open
wants to merge 3 commits into
base: PM-19045/lock-app-intents
Choose a base branch
from

Conversation

fedemkr
Copy link
Member

@fedemkr fedemkr commented Mar 19, 2025

🎟️ Tracking

PM-19372

📔 Objective

Implemented Log out all accounts App Intent and its Shortcut configuration.

ℹ️ No need for PendingAppIntentAction as the logout will be triggered in AppProcessor -> checkIfExtensionSwitchedAccounts() when going back to foreground.

⚠️ Merge #1443 first to the app intents feature branch.

📸 Screenshots

Log out all accounts shortcut

Log out all accounts shortcut

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

Copy link
Contributor

github-actions bot commented Mar 19, 2025

Logo
Checkmarx One – Scan Summary & Detailsa181dec5-01bb-4eb5-9d6b-f45bfbf4f180

Great job, no security vulnerabilities found in this Pull Request

Copy link

codecov bot commented Mar 20, 2025

Codecov Report

Attention: Patch coverage is 33.33333% with 32 lines in your changes missing coverage. Please review.

Project coverage is 89.46%. Comparing base (8138af8) to head (8941c3f).

Files with missing lines Patch % Lines
...plication/AppIntents/LogoutAllAccountsIntent.swift 0.00% 21 Missing ⚠️
...den/Application/AppIntents/ShortcutsProvider.swift 0.00% 8 Missing ⚠️
...nShared/UI/Platform/Application/AppProcessor.swift 0.00% 3 Missing ⚠️
Additional details and impacted files
@@                      Coverage Diff                      @@
##           PM-19045/lock-app-intents    #1444      +/-   ##
=============================================================
+ Coverage                      85.76%   89.46%   +3.69%     
=============================================================
  Files                            993      777     -216     
  Lines                          58708    48497   -10211     
=============================================================
- Hits                           50353    43388    -6965     
+ Misses                          8355     5109    -3246     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.


static var description = IntentDescription("LogOutAllAccounts")

static var openAppWhenRun: Bool = false
Copy link
Collaborator

Choose a reason for hiding this comment

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

🔨 looks like these are from AppIntent but it might be helpful to add some docs for these.

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.

2 participants