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

In 1361- Search Overflow Actions #682

Merged
merged 3 commits into from
May 1, 2023
Merged

In 1361- Search Overflow Actions #682

merged 3 commits into from
May 1, 2023

Conversation

CMasterson
Copy link
Contributor

Summary

When a user un/archives a search result from the overflow menu, update the displayed results.

References

https://getpocket.atlassian.net/browse/IN-1361

Implementation Details

Added SearchResultsActionDelegate with the SearchResultsViewModel conforming to it.
PocketItemViewModel is passed a weak reference to the delegate and attempts to call it when the user takes an action from the overflow menu.

Test Steps

Search for any item
Using the overflow menu ( '...' button) un/archive the item.
The item disappears from the search results if searching Save/Archive but has no effect when searching All Items

PR Checklist:

  • Added Unit / UI tests
  • Self Review (review, clean up, documentation, run tests)
  • Basic Self QA

@CMasterson CMasterson requested a review from a team as a code owner May 1, 2023 15:35
@CMasterson CMasterson requested review from dskuza and Gio2018 and removed request for a team May 1, 2023 15:35
@pocket-ci
Copy link
Contributor

Messages
📖 No SwiftLint violations! 🎉
📖 Project coverage: 76.65%
📖 Checking XCode Environment Variables
📖 Edited 2 files
📖 Created 0 files

PocketKit: Coverage: 76.83

File Coverage
PocketItemViewModel.swift 90.08%
SearchViewModel.swift 73.19%

Generated by 🚫 Danger Swift against 8a72b5f

@CMasterson CMasterson enabled auto-merge (squash) May 1, 2023 16:01
@CMasterson CMasterson merged commit 7318086 into develop May 1, 2023
@CMasterson CMasterson deleted the IN-1361 branch May 1, 2023 16:15
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.

3 participants