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

Add Files Action to Search #12209

Merged
merged 30 commits into from
Dec 14, 2023
Merged

Conversation

alperozturk96
Copy link
Collaborator

@alperozturk96 alperozturk96 commented Nov 28, 2023

Behaviour:
https://github.com/nextcloud/android/assets/67455295/d09e263c-4311-4391-8f99-57ed8e46e42f

This feature needed for this bugfix

  • Tests written, or not not needed

Signed-off-by: alperozturk <[email protected]>
@alperozturk96 alperozturk96 linked an issue Nov 28, 2023 that may be closed by this pull request
app/src/main/res/layout/unified_search_item.xml Outdated Show resolved Hide resolved
@JonasMayerDev
Copy link
Collaborator

When opening the "Files Action" from search for files in a folder, the top bar indicates / shows folder name as if it would be in this folder but is actually still in root / location where searching started. I think this is a relatively common issue, so could be not related to this PR... Maybe would still be nice to switch to the right folder? On the other hand it could also be good to not switch folders to make handling faster?...
Except this it seems to work fine for me.

Signed-off-by: alperozturk <[email protected]>
@alperozturk96
Copy link
Collaborator Author

When opening the "Files Action" from search for files in a folder, the top bar indicates / shows folder name as if it would be in this folder but is actually still in root / location where searching started. I think this is a relatively common issue, so could be not related to this PR... Maybe would still be nice to switch to the right folder? On the other hand it could also be good to not switch folders to make handling faster?... Except this it seems to work fine for me.

Top Bar title cleared when user tap to files action. You can check it.

Regarding other alternative which is showing files action directly inside the search fragment it's not easy because current search functionality in our project. When a user performs a search within a list, the app redirects them to a different fragment. Additionally, each search initiates a network call, and selecting a specific file requires users to navigate back to the previous screen, disrupting the user experience and obscuring the visual feedback provided by the application.
To enhance the user experience by creating a seamless search, selection, and file action process, several changes need to be made. In my opinion, the proposed solution adequately addresses these problems.

If you agree with this evaluation, please give your approval for the Pull Request so that we can proceed with bug fixes and further refinements.

Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
@tobiasKaminsky
Copy link
Member

tobiasKaminsky commented Nov 30, 2023

For me it does not work.
When clicking on "three dots" of a search item, it opens root folder in background.
This looks different in your video, and seems also be working for Jonas.

EDIT: after reviewing above video, it is the same.
So I think this is a bit wrong, as still the search view should be shown.
Imagine that an user accidently clicks on "three dots" for wrong file and then needs to search again.

@alperozturk96
Copy link
Collaborator Author

For me it does not work. When clicking on "three dots" of a search item, it opens root folder in background. This looks different in your video, and seems also be working for Jonas.

EDIT: after reviewing above video, it is the same. So I think this is a bit wrong, as still the search view should be shown. Imagine that an user accidently clicks on "three dots" for wrong file and then needs to search again.

It's same for selecting file. If user tap wrong file needs to search again. So the question has to be asked here are we going to change all search functionality with better selection and showing files action or do we leave the selection process as it is.

Given the current structure of the project, this solution seems appropriate.

Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
@alperozturk96
Copy link
Collaborator Author

/rebase

Signed-off-by: alperozturk <[email protected]>
@nextcloud-command nextcloud-command force-pushed the feature/files-action-in-search-mode branch from 940b700 to 5404a07 Compare November 30, 2023 10:01
@alperozturk96
Copy link
Collaborator Author

/rebase

2 similar comments
@alperozturk96
Copy link
Collaborator Author

/rebase

@alperozturk96
Copy link
Collaborator Author

/rebase

Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
…ode' into feature/files-action-in-search-mode

# Conflicts:
#	app/src/main/java/com/owncloud/android/ui/activity/FileDisplayActivity.java
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
Copy link

Codacy

Lint

TypemasterPR
Warnings7070
Errors33

SpotBugs

CategoryBaseNew
Bad practice2626
Correctness6868
Dodgy code360360
Experimental22
Internationalization99
Malicious code vulnerability22
Multithreaded correctness99
Performance5555
Security1818
Total549549

Copy link

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/12209.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.

Copy link
Collaborator

@JonasMayerDev JonasMayerDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me :)

@alperozturk96 alperozturk96 merged commit 397ac21 into master Dec 14, 2023
20 checks passed
@delete-merged-branch delete-merged-branch bot deleted the feature/files-action-in-search-mode branch December 14, 2023 14:18
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.

Visibility of Ellipsis Icon in Search Mode
4 participants