1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-06 11:43:51 +00:00

Clarify SelectItemView changes

This commit is contained in:
Thomas Rittson
2025-07-19 10:48:30 +10:00
parent b794462774
commit ad0baec404

View File

@@ -1,15 +1,14 @@
import { CollectionId } from "@bitwarden/common/types/guid";
export type SelectItemView = {
id: string; // Unique ID used for comparisons
listName: string; // Default bindValue -> this is what will be displayed in list items
labelName: string; // This is what will be displayed in the selection option badge
icon?: string; // Icon to display within the list
parentGrouping?: string; // Used to group items by parent
export type SelectItemView = BaseSelectView & {
id: string; // Unique ID used for comparisons - this may represent different object IDs depending on the context
};
export type SelectCollectionView = {
id: CollectionId; // Unique ID used for comparisons
export type SelectCollectionView = BaseSelectView & {
id: CollectionId;
};
export type BaseSelectView = {
listName: string; // Default bindValue -> this is what will be displayed in list items
labelName: string; // This is what will be displayed in the selection option badge
icon?: string; // Icon to display within the list