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

Fix some minor settings UI issues #10028

Merged
merged 6 commits into from
Jun 29, 2018
Merged

Conversation

juliushaertl
Copy link
Member

@juliushaertl juliushaertl commented Jun 27, 2018

  • Move social icons to the personal settings (as discussed with @karlitschek)
    image
  • Add left padding to icons in the security session list
  • Fix layout for adding collaborative tags
    Before:
    image
    After:
    image
    image
  • Improve description for collaborative tags

Collaborative tags are available for all users. Restricted tags are visible to users but cannot be assigned by them. Invisible tags are for internal use, since users cannot see or assign them.

  • Minor alignment fix for automated tagging
    Before:
    image
    After:
    image

Once we have some docs about the collaborative tags we should also add a link to that in the settings. nextcloud/documentation#789

@juliushaertl juliushaertl added design Design, UI, UX, etc. 2. developing Work in progress papercut Annoying recurring issue with possibly simple fix. feature: settings labels Jun 27, 2018
@juliushaertl juliushaertl added this to the Nextcloud 14 milestone Jun 27, 2018
@karlitschek
Copy link
Member

nice 👍

@codecov
Copy link

codecov bot commented Jun 28, 2018

Codecov Report

Merging #10028 into master will not change coverage.
The diff coverage is 0%.

@@            Coverage Diff            @@
##             master   #10028   +/-   ##
=========================================
  Coverage     31.72%   31.72%           
  Complexity    26007    26007           
=========================================
  Files          1661     1660    -1     
  Lines         96132    96132           
  Branches       1290     1290           
=========================================
  Hits          30494    30494           
  Misses        65638    65638
Impacted Files Coverage Δ Complexity Δ
lib/private/Settings/Manager.php 63.57% <0%> (ø) 41 <0> (ø) ⬇️
lib/private/Settings/Personal/ServerDevNotice.php 0% <0%> (ø) 3 <0> (?)
apps/workflowengine/templates/admin.php 0% <0%> (ø) 0 <0> (ø) ⬇️
...templates/settings/personal/development.notice.php 0% <0%> (ø) 0 <0> (?)
apps/systemtags/templates/admin.php 0% <0%> (ø) 0 <0> (ø) ⬇️

@juliushaertl juliushaertl added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Jun 28, 2018
@juliushaertl juliushaertl force-pushed the feature/noid/settings-papercuts branch from 3a12b29 to 845fe15 Compare June 28, 2018 11:44
Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

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

I like it and it works 👍

@MorrisJobke
Copy link
Member

Unit tests fail and it needs to be merged: Please run: php build/mergejs.php

@MorrisJobke MorrisJobke added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Jun 28, 2018
@juliushaertl juliushaertl force-pushed the feature/noid/settings-papercuts branch from 845fe15 to 6d59a82 Compare June 28, 2018 20:06
@juliushaertl
Copy link
Member Author

@MorrisJobke Fixed the CI failure. The current one seems unrelated to me in acceptance-app-files https://drone.nextcloud.com/nextcloud/server/8517/230

Since the js merge is not related i moved it to #10043

@juliushaertl juliushaertl added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Jun 28, 2018
@skjnldsv
Copy link
Member

Failure unrelated it seems :)

@juliushaertl juliushaertl force-pushed the feature/noid/settings-papercuts branch from 6d59a82 to ea45519 Compare June 29, 2018 07:03
Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

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

Tested and works 👍

@MorrisJobke MorrisJobke added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Jun 29, 2018
@MorrisJobke
Copy link
Member

