Skip to content

feat(mobile): unify asset grid multiselect actions - #5407

Merged
alextran1502 merged 6 commits into
mainfrom
feat/unify-asset-grid-actions
Dec 7, 2023
Merged

alextran1502 merged 6 commits into
mainfrom
feat/unify-asset-grid-actions

Conversation

@fyfrey

@fyfrey fyfrey commented Nov 30, 2023 •

Copy link
Copy Markdown
Collaborator

unify multiselect UI across home, partner assets and albums

  • extracted code for multiselect handling from home tab to new file
  • partner asset view and album view now provide the fancy bottom sheet previously only found on home tab
  • provide all allowed batch actions per view
  • e.g. users can now select assets in an album or partner view and add these to another album
  • multiselect favorite now also allows to unfavorite assets (when all select assets are already favs)
  • lots of code cleanup like new currentAlbumProvider and removal of isOwner & sharedAlbumId from Thumbnail (was only used to pass to gallery)
  • error-prone provider invalidation for album changes (like add asset) replaced with proper DB watcher
  • reduced code duplication e.g. sharing a selection is now unified as well (previously album had its own stuff)
  • net reduction in LOC: -200
  • maybe more that I forgot :-)
Screen Old New
Home image image
Partner image image
Album image image
Favorites image image
Archive image image

@fyfrey
fyfrey force-pushed the feat/unify-asset-grid-actions branch 4 times, most recently from cd08d82 to b589f6c Compare November 30, 2023 17:42
@tomikonieczny

Copy link
Copy Markdown

Nice to see improvements here.

What about keeping assets selection while switching between different views (ex. main list view and details view)? I aslo discovered the same issue while changing screen orientation - selection is gone.

@fyfrey

fyfrey commented Dec 1, 2023

Copy link
Copy Markdown
Collaborator Author

What about keeping assets selection while switching between different views (ex. main list view and details view)?

It's not possible to switch to another view while multi select it active.

I aslo discovered the same issue while changing screen orientation - selection is gone.

That's an issue that could already be fixed by this PR, or at least make it a lot easier to fix once this is merged. The selection state is now stored in a provider (that can "survive" an orientation change / rebuild)

@tomikonieczny

tomikonieczny commented Dec 1, 2023 •

Copy link
Copy Markdown

It's not possible to switch to another view while multi select it active.

So temporary solution could be multi select feature in details view too (easier to select proper asset having it in a full screen).

@fyfrey

fyfrey commented Dec 1, 2023

Copy link
Copy Markdown
Collaborator Author

So temporary solution could be multi select feature in details view too (easier to select proper asset having it in a full screen).

Multi select in a single image view makes no sense. Or you are speaking about some other detail view?
To make images larger/easier to select the right asset, you can already use pinch-to-zoom making the thumbnails up to half of the screen width.

I think this topic has nothing to do with this specific PR, please open a separate discussion for it in order to keep the conversation in this PR focused. Thank you.

@tomikonieczny

Copy link
Copy Markdown

Multi select in a single image view makes no sense. Or you are speaking about some other detail view?
To make images larger/easier to select the right asset, you can already use pinch-to-zoom making the thumbnails up to half of the screen width.

Last comment here: pitch-to-zoom would be good enough when one item per row with original ratio

@fyfrey
fyfrey force-pushed the feat/unify-asset-grid-actions branch from b589f6c to 127864e Compare December 7, 2023 08:56
@alextran1502
alextran1502 merged commit c25556b into main Dec 7, 2023
@alextran1502
alextran1502 deleted the feat/unify-asset-grid-actions branch December 7, 2023 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] no option on multi-select on local album in app (android)

3 participants