Skip to content

[FEATURE REQUEST] Create new file via Open in Web#4023

Merged
JuancaG05 merged 11 commits into
masterfrom
feature/create_file_web
May 4, 2023
Merged

[FEATURE REQUEST] Create new file via Open in Web#4023
JuancaG05 merged 11 commits into
masterfrom
feature/create_file_web

Conversation

@JuancaG05

@JuancaG05 JuancaG05 commented Apr 25, 2023

Copy link
Copy Markdown
Contributor

Related Issues

App: #3995

Library PR (if needed): owncloud/android-library#562

  • Added changelog files for the fixed issues in folder changelog/unreleased. More info here

QA

Test plan: https://github.com/owncloud/QA/blob/master/Mobile/Android/Release_4.0/New%20Document%20-%20FAB.md

Reports:

@JuancaG05 JuancaG05 self-assigned this Apr 25, 2023
@JuancaG05 JuancaG05 linked an issue Apr 25, 2023 that may be closed by this pull request
14 tasks
@JuancaG05 JuancaG05 requested a review from jabarros April 25, 2023 12:45
@JuancaG05 JuancaG05 force-pushed the feature/create_file_web branch from 8ca4c6b to 6f035e9 Compare May 2, 2023 08:13

@jabarros jabarros left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Good work!

@jesmrec

jesmrec commented May 3, 2023

Copy link
Copy Markdown
Contributor

(1) [server related]

  1. Using FAB, create a new document using a file name that already exists in the current folder

Current: File could not be created because permission error

Expected: i guess that such message happens because lack of permissions somehow. Maybe, it could be prevented by detecting that the name already exists. Web client does not allow to create duplicated names:

Screenshot 2023-05-03 at 10 56 04

could we do something about this?

Pixel2, Android 12
17fb17499

@jesmrec

jesmrec commented May 3, 2023

Copy link
Copy Markdown
Contributor

(2) [SOLVED]

question about the thumbnails in Pick document type to create bottom sheet.

I could only create presentation, sharesheet and document files, in which, afaik, the icon is got from the app. Will this work for any type? for example, if an app provider supports txt files, will the txt file thumbnail be there?

if a server supports a type of file for which we don't have a thumbnail, will we show the placeholder like in list of files?

@jesmrec

jesmrec commented May 3, 2023

Copy link
Copy Markdown
Contributor

(3) (improvement - not blocker)

  1. Create new document including forbidden characters like "/" or "\"

Current: Dialog closes and error message in snackbar: File name contains at least one forbidden character

This is a valid approach, but, i compared this with same error in dialog when sharing text from outside:

Screenshot 2023-05-03 at 12 44 38

same approach in web.

Advantage: user has the clue about what was wrong. With current approach, user must type again the whole name, guessing which one is the forbidden error. Likely, user could make another mistake.

Since this is also reproducible in the "Create folder" dialog, is not totally related to this issue and could be addressed to another issue.

Pixel2, Android 12
17fb17499

@JuancaG05

Copy link
Copy Markdown
Contributor Author

About (1): it comes from this bug in the server owncloud/ocis#6140
About (2): exactly, the icon comes from the app. In the case of any other type supported by the app, the thumbnail will be the same as in the file list since the method to obtain it is the same. If we don't have a thumbnail for some kind of file type, the default one will be shown, just like in the file list.
About (3): it would be nice to have, I would move it to another issue 👍

@jesmrec

jesmrec commented May 3, 2023

Copy link
Copy Markdown
Contributor

(1) will wait for server fix
(2) thanks for clarifying
(3) new issue -> #4031

@jesmrec

jesmrec commented May 3, 2023

Copy link
Copy Markdown
Contributor

Approved on my side

@JuancaG05 JuancaG05 force-pushed the feature/create_file_web branch from 17fb174 to e1423de Compare May 4, 2023 06:51
@JuancaG05 JuancaG05 merged commit 1e19867 into master May 4, 2023
@JuancaG05 JuancaG05 deleted the feature/create_file_web branch May 4, 2023 07:11
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.

[FEATURE REQUEST] Create new file via Open in Web

3 participants