Skip to content

[FEATURE REQUEST] Allow to go to the destination folder when the copy/move operation is finished#4802

Open
mykh-hailo wants to merge 3 commits intoowncloud:masterfrom
mykh-hailo:feat/copy_snack_bar
Open

[FEATURE REQUEST] Allow to go to the destination folder when the copy/move operation is finished#4802
mykh-hailo wants to merge 3 commits intoowncloud:masterfrom
mykh-hailo:feat/copy_snack_bar

Conversation

@mykh-hailo
Copy link
Contributor

@mykh-hailo mykh-hailo commented Mar 11, 2026

Related Issues

App: #4379

  • Add changelog files for the fixed issues in folder changelog/unreleased. More info here
  • Add feature to Release Notes in ReleaseNotesViewModel.kt creating a new ReleaseNote() with String resources (if required)

@mykh-hailo mykh-hailo force-pushed the feat/copy_snack_bar branch from 4c713b5 to b088f36 Compare March 11, 2026 03:45
@joragua
Copy link
Collaborator

joragua commented Mar 11, 2026

Thanks for your contribution @mykh-hailo! 🍻 Just a small note before the CR: please be careful with the branch name. The branch prefixes we use in the project are: feature/, fix/ , technical/ and improvement/. Do not forget to take a look to CONTRIBUTING.md to make sure everything follows the guidelines.

I will take care of this as soon as possible and I'll ping you when it's ready 😄

@mykh-hailo
Copy link
Contributor Author

@joragua I'd appreciate it if you share any feedback on the result.

@mykh-hailo
Copy link
Contributor Author

@joragua Can you check my PR please?

@joragua
Copy link
Collaborator

joragua commented Mar 16, 2026

@mykh-hailo I'll ping you when the CR is finished. Stay tuned! 😄

@mykh-hailo
Copy link
Contributor Author

@joragua Can you provide me any updates on this?
I like your fast feedback and update.
😄

@joragua
Copy link
Collaborator

joragua commented Mar 20, 2026

Hi @mykh-hailo! I'm working on the PR but it will not be available until next week. I'll ping you once it's done. No worries! 😄 Thanks for your patience!

Copy link
Collaborator

@joragua joragua left a comment

Choose a reason for hiding this comment

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

Nice job @mykh-hailo! 🙌🏻 Somme comments here.

NOTE: I'd add a release note since this is an important and useful improvement for end users. They should be aware of it this and see the new feature in the release notes screen. You can add a new entry in ReleaseNotesViewModel.kt with an appropriate title and subtitle. Let us know if you have any question about this process. 😄

Comment on lines +93 to +104
fun Activity.showSnackbarWithAction(
message: CharSequence,
action: () -> Unit,
actionText: CharSequence,
duration: Int = Snackbar.LENGTH_LONG,
layoutId: Int = android.R.id.content
) {
Snackbar.make(findViewById(layoutId), message, duration)
.setAction(actionText) { action() }
.show()
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think that there are more snackbars with actions in the app (the re-login snackbar), so you could use this method in those cases: FileDetailsFragment.kt and FileActivity.java Up to you! If not, we can address this in a future PR 😄

} else {
showMessageInSnackbar(R.id.list_layout, message)
}
copyMoveTargetFolder = null
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just a question: Is it necessary to set null at the end? Since the copyMoveTargetFolder value is set at the begin of requestMoveOperation and copyMoveOperation methods

<string name="copy_file_error">An error occurred while trying to copy this file or folder.</string>
<string name="copy_success_msg">The file has been copied</string>
<string name="move_success_msg">The file has been moved</string>
<string name="go_to_destination_folder">Go to target folder</string>
Copy link
Collaborator

Choose a reason for hiding this comment

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

IMO, this string is too long for a snackbar action. I'd say: Open folder. What do you think @jesmrec?

My suggestion:

<string name="open_folder_action">Open folder</string>

Copy link
Collaborator

Choose a reason for hiding this comment

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

Open folder sounds good. The first approach i suggested is more complete, but space is also reduced.

Comment on lines +554 to +555
<string name="copy_success_msg">The file has been copied</string>
<string name="move_success_msg">The file has been moved</string>
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd separate these strings into different blocks. There is one block for the move operation strings and a another for copy operation strings. I'd also re-write the strings like this:

<string name="move_file_correctly">File moved correctly</string>
...
<string name="copy_file_correctly">File copied correctly</string>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE REQUEST] Allow to go to the destination folder when the copy/move operation is finished

3 participants