-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Refactor dependencies, select row by name and provider (#1554)
Resolves: #1509 The Dependencies table was setup to use the `AnalysisDependency.name` as the selected row key. Since the `.name` field is not unique across all rows multiple rows would be erroneously selected at the same time. To solve the problem, a UI only unique id is generated after fetching and used for the table selection itemId. Change details: - Dependencies fetch query updated to inject a UI uid and return `WithUiId<AnalysisDependency>[]`. This transform is done outside the react-query `useQuery()` handling. - Updated the table to use the `WithUiId<>` key `_ui_unique_id` for selection. - Since the button rendered in the "Found in" column had no function, the button was removed. - "Found in" column moved to the last column to match the placement of matching columns on the Archetypes and Issues tables. - Use i18next plural aware keys for the "Found in" text to avoid the "(s)" suffix. - Fixed the `id` and `aria-label` on the table. - Added `key` to the label column `Label`s. Signed-off-by: Scott J Dickerson <sdickers@redhat.com>
- Loading branch information
Showing
3 changed files
with
49 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters