Current behaviour:
It will require some actions:
BUGS & IMPROVEMENTS
If the link is edited in the Android app, the name is removed from the link in server side.
This is how the new UI design for the Share view is looking like, including support for the new multiple links feature.
Suggestions are welcome :wink:
New Share view | Dialog for creating a public link
:-------------------------:|:-------------------------:
| 
@michaelstingl @rperezb @jesmrec @davivel @nasli
@davigonz Looks nice. I would only set a little padding between "Users and Groups" and "Public links".
I would like to see as well:
but if you prefer, we can delay this to the QA stage. The look of the view is 馃憤
Starting QA stage.
First question:
By enabling the Password switch, the user is allowed to set the password empty. Server side behaves it in this way, but it is not using a switch. Why reason to do this?
(1)[FIXED] On the other hand (as impromevent), also related with password: when the Password switch is enabled, the soft keyboard should be displayed to avoid the user taps on the field to input the password. The same would be for Link namebut in this case, it should be displayed just before the view is opened.
@davivel @davigonz
The options to get link and to remove the link are close in the screen, and it is posible that someone mistakes and tap on remove instead of getting link. In this case, maybe useful to ask the user a confirmation of deletion if he/she taps on remove, as the server does.
About the following behaviour:
From here, switching the Password off is allowed, but saving the link. This is not a wrong behaviour, but it would be cooler if the user could not switch the Password off if the capability is enabled. If the user switches the option off, he sees it as disabled and is forced to enable it again to save the link. In this case the previous password is persisted, so i think it makes more sense not to allow to disable it, so that the value of the capability is already known.
Steps:
Set default expiration date Expiration off and tap on Save Current behaviour
Appears the Send linkview. Tapping on the back button, appears the calendar. Closing it (cancelling ok OKing) makes the app crash.
Expected behaviour
Expiration is disabled and link is saved without expiration
Huawei 6P v7.
Steps:
Set default expiration date and Enforce expirationExpiration off and tap on Save Current behaviour
The link is saved and happens the same behaviour as https://github.com/owncloud/android/issues/1928#issuecomment-299849323
Expected behaviour
Expiration is forced, link can not be saved.
Huawei 6P v7.
(6) [FIXED] In servers older than 10.0, the field Link Name did not exist. When a public link is created, this field is being shown and can be confusing for users that do not know the server feature.
Steps:
Current behaviour
'+' button is displayed and the user can tap on it, see the view to create a new public link and save (with any result).
Expected behaviour
'+' button is hidden because multiple share link is not available in servers <10
Huawei 6P v7.
In servers < 10, if a public link is already created the '+' button should be hidden. Right now is already displayed, and the user can tap on it, see the view to create a new public link and save (with any result).
'+' button should be shown when there are no public links so that the user can add a new one. When there is already a public link, the add button should be hidden. You mean that the + button is being shown even when there's already a public link?
About first question https://github.com/owncloud/android/issues/1928#issuecomment-299834718
By enabling the Password switch, the user is allowed to set the password empty. Server side behaves it in this way, but it is not using a switch. Why reason to do this?
Ease of development. We come from an implementation with switch, it's easier to keep the switch.
On the other hand (as impromevent), also related with password: when the Password switch is enabled, the soft keyboard should be displayed to avoid the user taps on the field to input the password.
Can be done.
The same would be for Link namebut in this case, it should be displayed just before the view is opened.
Could be done.
About confirmation of removal: https://github.com/owncloud/android/issues/1928#issuecomment-299839271
I wouldn't go that way. We can leave some more space between buttons, or think any other position for the cell layout, but confirmation dialogs are annoying. Web UI doesn't ask for confirmation.
Steps:
> to edit the linkCurrent behaviour
Link can not be saved due to an error Wrong or no update parameter given
Expected behaviour
Link can be updated.
Huawei 6P v7. Server 9.1.5
@davigonz
You mean that the + button is being shown even when there's already a public link?
Yes. Hidden or locked are good solutions. But the problem is that the Create link share view is shown when a public link is already created.
@davivel
I wouldn't go that way. We can leave some more space between buttons, or think any other >position for the cell layout, but confirmation dialogs are annoying. Web UI doesn't ask for >confirmation.
I understand, a bit of space can be useful in this issue.
Web UI asks for confirmation.
[WON'T FIX] In servers < 10, you are using the token (due to the lack of name) as well as in oC10 servers. This field makes no sense in oC9 and older. Difficult to meet a solution there.
Steps:
Set default expiration date Expiration off and tap on Save Current behaviour
Expiration is enabled
Expected behaviour
Expiration is disabled
Huawei 6P v7.
Server v10
Related to https://github.com/owncloud/android/issues/1928#issuecomment-299852941
The crash is fixed, but the link is still saved when the expiration is disabled.
In the device loses the connection (plane mode, for example), when you tap on Create, the error is Unknown host. In latest version, the error was The operation couldn't be completed. The server is unavailable.
Current behaviour
Buttons Canceland Save are almost vanished
Expected behaviour
Scroll view? to view the buttons
Server v10
Huawei 6P v7
When the public link is created, the server suggest as hint the name of the file in the field. What do you think about including it? @davivel @davigonz
In server < 10, create public link
Current behaviour: softkeyboard is raised
Expected behaviour: softkeyboard is not raised, so there is no textual fields in this case.
Huawei 6P v7
Problems with password or expiration date enforced in server are ready to be tested.
Current behaviour
App crashes
Expected behaviour
App is opened after typing the passcode
server v10
Huawei 6P v7
Current behaviour
Expiration is not set. In server either
Expected behaviour
Expiration is set. In server too.
NOTE: Caused by date format
server v10
@jesmrec , (15) ready to test now.
@jesmrec , library should be fixed now and phantom-bug about removal of name link in update also.
If Travis doesn't fail in https://github.com/owncloud/android-library/pull/163 we can resume QA.
Set default expiration date capabilitySet expiration date (already enabled with the default date)Current behaviour
Selected date in form is today
Expected behaviour
Selected date in form is the default one in server capability.
Server v10
Galaxy tab s v6
@jesmrec , current expiration date set as selected in the date picker.
In server, the default names are generated consecutively with numbers: (2), (3) etc...
Look at these steps:
Delete Photos link (3) and generate a new public link
Server: generates Photos link (3). Server fills gaps in the numbers
Android: generates Photos link (5).
In a device with small screen (for example MotoG 4,4) tap on + of User and groups
MotoG 4.4
Current behaviour
App crashes
Expected behaviour
Dialog to create new public link
server v10
Huawei 6P v7, Samsung Galaxy Tab S v6
@jesmrec , (18) ready to be tested; I changed search view to full screen, besides of fixing the layout of suggestions.
(17) ready to test too.
Current behaviour
App crashes
Expected behaviour
Orientation changed
server v10
Huawei 6P v7, Samsung Galaxy Tab S v6
Current behaviour: buttons Cancel and Saveare hidden behind the keyboard. Can not be tapped until keyboard is collapsed
Expected behaviour: Dialog can be scrolled (same as creation)
server v10
Huawei 6P v7
Taking it
Current: Expiration date disappears
Expected: Expiration date does not disappear
Approved, all fixed.