It seems that the acceptance test are broken then:

  Scenario: create tags using the Administration settings                                    # /drone/src/github.com/nextcloud/server/tests/acceptance/features/app-files.feature:167
    Given I am logged in as the admin                                                        # LoginPageContext::iAmLoggedInAsTheAdmin()
    And I visit the settings page                                                            # SettingsMenuContext::iVisitTheSettingsPage()
    And I open the "Workflow" section                                                        # AppNavigationContext::iOpenTheSection()
    And I see that the button to select tags is shown                                        # SettingsContext::iSeeThatTheButtonToSelectTagsIsShown()
    When I create the tag "tag1" in the settings                                             # SettingsContext::iCreateTheTagInTheSettings()
      │ Reset button in system tags section in Administration Settings could not be clicked
      │ Exception message: Offset within element cannot be scrolled into view: (16, 16): 
      │ Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:37:03'
      │ System info: host: '62d11aeaa494', ip: '172.17.0.24', os.name: 'Linux', os.arch: 'amd64', os.version: '4.15.0-22-generic', java.version: '1.8.0_91'
      │ Driver info: driver.version: unknown
      │ Trying again
      │ 
      Offset within element cannot be scrolled into view: (16, 16): 
      Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:37:03'
      System info: host: '62d11aeaa494', ip: '172.17.0.24', os.name: 'Linux', os.arch: 'amd64', os.version: '4.15.0-22-generic', java.version: '1.8.0_91'
      Driver info: driver.version: unknown (WebDriver\Exception\MoveTargetOutOfBounds)
    Then I see that the dropdown for tags in the settings eventually contains the tag "tag1" # SettingsContext::iSeeThatTheDropdownForTagsInTheSettingsEventuallyContainsTheTag()

  Scenario: add tags using the dropdown in the details view                                 # /drone/src/github.com/nextcloud/server/tests/acceptance/features/app-files.feature:178
    Given I am logged in as the admin                                                       # LoginPageContext::iAmLoggedInAsTheAdmin()
    And I visit the settings page                                                           # SettingsMenuContext::iVisitTheSettingsPage()
    And I open the "Workflow" section                                                       # AppNavigationContext::iOpenTheSection()
    And I see that the button to select tags is shown                                       # SettingsContext::iSeeThatTheButtonToSelectTagsIsShown()
    And I create the tag "tag1" in the settings                                             # SettingsContext::iCreateTheTagInTheSettings()
      │ Reset button in system tags section in Administration Settings could not be clicked
      │ Exception message: Offset within element cannot be scrolled into view: (16, 16): 
      │ Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:37:03'
      │ System info: host: '62d11aeaa494', ip: '172.17.0.24', os.name: 'Linux', os.arch: 'amd64', os.version: '4.15.0-22-generic', java.version: '1.8.0_91'
      │ Driver info: driver.version: unknown
      │ Trying again
      │ 
      Offset within element cannot be scrolled into view: (16, 16): 
      Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:37:03'
      System info: host: '62d11aeaa494', ip: '172.17.0.24', os.name: 'Linux', os.arch: 'amd64', os.version: '4.15.0-22-generic', java.version: '1.8.0_91'
      Driver info: driver.version: unknown (WebDriver\Exception\MoveTargetOutOfBounds)
    And I create the tag "tag2" in the settings                                             # SettingsContext::iCreateTheTagInTheSettings()
    And I create the tag "tag3" in the settings                                             # SettingsContext::iCreateTheTagInTheSettings()
    And I create the tag "tag4" in the settings                                             # SettingsContext::iCreateTheTagInTheSettings()
    And I see that the dropdown for tags in the settings eventually contains the tag "tag1" # SettingsContext::iSeeThatTheDropdownForTagsInTheSettingsEventuallyContainsTheTag()
    And I see that the dropdown for tags in the settings eventually contains the tag "tag2" # SettingsContext::iSeeThatTheDropdownForTagsInTheSettingsEventuallyContainsTheTag()
    And I see that the dropdown for tags in the settings eventually contains the tag "tag3" # SettingsContext::iSeeThatTheDropdownForTagsInTheSettingsEventuallyContainsTheTag()
    And I see that the dropdown for tags in the settings eventually contains the tag "tag4" # SettingsContext::iSeeThatTheDropdownForTagsInTheSettingsEventuallyContainsTheTag()
    And I log out                                                                           # SettingsMenuContext::iLogOut()
    And I am logged in                                                                      # LoginPageContext::iAmLoggedIn()
    And I open the details view for "welcome.txt"                                           # FileListContext::iOpenTheDetailsViewFor()
    And I open the input field for tags in the details view                                 # FilesAppContext::iOpenTheInputFieldForTagsInTheDetailsView()
    When I check the tag "tag2" in the dropdown for tags in the details view                # FilesAppContext::iCheckTheTagInTheDropdownForTagsInTheDetailsView()
    And I check the tag "tag4" in the dropdown for tags in the details view                 # FilesAppContext::iCheckTheTagInTheDropdownForTagsInTheDetailsView()
    Then I see that the tag "tag2" in the dropdown for tags in the details view is checked  # FilesAppContext::iSeeThatTheTagInTheDropdownForTagsInTheDetailsViewIsChecked()
    And I see that the tag "tag4" in the dropdown for tags in the details view is checked   # FilesAppContext::iSeeThatTheTagInTheDropdownForTagsInTheDetailsViewIsChecked()
    And I see that the input field for tags in the details view contains the tag "tag2"     # FilesAppContext::iSeeThatTheInputFieldForTagsInTheDetailsViewContainsTheTag()
    And I see that the input field for tags in the details view contains the tag "tag4"     # FilesAppContext::iSeeThatTheInputFieldForTagsInTheDetailsViewContainsTheTag()

  Scenario: remove tags using the dropdown in the details view                                  # /drone/src/github.com/nextcloud/server/tests/acceptance/features/app-files.feature:206
    Given I am logged in as the admin                                                           # LoginPageContext::iAmLoggedInAsTheAdmin()
    And I visit the settings page                                                               # SettingsMenuContext::iVisitTheSettingsPage()
    And I open the "Workflow" section                                                           # AppNavigationContext::iOpenTheSection()
    And I see that the button to select tags is shown                                           # SettingsContext::iSeeThatTheButtonToSelectTagsIsShown()
    And I create the tag "tag1" in the settings                                                 # SettingsContext::iCreateTheTagInTheSettings()
      │ Reset button in system tags section in Administration Settings could not be clicked
      │ Exception message: Offset within element cannot be scrolled into view: (16, 16): 
      │ Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:37:03'
      │ System info: host: '62d11aeaa494', ip: '172.17.0.24', os.name: 'Linux', os.arch: 'amd64', os.version: '4.15.0-22-generic', java.version: '1.8.0_91'
      │ Driver info: driver.version: unknown
      │ Trying again
      │ 
      Offset within element cannot be scrolled into view: (16, 16): 
      Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:37:03'
      System info: host: '62d11aeaa494', ip: '172.17.0.24', os.name: 'Linux', os.arch: 'amd64', os.version: '4.15.0-22-generic', java.version: '1.8.0_91'
      Driver info: driver.version: unknown (WebDriver\Exception\MoveTargetOutOfBounds)
    And I create the tag "tag2" in the settings                                                 # SettingsContext::iCreateTheTagInTheSettings()
    And I create the tag "tag3" in the settings                                                 # SettingsContext::iCreateTheTagInTheSettings()
    And I create the tag "tag4" in the settings                                                 # SettingsContext::iCreateTheTagInTheSettings()
    And I see that the dropdown for tags in the settings eventually contains the tag "tag1"     # SettingsContext::iSeeThatTheDropdownForTagsInTheSettingsEventuallyContainsTheTag()
    And I see that the dropdown for tags in the settings eventually contains the tag "tag2"     # SettingsContext::iSeeThatTheDropdownForTagsInTheSettingsEventuallyContainsTheTag()
    And I see that the dropdown for tags in the settings eventually contains the tag "tag3"     # SettingsContext::iSeeThatTheDropdownForTagsInTheSettingsEventuallyContainsTheTag()
    And I see that the dropdown for tags in the settings eventually contains the tag "tag4"     # SettingsContext::iSeeThatTheDropdownForTagsInTheSettingsEventuallyContainsTheTag()
    And I log out                                                                               # SettingsMenuContext::iLogOut()
    And I am logged in                                                                          # LoginPageContext::iAmLoggedIn()
    And I open the details view for "welcome.txt"                                               # FileListContext::iOpenTheDetailsViewFor()
    And I open the input field for tags in the details view                                     # FilesAppContext::iOpenTheInputFieldForTagsInTheDetailsView()
    And I check the tag "tag2" in the dropdown for tags in the details view                     # FilesAppContext::iCheckTheTagInTheDropdownForTagsInTheDetailsView()
    And I check the tag "tag4" in the dropdown for tags in the details view                     # FilesAppContext::iCheckTheTagInTheDropdownForTagsInTheDetailsView()
    And I check the tag "tag3" in the dropdown for tags in the details view                     # FilesAppContext::iCheckTheTagInTheDropdownForTagsInTheDetailsView()
    When I uncheck the tag "tag2" in the dropdown for tags in the details view                  # FilesAppContext::iUncheckTheTagInTheDropdownForTagsInTheDetailsView()
    And I uncheck the tag "tag4" in the dropdown for tags in the details view                   # FilesAppContext::iUncheckTheTagInTheDropdownForTagsInTheDetailsView()
    Then I see that the tag "tag2" in the dropdown for tags in the details view is not checked  # FilesAppContext::iSeeThatTheTagInTheDropdownForTagsInTheDetailsViewIsNotChecked()
    And I see that the tag "tag4" in the dropdown for tags in the details view is not checked   # FilesAppContext::iSeeThatTheTagInTheDropdownForTagsInTheDetailsViewIsNotChecked()
    And I see that the tag "tag3" in the dropdown for tags in the details view is checked       # FilesAppContext::iSeeThatTheTagInTheDropdownForTagsInTheDetailsViewIsChecked()
    And I see that the input field for tags in the details view does not contain the tag "tag2" # FilesAppContext::iSeeThatTheInputFieldForTagsInTheDetailsViewDoesNotContainTheTag()
    And I see that the input field for tags in the details view does not contain the tag "tag4" # FilesAppContext::iSeeThatTheInputFieldForTagsInTheDetailsViewDoesNotContainTheTag()
    And I see that the input field for tags in the details view contains the tag "tag3"         # FilesAppContext::iSeeThatTheInputFieldForTagsInTheDetailsViewContainsTheTag()

