stable

Clone or download

Read-only

Have dynamic SVG preview for Iterations

part of story #21793 configure Program Management How to test: Run `tuleap config-set feature_flag_program_management_display_iteration 1` to enable iterations With iterations feature flag activated: - after you choose an iterations tracker (or you had chosen it previously), when you edit the label for Iterations, the section name in the SVG preview will reflect it. - when you edit the label for the milestone type (sub-label), the "New" button's label and the example iterations' labels will reflect it. With iterations feature flag disabled: - There is no console error, preview for Program increments still works. No functional change expected when no team is selected (empty program). No functional change expected for Program increments preview. No functional change expected when selecting / clearing the Iterations tracker selector (label fields become enabled / disabled). Known issues: For all the following issues, I need design help to fix them: - The New button in the SVG is cut in the middle. - The french translations overflow from their boxes. - There is no box-shadow on the illustrations. Notes for reviewer: Entrypoint is in the index.ts file. Change-Id: I557ef15a5194fa753c0773c330dc7b314aa29285

Modified Files

Name
M plugins/program_management/scripts/admin/po/fr_FR.po +6 −0 Go to diff View file
M plugins/program_management/scripts/admin/src/dom/DocumentAdapter.test.ts +20 −19 Go to diff View file
M plugins/program_management/scripts/admin/src/dom/DocumentAdapter.ts +12 −9 Go to diff View file
A plugins/program_management/scripts/admin/src/dom/ElementAdapter.test.ts +73 −0 Go to diff View file
A plugins/program_management/scripts/admin/src/dom/ElementAdapter.ts +43 −0 Go to diff View file
M plugins/program_management/scripts/admin/src/dom/ReactiveLabel.test.ts +4 −4 Go to diff View file
M plugins/program_management/scripts/admin/src/dom/ReactiveLabel.ts +2 −2 Go to diff View file
M plugins/program_management/scripts/admin/src/dom/ReactiveLabelCollection.test.ts +4 −4 Go to diff View file
M plugins/program_management/scripts/admin/src/dom/ReactiveLabelCollection.ts +2 −2 Go to diff View file
R plugins/program_management/scripts/admin/src/dom/RetrieveNode.ts Go to diff View file
R plugins/program_management/scripts/admin/src/dom/RetrieveNodeStub.ts Go to diff View file
M plugins/program_management/scripts/admin/src/dom/RetrieveElement.ts +2 −0 Go to diff View file
M plugins/program_management/scripts/admin/src/dom/RetrieveElementStub.ts +23 −2 Go to diff View file
M plugins/program_management/scripts/admin/src/dom/TimeboxLabel.test.ts +27 −0 Go to diff View file
M plugins/program_management/scripts/admin/src/dom/TimeboxLabel.ts +12 −0 Go to diff View file
A plugins/program_management/scripts/admin/src/dom/TrackerSelector.test.ts +106 −0 Go to diff View file
A plugins/program_management/scripts/admin/src/dom/TrackerSelector.ts +40 −0 Go to diff View file
M plugins/program_management/scripts/admin/src/helper/init-preview-labels-helper.test.ts +1 −1 Go to diff View file
M plugins/program_management/scripts/admin/src/helper/init-preview-labels-helper.ts +42 −5 Go to diff View file
D plugins/program_management/scripts/admin/src/helper/iteration-labels-input-helper.test.ts +0 −82 Go to diff View file
D plugins/program_management/scripts/admin/src/helper/iteration-labels-input-helper.ts +0 −54 Go to diff View file
M plugins/program_management/scripts/admin/src/index.ts +1 −1 Go to diff View file
A plugins/program_management/scripts/admin/src/milestones/IterationActivator.test.ts +129 −0 Go to diff View file
A plugins/program_management/scripts/admin/src/milestones/IterationActivator.ts +51 −0 Go to diff View file
M plugins/program_management/scripts/admin/src/milestones/PreviewActualizer.test.ts +7 −7 Go to diff View file
M plugins/program_management/scripts/admin/src/milestones/PreviewActualizer.ts +3 −3 Go to diff View file
M plugins/program_management/scripts/admin/src/milestones/init-list-pickers-milestone-section.test.ts +0 −39 Go to diff View file
M plugins/program_management/scripts/admin/src/milestones/init-list-pickers-milestone-section.ts +0 −21 Go to diff View file
M plugins/program_management/site-content/fr_FR/LC_MESSAGES/tuleap-program_management.po +3 −0 Go to diff View file
M plugins/program_management/templates/admin/milestones/admin-configuration-iteration-section.mustache +43 −38 Go to diff View file
A plugins/program_management/templates/admin/milestones/iterations-illustration.mustache +241 −0 Go to diff View file