-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 cancel / create button on fileMenu form #39056
Conversation
TODO:
|
40072ad
to
423c249
Compare
some visual guidance would be nice, i.e. visualize "create" as the primary action and cancel as the secondary action. I could not find a secondary-styled button in oc classic, but in the "create link" dialog we have a blue primary button which would have the same effect. --> could you use the blue styling for the create-button? |
@tbsbdr i already updated this pr with blue confirm button |
423c249
to
69aac79
Compare
@mmattel at first glance, we don't need a docs issue |
@phil-davis should we create acceptance tests or are the js tests already satisfying ? |
@janackermann the current acceptance tests "hit enter" to create a folder (or a text file). Do you want to do that? Or will I get someone to do it? (Also, I see that the "Text File" option also has the new Cancel and Create buttons. Similar scenarios could be added to files_texteditor to test those) |
We can do it.
From technically POV this is core functionality and behaves the same on files_texteditor and so on, IHMO no separated tests for apps needed |
8c5b9fb
to
ee1d0f7
Compare
Fails |
Question is why, locally everything works fine 🤔 Edit: Actually, no, the test-php-style-fix does not complain. test-php-style does. |
The extra style checker for the acceptance test code does not have an automatic fixer. |
5fe7b95
to
310bbb9
Compare
💥 Acceptance tests pipeline apiCapabilities-mariadb10.2-php7.4 failed. The build has been cancelled. |
💥 Acceptance tests pipeline apiProvisioningGroups-v2-mariadb10.2-php7.4 failed. The build has been cancelled. |
💥 Acceptance tests pipeline apiAuthOcs-mariadb10.2-php7.4 failed. The build has been cancelled. |
Okay we really need to fix #39046, this starts to get annoying... |
Looks good - you could squash the 8 commits. |
Thanks, squashed into two, for easy patching |
d44722f
to
214e1f4
Compare
💥 Acceptance tests pipeline cliBackground-mariadb10.2-php7.4 failed. The build has been cancelled. |
💥 Acceptance tests pipeline apiWebdavLocks2-mariadb10.2-php7.4 failed. The build has been cancelled. |
💥 Acceptance tests pipeline apiAuthWebDav-mariadb10.2-php7.4 failed. The build has been cancelled. |
💥 Acceptance tests pipeline cliProvisioning-mariadb10.2-php7.4 failed. The build has been cancelled. |
💥 Acceptance tests pipeline apiProvisioning-v2-mariadb10.2-php7.4 failed. The build has been cancelled. |
💥 Acceptance tests pipeline apiMain-mariadb10.2-php7.4 failed. The build has been cancelled. |
💥 Acceptance tests pipeline apiTranslation-mariadb10.2-php7.4 failed. The build has been cancelled. |
💥 Acceptance tests pipeline apiSharees-mariadb10.2-php7.4 failed. The build has been cancelled. |
💥 Acceptance tests pipeline apiWebdavUpload1-mariadb10.2-php7.4 failed. The build has been cancelled. |
💥 Acceptance tests pipeline apiShareManagementBasicToShares-mariadb10.2-php7.4 failed. The build has been cancelled. |
💥 Acceptance tests pipeline apiWebdavProperties2-mariadb10.2-php7.4 failed. The build has been cancelled. |
💥 Acceptance tests pipeline apiWebdavPreviews-mariadb10.2-php7.4 failed. The build has been cancelled. |
💥 Acceptance tests pipeline apiSharePublicLink1-mariadb10.2-php7.4 failed. The build has been cancelled. |
💥 Acceptance tests pipeline apiShareOperationsToShares2-mariadb10.2-php7.4 failed. The build has been cancelled. |
💥 Acceptance tests pipeline apiShareReshareToShares3-mariadb10.2-php7.4 failed. The build has been cancelled. |
💥 Acceptance tests pipeline apiFederationToShares1-10.6.0-mariadb10.2-php7.4 failed. The build has been cancelled. |
💥 Acceptance tests pipeline apiFederationToRoot1-git-mariadb10.2-php7.4 failed. The build has been cancelled. |
💥 Acceptance tests pipeline apiFederationToShares1-latest-mariadb10.2-php7.4 failed. The build has been cancelled. |
💥 Acceptance tests pipeline cliMain-mariadb10.2-php7.4 failed. The build has been cancelled. |
💥 Acceptance tests pipeline cliAppManagement-mariadb10.2-php7.4 failed. The build has been cancelled. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm - thanks!!
Kudos, SonarCloud Quality Gate passed! |
Description
Enhancement: Show create and cancel buttons in the 'New file menu'
If the user hits the '+' button in the UI, a context menu will be shown,
where the user is able to choose for example 'Directory'.
A form will show up to set the new directory name, the user needs to confirm
by hitting the enter key.
This might not been understood by every user at the first glance.
Therefore, with this PR a create and cancel button has been added.
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: