stable

Clone or download

Read-only

feat: Introduce dropdown for section

This dropdown will allow many actions on the current section * get the anchored link to the section so that I can share it with my BFF * go to the corresponding artifact * edit the section * remove the section For now only "go to artifact" and "edit" are available. Go to artifact: we decide to not display the artifact id (ids are too internal), and not display the tracker name (we are already seeing a "bug", we want to go to the artifact of the bug, not the bug) (this removes the management of plural of the tracker name: "Go to bugs"). Edit: the option is not available if user do not have the rights. The option is disabled if the section is already being edited. To avoid z-index nightmares, they are now centered in a common file, so that we don't have to search for every definition of z-index in the app. The dropdown can be accessed via keyboard ([Tab] [Tab] … then [Space]). Part of story #37543: edit Artidoc sections Change-Id: Ib1c100be959f69010b0dc39e2ee6cccf39930a77

Modified Files

Name
M plugins/artidoc/scripts/artidoc/package.json +1 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/pnpm-lock.yaml +3 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/po/fr_FR.po +9 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/DocumentContent.vue +6 −4 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/SectionContent.test.ts +6 −6 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/SectionContent.vue +8 −7 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/SectionDescriptionEditor.vue +3 −1 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/SectionEditorCta.test.ts +18 −12 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/SectionEditorCta.vue +94 −8 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/SectionFooter.vue +3 −1 Go to diff View file
R plugins/artidoc/scripts/artidoc/src/components/SectionTitleWithArtifactId.test.ts Go to diff View file
R plugins/artidoc/scripts/artidoc/src/components/SectionTitleWithArtifactId.vue Go to diff View file
R plugins/artidoc/scripts/artidoc/src/components/SectionTitleWithArtifactIdSkeleton.test.ts Go to diff View file
R plugins/artidoc/scripts/artidoc/src/components/SectionTitleWithArtifactIdSkeleton.vue Go to diff View file
A plugins/artidoc/scripts/artidoc/src/themes/includes/_whitespace.scss +20 −0 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/themes/includes/_zindex.scss +28 −0 Go to diff View file
M plugins/artidoc/tests/e2e/cypress/cypress/e2e/artidoc.cy.ts +1 −1 Go to diff View file