stable

Clone or download

Read-only

feat: Group possible parents by project

part of story #24969 [modal] add and remove links (replace current artifact link) How to test: --> Possible are grouped by project --> When the project has an icon, it is displayed in the group labels --> Filtering the parent groups will not make the dropdown flicker --> When there is no possible parent the generic "Possible parents" group is displayed Change-Id: Ida8e029cbd114e6e0da81b166944cad342a491bc

Modified Files

Name
M lib/frontend/link-selector/src/helpers/group-id-helper.test.ts +1 −0 Go to diff View file
M lib/frontend/link-selector/src/items/GroupCollection.ts +1 −0 Go to diff View file
M lib/frontend/link-selector/src/renderers/DropdownContentRenderer.test.ts +21 −0 Go to diff View file
M lib/frontend/link-selector/src/renderers/DropdownContentRenderer.ts +14 −2 Go to diff View file
M lib/frontend/link-selector/src/renderers/__snapshots__/DropdownContentRenderer.test.ts.snap +10 −2 Go to diff View file
M lib/frontend/link-selector/src/selection/SelectionManager.test.ts +1 −0 Go to diff View file
M lib/frontend/link-selector/tests/builders/GroupCollectionBuilder.ts +4 −1 Go to diff View file
M lib/frontend/link-selector/themes/style.scss +4 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/ArtifactProjectProxy.ts +29 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/ArtifactWithStatus.ts +6 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/LinkableArtifactProxy.test.ts +12 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/LinkableArtifactProxy.ts +2 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/LinkedArtifactProxy.test.ts +8 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/TuleapAPIClient.test.ts +8 −3 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/ArtifactLinkSelectorAutoCompleter.ts +29 −8 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkFieldController.ts +7 −3 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkFieldPossibleParentsGroupsByProjectBuilder.test.ts +64 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkFieldPossibleParentsGroupsByProjectBuilder.ts +55 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/MatchingArtifactsGroup.ts +3 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/PossibleParentsGroup.test.ts +7 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/PossibleParentsGroup.ts +20 −1 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/domain/ArtifactProject.ts +24 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/domain/fields/link-field-v2/LinkableArtifact.ts +2 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/tests/stubs/LinkableArtifactStub.ts +10 −0 Go to diff View file
M plugins/tracker/scripts/lib/rest-api-types/src/trackers.ts +6 −0 Go to diff View file
M src/www/tlp-doc/resources/forms/link-selector/doc.html +1 −0 Go to diff View file