stable

Clone or download

Read-only

feat: Simplify new item creation modal

In the context of ONLYOFFICE integration, the creation of spreadsheet, word, or presentation documents forces us to update the item creation modal: include of OO types in the existing type selector at the top of the modal would be complicated. Therefore we now remove this type selector and the user must select the right type of item beforehand, via a dropdown. This dropdown is dispayled as a regular dropdown under a dedicated "+ New" button (folder header, quick look, empty state), or as a sub-dropdown when the "+ New" is in the existing dropdown (e.g tree view, search). In order to not clutter this review, please note that: * Minimal effort has been made in the styling (ellipsis button, caret for submenu, submenu position, …). Application should not appear broken but needs polishing. * QuickLook action buttons need homogenization between item types * Creation of a new version for an empty document should be based also of the new dropdown Part of story #28273: create OnlyOffice documents Change-Id: I695352bd30bddda5f9388c86628a8b2fb28633e5

Modified Files

Name
M lib/frontend/tlp-dropdown/src/dropdowns.ts +2 −0 Go to diff View file
M lib/frontend/tlp-dropdown/themes/style.scss +37 −34 Go to diff View file
M plugins/document/scripts/document/components/EmbeddedDisplay/ActionsHeader.vue +17 −19 Go to diff View file
D plugins/document/scripts/document/components/Folder/ActionsButton/NewItemButton.test.ts +0 −50 Go to diff View file
D plugins/document/scripts/document/components/Folder/ActionsButton/NewItemButton.vue +0 −42 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/DropDownButton.test.ts +1 −2 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/DropDownButton.vue +4 −4 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/DropDownCurrentFolder.test.ts +0 −12 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/DropDownCurrentFolder.vue +0 −8 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/DropDownMenu.vue +0 −1 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/DropDownMenuTreeView.vue +3 −5 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/DropDownQuickLook.test.ts +0 −7 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/DropDownQuickLook.vue +1 −8 Go to diff View file
D plugins/document/scripts/document/components/Folder/DropDown/NewDocument/NewDocument.test.ts +0 −66 Go to diff View file
D plugins/document/scripts/document/components/Folder/DropDown/NewDocument/NewDocument.vue +0 −53 Go to diff View file
A plugins/document/scripts/document/components/Folder/DropDown/NewDocument/NewItemDropdown.test.ts +85 −0 Go to diff View file
A plugins/document/scripts/document/components/Folder/DropDown/NewDocument/NewItemDropdown.vue +67 −0 Go to diff View file
A plugins/document/scripts/document/components/Folder/DropDown/NewDocument/NewItemMenuOptions.test.ts +146 −0 Go to diff View file
A plugins/document/scripts/document/components/Folder/DropDown/NewDocument/NewItemMenuOptions.vue +118 −0 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/NewDocument/NewItemModal.vue +1 −4 Go to diff View file
A plugins/document/scripts/document/components/Folder/DropDown/NewDocument/NewItemSubmenu.vue +91 −0 Go to diff View file
D plugins/document/scripts/document/components/Folder/DropDown/NewDocument/TypeSelector.vue +0 −112 Go to diff View file
D plugins/document/scripts/document/components/Folder/DropDown/NewFolderSecondaryAction.test.ts +0 −63 Go to diff View file
D plugins/document/scripts/document/components/Folder/DropDown/NewFolderSecondaryAction.vue +0 −52 Go to diff View file
M plugins/document/scripts/document/components/Folder/EmptyState/EmptyFolderForWriters.vue +3 −18 Go to diff View file
M plugins/document/scripts/document/components/Folder/FolderHeaderAction.vue +4 −5 Go to diff View file
M plugins/document/scripts/document/components/Folder/ItemTitle/LinkCellTitle.vue +1 −1 Go to diff View file
M plugins/document/scripts/document/components/Folder/ItemTitle/__snapshots__/LinkCellTitle.test.ts.snap +1 −1 Go to diff View file
M plugins/document/scripts/document/components/QuickLook/QuickLookFolder.test.ts +0 −20 Go to diff View file
M plugins/document/scripts/document/components/QuickLook/QuickLookFolder.vue +6 −13 Go to diff View file
M plugins/document/scripts/document/constants.ts +5 −5 Go to diff View file
M plugins/document/scripts/document/helpers/emitter.ts +2 −1 Go to diff View file
M plugins/document/scripts/document/po/fr_FR.po +9 −0 Go to diff View file
M plugins/document/scripts/document/po/pt_BR.po +9 −0 Go to diff View file
M plugins/document/scripts/document/type.ts +19 −1 Go to diff View file
M plugins/document/tests/e2e/cypress/cypress/e2e/document.cy.ts +9 −14 Go to diff View file
M plugins/document/tests/e2e/cypress/cypress/e2e/filename-pattern.cy.ts +6 −2 Go to diff View file
M plugins/document/tests/e2e/cypress/cypress/e2e/keyboard-navigation.cy.ts +3 −1 Go to diff View file
M plugins/document/tests/e2e/cypress/cypress/e2e/phpwiki.cy.ts +1 −2 Go to diff View file
M plugins/document/tests/e2e/cypress/cypress/e2e/search.cy.ts +1 −2 Go to diff View file
A plugins/document/themes/_dropdown-button.scss +23 −0 Go to diff View file
M plugins/document/themes/document.scss +1 −0 Go to diff View file
M src/scripts/main/src/tlp-doc/src/editors.js +12 −0 Go to diff View file
M src/www/tlp-doc/index.php +1 −1 Go to diff View file
M src/www/tlp-doc/resources/flyover/dropdowns/example.html +18 −3 Go to diff View file