stable
Clone or download
part of story #24969 [modal] add and remove links (replace current artifact link) How to test: - Enter a number matching an artifact id in the new Link field - You should see an item in a "Matching Artifact" group with a TLP secondary badge. (The colored xref will come later). - When you type a number that does not match any artifact id, the group is empty and an "empty state" message is shown instead. - When you type text (not a number), the group is not shown. Notes: - This commit is already pretty large, the actual cross-ref badge with color should be handled later. - There is no point in translating LinkSelector anymore. Placeholder is given by the caller (and translated by them). - Link selector only cares about its inner <select> at the strict minimum. Its only purpose it for selection now. Change-Id: I04586d67feebe6396e7b35d282d5d181194e3ccd
Modified Files
Name | ||||
---|---|---|---|---|
M | build-manifest.json | +0 | −4 | Go to diff View file |
M | lib/frontend/link-selector/package.json | +0 | −1 | Go to diff View file |
M | lib/frontend/link-selector/pnpm-lock.yaml | +0 | −2 | Go to diff View file |
D | lib/frontend/link-selector/po/fr_FR.po | +0 | −17 | Go to diff View file |
A | lib/frontend/link-selector/src/dropdown/DropdownContentRefresher.ts | +48 | −0 | Go to diff View file |
D | lib/frontend/link-selector/src/events/ListOptionsChangesObserver.test.ts | +0 | −126 | Go to diff View file |
D | lib/frontend/link-selector/src/events/ListOptionsChangesObserver.ts | +0 | −76 | Go to diff View file |
M | lib/frontend/link-selector/src/events/SearchFieldEventCallbackHandler.test.ts | +11 | −4 | Go to diff View file |
M | lib/frontend/link-selector/src/events/SearchFieldEventCallbackHandler.ts | +24 | −5 | Go to diff View file |
A | lib/frontend/link-selector/src/helpers/group-id-helper.test.ts | +32 | −0 | Go to diff View file |
R | lib/frontend/link-selector/src/pofile-shim.d.ts | Go to diff View file | ||
D | lib/frontend/link-selector/src/helpers/option-label-helper.test.ts | +0 | −39 | Go to diff View file |
M | lib/frontend/link-selector/src/index.ts | +8 | −6 | Go to diff View file |
A | lib/frontend/link-selector/src/items/GroupCollection.ts | +33 | −0 | Go to diff View file |
M | lib/frontend/link-selector/src/items/ItemsMapManager.test.ts | +14 | −17 | Go to diff View file |
M | lib/frontend/link-selector/src/items/ItemsMapManager.ts | +8 | −7 | Go to diff View file |
M | lib/frontend/link-selector/src/items/ListItemMapBuilder.test.ts | +139 | −232 | Go to diff View file |
M | lib/frontend/link-selector/src/items/ListItemMapBuilder.ts | +50 | −137 | Go to diff View file |
A | lib/frontend/link-selector/src/items/OptionsMaintainer.test.ts | +60 | −0 | Go to diff View file |
A | lib/frontend/link-selector/src/items/OptionsMaintainer.ts | +34 | −0 | Go to diff View file |
M | lib/frontend/link-selector/src/link-selector.ts | +18 | −25 | Go to diff View file |
M | lib/frontend/link-selector/src/navigation/KeyboardNavigationManager.test.ts | +16 | −20 | Go to diff View file |
M | lib/frontend/link-selector/src/renderers/BaseComponentRenderer.ts | +1 | −1 | Go to diff View file |
M | lib/frontend/link-selector/src/renderers/DropdownContentRenderer.test.ts | +52 | −148 | Go to diff View file |
M | lib/frontend/link-selector/src/renderers/DropdownContentRenderer.ts | +76 | −134 | Go to diff View file |
M | lib/frontend/link-selector/src/renderers/__snapshots__/DropdownContentRenderer.test.ts.snap | +8 | −36 | Go to diff View file |
M | lib/frontend/link-selector/src/selection/SelectionManager.test.ts | +32 | −37 | Go to diff View file |
M | lib/frontend/link-selector/src/selection/SelectionManager.ts | +6 | −9 | Go to diff View file |
D | lib/frontend/link-selector/src/test-helpers/select-box-options-generator.ts | +0 | −68 | Go to diff View file |
M | lib/frontend/link-selector/src/type.ts | +7 | −26 | Go to diff View file |
A | lib/frontend/link-selector/tests/builders/GroupCollectionBuilder.ts | +73 | −0 | Go to diff View file |
R | lib/frontend/link-selector/src/helpers/option-label-helper.ts | Go to diff View file | ||
M | lib/frontend/link-selector/vite.config.ts | +2 | −11 | Go to diff View file |
M | plugins/testmanagement/scripts/testmanagement/src/campaign/campaign-edit-controller.js | +2 | −1 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/ArtifactLinkSelectorAutoCompleter.test.ts | +39 | −53 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/ArtifactLinkSelectorAutoCompleter.ts | +41 | −50 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkField.ts | +1 | −2 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/LinkFieldController.ts | +3 | −3 | Go to diff View file |
M | plugins/tracker/scripts/lib/artifact-modal/src/adapters/UI/fields/link-field-v2/link-field-v2.scss | +0 | −4 | Go to diff View file |