-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Enable remote search in Themes if custom themes are supported #24262
Open
pmusolino
wants to merge
10
commits into
trunk
Choose a base branch
from
issue/23153-cannot-search-for-themes-if-not-already-downloaded
base: trunk
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Enable remote search in Themes if custom themes are supported #24262
pmusolino
wants to merge
10
commits into
trunk
from
issue/23153-cannot-search-for-themes-if-not-already-downloaded
+97
−19
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…wift - Apply immediate local search when search text changes - Perform remote search for WordPress.com themes with 3+ characters - Update predicates to include local search conditions for custom themes - Refactor comments for clarity on search behavior and conditions
- Modify `ThemeBrowserViewController.swift` to include `resetRemoteSearch` method - Integrate `resetRemoteSearch` in search logic to reset search state upon search text changes - Adjust logic to handle shorter search queries that follow longer ones by resetting remote search - Ensure local results reload consistently after search operations
- Update test to use nil instead of empty string for search in ThemeServiceTests.m
- Change `fileprivate` to `private` for several functions and variables in ThemeBrowserViewController.swift - Simplify guard statement in `updateSearchName` function - Update comment in `customThemesBrowsePredicate` function
2 tasks
Generated by 🚫 Danger |
|
App Name | ![]() |
|
Configuration | Release-Alpha | |
Build Number | pr24262-25a0f8e | |
Version | 25.8 | |
Bundle ID | org.wordpress.alpha | |
Commit | 25a0f8e | |
App Center Build | WPiOS - One-Offs #11745 |
|
App Name | ![]() |
|
Configuration | Release-Alpha | |
Build Number | pr24262-25a0f8e | |
Version | 25.8 | |
Bundle ID | com.jetpack.alpha | |
Commit | 25a0f8e | |
App Center Build | jetpack-installable-builds #10771 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #23153
Dependent on this PR wordpress-mobile/WordPressKit-iOS#834
This PR partially improves the search functionality within the Theme by enhancing its capabilities. Previously, the search was limited to locally fetched themes and did not include elements that had not been paginated. Now, it works remotely for blogs that support custom themes. The endpoint used for this case supports search, whereas other endpoints, such as the one utilized by the
getThemesForBlogId
method, do not support remote search functionality.However, the search is available for
getWPThemesPage
(which calls thev2.0/themes
endpoint) only if at least 3 characters are added in the search bar. For this reason, this limitation has also been handled in the app. For all other endpoints where remote searching is not available, the search continues to work locally.Keep in mind during your tests that searching through the API does not only look for matches in the title of the theme. Therefore, when you type a string, you may see other related themes as well.
To test:
Custom Themes not supported
Custom Themes supported
scrawl
.Regression Notes
Potential unintended areas of impact
What I did to test those areas of impact (or what existing automated tests I relied on)
What automated tests I added (or what prevented me from doing so)
PR submission checklist:
RELEASE-NOTES.txt
if necessary.Testing checklist: