-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feature/localsearch] Local account-wide search using custom queries (#…
…933) * Port changes from feature/globalsearch to milestone/11.6 * - clean up QueryFileListTableViewController.swift - replace all/folder text in scope selection with icons on iOS 13+ * - SortMethod - turn localizedName from a function into a property - add sortPropertyName to simplify construction of custom OCQuerys - ClientQueryViewController - add sort property, sort order and result limits to OCQueryCondition - refresh search query when changing sort order and peak results * - UIView+Extension: add simply methods to start/stop a pulsing effect on a view - ServerListTableViewController - add user activity to allow state restoring to server list (previously only *always* to the last opened bookmark) - remove auto login code for pre-iOS 13 (in iOS 13 that's handled by scene/state restoration) - add inline status reporting for database migrations - SceneDelegate: add support to state restore to server list - ClientQueryViewController - switch to search tokenizer to construct OCQueryCondition - make sure sort / search options are no longer hidden when showing large "No results" message - ClientRootViewController - add support for migration progress reporting / OCCoreBusyStatusHandler passing - fix OCFileProviderServiceStandby leak if OCCoreManager returns a request with an error - FileProvider extension - return an error when trying to access an account whose database needs migration - handle case where no OCCore is available - MessageView: add option to show messages with insets at the edges - NSDate+ComputedTimes: - simplified computation of beginning of days, weeks, months and years, with support for offsets - add unit test - OCQueryCondition+SearchSegmenter: - segmentation of search queries into terms and "keywords" - supports placing terms in "" as well as unclosed " - keyword support to filter for: - files (:file), folders (:folder), - images (:image), video (:video) - time frames (:today, :week, :month, :year) - dynamic time frames (:7d, :2w, :1m, :1y, days:7, weeks:2, month:1, year:1, …) - file types/suffixes (type:jpg) - add unit test * - add "Show more results" row at the end of the search result list if there could be more results * - Cleanup more cell identifiers * - QueryFileListTableViewController: search remains active after choosing an item and then navigating back to search - ClientQueryViewController: adapt to QueryFileListTableViewController changes * SDK update to fix OCCore stop bug * - BreadCrumbTableViewController - add navigationHandler property to allow custom navigation actions to get triggered by the breadcrumb view - ClientItemCell - add reveal button support - ClientQueryViewController / QueryFileListTableViewController - allow providing an item to reveal and highlight - allow specifying if bread crumbs should push new view controllers - show reveal arrows for custom queries * - fix issue of stopped custom query after revealing an item and returning - use search term segmentation also for folder search (via OCQueryCondition+Item) * - OCBookmark+AppExtensions: check if displayName and userName have at least one character before using them * - update SDK - add concept and property of activeQuery to QueryFileListTableViewController - adopt activeQuery in ClientQueryViewController to prevent QueryFileListTableViewController from controlling the customSearchQuery / run into conflicts - resolve issue where a "Stopped" status was displayed sometimes when returning from a revealed search result * - more differentiated status 503 handling (owncloud/enterprise#4476) via SDK update * - NSDate+ComputedTimes - add date parsing for strings following [year]-[[month][-[day]]] syntax - clarify all other method names - NSString+ByteCountParser: parse strings into byte counts, support TB, TiB, GB, GiB, MB, MiB, B and bytes-without-B - OCQueryCondition+SearchSegmenter - add support for localized keywords in local search - clean up keywords, removing kind-of-duplicates - add new keywords: - after: return items last modified after the given date - before: return items last modified before the given date - on: return items last modified on the given date - smaller: return items less than this size - greater: return items greater than this size * - Update SDK to fix Service Unavailable error handling * - update SDK to add item sync info scrubbing capabilities - address Xcode / linter warnings * OCQueryCondition+SearchSegmenter: - add full localization + normalization of keywords - add English and German localization * - update SDK - remove leftover code * - QueryFileListTableViewController: remove unneeded/conflicting searchScope initialization - added missing localizations * Code review suggestion for PR #933: - hide multiselect button, when search is active - use labels instead of images for search scope segmented control - changed more button width for better UI alignment - changed multiselect button width for better touch experience * - change search field placeholder depending on selected scope * - fixed showing and executing keyboard shortcuts when search is active in file list (was not shown, because action was not available in performing class) - added "Toggle Search Scope" keyboard shortcut - scroll file list to top, when search will be activated * - comment out parts of KeyCommands that seem to interfere with entry of search text, jumping to entries with the letters instead - scroll to top when results change - add support for negating search terms by prefixing them with "-", i.e. "-word" to exclude results with "word" in it * - disable keyboard shortcuts for letters, if search is active - make search field first responder, when toggle search scope * fixed search field cursor tint color * - logging improvements: use OCFileOpLog to log file operation in OCCore+BundleImport.m - update SDK * - fix finding (1) in #933 via SDK update * - fix misplaced sortbar (finding (3) in #933) * - OCQueryCondition+SearchSegmenter: accept more possible quotation marks when segmenting searches * OCQueryCondition+SearchSegmenter: allow inactivation of keywords through quotation, make it possible to still negate such searches * - remove accidentally entered ":" that prevented compilation * fixed QA finding (8): keyboard commands for search and sort order where missing in directory picker * - SortBar: new allowMultiSelect property to control whether multi select should be available, defaulting to true - QueryFileListTableViewController, ClientQueryViewController: allow efficient subclassing of relevant parts of the reveal feature - ClientDirectoryPickerViewController: provide implementations of relevant reveal subclassing points, disable multi-select (fixing finding (7) and (9) in #933) * - update SDK to add database support for ownerUserName - search segmenter: add support for owner keyword, incl. localization * fixed duplicated keyboard commands: changed keyboard command for toggle search order and share item * added changelog entry * Calens changelog updated Co-authored-by: Matthias Hühne <mhuehne@owncloud.com> Co-authored-by: hosy <hosy@users.noreply.github.com>
- Loading branch information
1 parent
3599282
commit 288a1c2
Showing
38 changed files
with
1,820 additions
and
214 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Change: Local account-wide search using custom queries | ||
|
||
User can switch between local folder or local account-wide search. | ||
Search terms and filter keywords can be combined inside the search field to get granular search results. | ||
|
||
https://github.com/owncloud/ios-app/issues/53 |
Submodule ios-sdk
updated
26 files
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
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
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
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
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
Oops, something went wrong.