@danxuliu Could you help with that?

@MorrisJobke MorrisJobke added 2. developing Work in progress and removed 4. to release Ready to be released and/or waiting for tests to finish labels Jun 29, 2018
@juliushaertl
Copy link
Member Author

juliushaertl commented Jun 29, 2018

Seems that is was caused by the reset button being hidden, but it makes sense to keep it, so you can abort the action before you create a new tag. Let's see if that works.

@danxuliu
Copy link
Member

Seems that is was caused by the reset button being hidden,

Indeed; before a new tag is created the reset button was clicked to ensure that no tag was being updated (there is currently no test in which that could happen, but it was added just to be sure). As the reset button was hidden it could not be clicked and the test failed.

but it makes sense to keep it, so you can abort the action before you create a new tag.

I was going to remove the click on the reset button instead, but you are right in that it makes sense to keep it visible 👍

Let's see if that works.

It does :-)

@danxuliu danxuliu added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Jun 29, 2018
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
@rullzer
Copy link
Member

rullzer commented Jun 29, 2018

Rebased for CI

@rullzer rullzer force-pushed the feature/noid/settings-papercuts branch from 1c60fc3 to 94dcddc Compare June 29, 2018 12:12
@MorrisJobke MorrisJobke merged commit c76c8a6 into master Jun 29, 2018
@MorrisJobke MorrisJobke deleted the feature/noid/settings-papercuts branch June 29, 2018 12:38
@jancborchardt
Copy link
Member

@juliushaertl just a small comment on the collaborative tags UI: Seeing as there are 3 icons without label, the "Delete" and "Reset" buttons should be in a 3-dot-menu, no?

@juliushaertl
Copy link
Member Author

@jancborchardt I'd say this is a special case, since the user is already in edit mode when this ui is shown. Therefore those 3 actions are equally important and we cannot determine a default action which will always be used. So having all those in a 3 dot menu would lead to one additional click for any action the user would take.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews design Design, UI, UX, etc. feature: settings papercut Annoying recurring issue with possibly simple fix.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants