-
Notifications
You must be signed in to change notification settings - Fork 131
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
[feature/better-sidebar] Improved sidebar with account-wide search #1320
Conversation
- AccountControllerSearchViewController: new view controller for global search that's accessible from a new top-level sidebar item - AppDelegate, CreateDocumentAction, OpenInWebAction: register settings for OpenInWeb and CreateDocument so they turn up in the auto-generated MDM docs - OCSavedSearch: add support for copying - AccountController.Configuration: remove showQuickAccess and add new variables for new top-level items - SavedSearchCell: add support for new side button that allows setting an action (used for "Add to sidebar") - OCSavedSearch+Interactions: add support for new "Quick Access" search suggestions in AccountControllerSearchViewController - SearchViewController: allow customizing whether cancel buttons are shown or navigation buttons should be hidden - ClientItemViewController: refactor search suggestions list to allow expansion/modification by subclasses
|
Great new feature! Some ideas how to improve it:
Not sure if the What do you think @felix-schwarz ? |
- OCSavedSearch: add uuid and name to .dataItemVersion - OCVault+SavedSearches: add method updateSavedSearch for updating existing saved searches (f.ex. with a different name) - AccountController: - rename searchesFolder to globalSearch to signal the new position in the sidebar - present saved searches directly in the top level of the sidebar - add useFolderForSearches var to allow switching between a flat or folder-based presentation of saved searches in the sidebar - cleanup code - AccountControllerSearchViewController: remove added quick access searches from quick access list, remove entire Quick Access section if all quick access searches were added - SavedSearchCell: use gear-badged folder instead of gear icon for saved searches in the sidebar - CollectionViewController: preserve selection after non-animated snapshot updates - OCSavedSearch+Interactions: add "Rename" action to saved search context menu - ClientItemViewController: fix warning
- ShareExtensionViewController: auto-open first account if only one account has been created - OCSidebarItem: new class encapsulating custom user sidebar items, conforming to OCDataItem and OCDataItemVersioning - OCVault+SidebarItems: add user side bar item management - AccountController: - add saved searches and user sidebar items to configuration - add user sidebar items integration - BrowserNavigationBookmark+AccountController: add support for sidebar items, refine representationSideBarItemRefs to return more (fallback) references - Action: fix comment an identifier typos - CollectionViewController: - add new method for retrieving the most specific client context for an index path - use new method to provide correct client context for allowDropOperation and performDropOperation - OCLocation+Interactions: add new method for customized access to .openItem() - OCSidebarItem+Cell: adds a cell provider for custom user sidebar items - OCSidebarItem+Interactions: selection, swipe, context menu, drop and navigation restore support for OCSidebarItems - BrowserNavigationBookmark: add sidebarItem property, including archiving/unarchiving
…a per-section item for section fallback drop interaction handling
7903e56
to
b13e51c
Compare
471e584
to
30386e2
Compare
QA checks:
|
- only show action if item hasn't already been added to the sidebar - add custom icon with plus badge - RemoveFromSidebarAction: - new action - only show action if item has already been added to the sidebar - add custom icon with minus badge
@jesmrec Very good point. I have added a new "Remove from sidebar" action and made sure the app now shows the "Add to sidebar" and "Remove from sidebar" action as appropriate. |
done and fixed |
Approved... ready to go. |
…1320) * - update SDK to include OCItem.removed tracking fixes - AccountControllerSearchViewController: new view controller for global search that's accessible from a new top-level sidebar item - AppDelegate, CreateDocumentAction, OpenInWebAction: register settings for OpenInWeb and CreateDocument so they turn up in the auto-generated MDM docs - OCSavedSearch: add support for copying - AccountController.Configuration: remove showQuickAccess and add new variables for new top-level items - SavedSearchCell: add support for new side button that allows setting an action (used for "Add to sidebar") - OCSavedSearch+Interactions: add support for new "Quick Access" search suggestions in AccountControllerSearchViewController - SearchViewController: allow customizing whether cancel buttons are shown or navigation buttons should be hidden - ClientItemViewController: refactor search suggestions list to allow expansion/modification by subclasses * - update SDK to include version tracking change for KVO data source - OCSavedSearch: add uuid and name to .dataItemVersion - OCVault+SavedSearches: add method updateSavedSearch for updating existing saved searches (f.ex. with a different name) - AccountController: - rename searchesFolder to globalSearch to signal the new position in the sidebar - present saved searches directly in the top level of the sidebar - add useFolderForSearches var to allow switching between a flat or folder-based presentation of saved searches in the sidebar - cleanup code - AccountControllerSearchViewController: remove added quick access searches from quick access list, remove entire Quick Access section if all quick access searches were added - SavedSearchCell: use gear-badged folder instead of gear icon for saved searches in the sidebar - CollectionViewController: preserve selection after non-animated snapshot updates - OCSavedSearch+Interactions: add "Rename" action to saved search context menu - ClientItemViewController: fix warning * - update SDK to fix table creation issue * - update SDK - ShareExtensionViewController: auto-open first account if only one account has been created - OCSidebarItem: new class encapsulating custom user sidebar items, conforming to OCDataItem and OCDataItemVersioning - OCVault+SidebarItems: add user side bar item management - AccountController: - add saved searches and user sidebar items to configuration - add user sidebar items integration - BrowserNavigationBookmark+AccountController: add support for sidebar items, refine representationSideBarItemRefs to return more (fallback) references - Action: fix comment an identifier typos - CollectionViewController: - add new method for retrieving the most specific client context for an index path - use new method to provide correct client context for allowDropOperation and performDropOperation - OCLocation+Interactions: add new method for customized access to .openItem() - OCSidebarItem+Cell: adds a cell provider for custom user sidebar items - OCSidebarItem+Interactions: selection, swipe, context menu, drop and navigation restore support for OCSidebarItems - BrowserNavigationBookmark: add sidebarItem property, including archiving/unarchiving * - CollectionViewController/CollectionViewSection: add ability to add a per-section item for section fallback drop interaction handling * - AddToSidebarAction: - only show action if item hasn't already been added to the sidebar - add custom icon with plus badge - RemoveFromSidebarAction: - new action - only show action if item has already been added to the sidebar - add custom icon with minus badge --------- Co-authored-by: felix-schwarz <felix-schwarz@users.noreply.github.com>
Description
This PR:
Quick Access
from the sidebar, redistributing its prior contents as follows:Recents
: promoted to a top-level sidebar itemFavorites
: promoted to a top-level sidebar itemAvailable Offline
: promoted to a top-level sidebar itemSearch
item, with a dedicatedAdd to sidebar
button that allows re-adding the previous Quick Access items as saved searchAdd to sidebar
Related Issue
Screenshots (if appropriate):
Types of changes