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

Search Saves via Siri or App Shortcuts #1060

Merged
merged 10 commits into from
Sep 5, 2024
Merged

Search Saves via Siri or App Shortcuts #1060

merged 10 commits into from
Sep 5, 2024

Conversation

Gio2018
Copy link
Collaborator

@Gio2018 Gio2018 commented Aug 19, 2024

Goal

  • This PR adds an app Intent for Searching articles in your Saves list

Note

As of now, the search is intentionally limited to Saves (not Archive nor All)

Test Steps

  • Build/run this branch
  • Add the "Search Pocket" app shortcut to your shortcut, then run it or
  • Tell Siri "Search Pocket" or "Show me some cool stuff in Pocket"
  • Input the search criteria (via text or voice) and make sure the search triggers in Pocket and displays results accordingly

Issue(s)

POCKET-10508

Video

Screen.Recording.2024-08-29.at.4.35.53.PM.mov

@Gio2018 Gio2018 self-assigned this Aug 19, 2024
@Gio2018 Gio2018 added the 🛑 DO NOT MERGE Do not merge label Aug 19, 2024
@pocket-ci
Copy link
Contributor

pocket-ci commented Aug 20, 2024

Messages
📖 No SwiftLint violations! 🎉
📖 Project coverage: 37.49%
📖 Checking XCode Environment Variables
📖 Edited 7 files
📖 Created 20 files

Analytics: Coverage: 59.14

File Coverage
PocketIntents.swift 0.0% ⚠️

Pocket.app: Coverage: 75.56

File Coverage
PocketShortcuts.swift 100.0%
SearchSavesIntent.swift 0.0% ⚠️
PocketApp.swift 100.0%

PocketKit: Coverage: 62.61

File Coverage
SavesContainerViewController.swift 75.64%
SavesContainerViewModel.swift 63.27%
RootViewModel.swift 71.33%
MainViewModel.swift 33.18% ⚠️
SearchViewModel.swift 58.58%

AnalyticsTests: Coverage: 24.08

File Coverage
PocketIntents.swift 0.0% ⚠️

PocketKitTests: Coverage: 28.98

File Coverage
SavesContainerViewController.swift 52.36%
SavesContainerViewModel.swift 38.78% ⚠️
RootViewModel.swift 72.03%
MainViewModel.swift 53.48%
SearchViewModel.swift 22.49% ⚠️

Generated by 🚫 Danger Swift against 2001381

@Gio2018 Gio2018 force-pushed the feat/POCKET-10294-continue-signed-out branch from 3cd9a62 to 03aaf0a Compare August 20, 2024 05:38
Base automatically changed from feat/POCKET-10294-continue-signed-out to develop August 20, 2024 21:34
@Gio2018 Gio2018 force-pushed the feat/siri-search branch 2 times, most recently from 8dd7e90 to 9c6d7bf Compare August 22, 2024 17:17
@Gio2018 Gio2018 added this to the 8.18.0 milestone Aug 29, 2024
@Gio2018 Gio2018 marked this pull request as ready for review August 29, 2024 21:42
@Gio2018 Gio2018 requested a review from bassrock as a code owner August 29, 2024 21:42
@Gio2018 Gio2018 changed the title Feat/siri search Search Saves via Siri or App Shortcuts Aug 29, 2024
@Gio2018 Gio2018 added enhancement New feature or request App Intents labels Aug 29, 2024
@@ -0,0 +1,3 @@
"Show me some cool stuff in ${applicationName}" = "Zeig mir coole Sachen in ${applicationName}";
Copy link
Member

Choose a reason for hiding this comment

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

Should we setup this file path in smartling?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

eventually, though I am still trying to figure out if we can leverage our Localization package and SwiftGen, so the localization on Intents is still kinda WIP, but this works nonetheless.

@Gio2018 Gio2018 force-pushed the feat/siri-search branch 2 times, most recently from b1b99d9 to 2001381 Compare September 3, 2024 16:21
@Gio2018 Gio2018 merged commit 85702ed into develop Sep 5, 2024
1 check failed
@Gio2018 Gio2018 deleted the feat/siri-search branch September 5, 2024 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
App Intents enhancement New feature or request 🛑 DO NOT MERGE Do not merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants