stable

Clone or download

Read-only

Implement request #32650 Artifact link list should display parent first

How to test: - Edit an artifact with an artifact link field with the modal (kanban, TTM or planning view). - If it has a parent, it should be at the top of the list with a thicker border. - Multiple parents are handled, the border shows up only once. You can assign multiple parents through the API or the Artifact view (but not the modal). - If you change the type of a parent link, it should not "jump" to the bottom of the list. - Marking artifacts for removal works as before. - If the artifact didn't have a parent and you add a new one, it should not "jump" to the top of the list. It stays mixed with the other new links. If you submit and reopen the modal for this artifact, it should now be sorted at the top of the list. Change-Id: I58536505f494c8ddeb627d8d939f416583448e6f

Modified Files

Name
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/LinkField.test.ts +36 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/LinkField.ts +17 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/LinkedArtifactPresenter.test.ts +5 −8 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/LinkedArtifactPresenter.ts +3 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/LinkedArtifactTemplate.test.ts +47 −39 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/LinkedArtifactTemplate.ts +1 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field/link-field.scss +4 −0 Go to diff View file