-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Item Properties View to use table components
The current implentation of the item properties view uses <p> tags with no styling to display the properties. This looks ok but can be significantly improved by showing the properties in a table. This commit makes the following changes: - Reuses filter tree component for item properties view. - Added option to hide filler columns/cells - Ability to render a table cell value as an element - Added tooltips for item properties entries Signed-off-by: Neel Gondalia <[email protected]>
- Loading branch information
Showing
14 changed files
with
231 additions
and
70 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
packages/base/src/signals/item-properties-signal-payload.tsx
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/*************************************************************************************** | ||
* Copyright (c) 2024 BlackBerry Limited and contributors. | ||
* | ||
* Licensed under the MIT license. See LICENSE file in the project root for details. | ||
***************************************************************************************/ | ||
|
||
export class ItemPropertiesSignalPayload { | ||
private outputDescriptorId: string | undefined; | ||
private experimentUUID: string | undefined; | ||
private properties: { [key: string]: string }; | ||
|
||
constructor(props: { [key: string]: string }, expUUID?: string, descriptorId?: string) { | ||
this.properties = props; | ||
this.experimentUUID = expUUID; | ||
this.outputDescriptorId = descriptorId; | ||
} | ||
|
||
public getOutputDescriptorId(): string | undefined { | ||
return this.outputDescriptorId; | ||
} | ||
|
||
public getExperimentUUID(): string | undefined { | ||
return this.experimentUUID; | ||
} | ||
|
||
public getProperties(): { [key: string]: string } { | ||
return this.properties; | ||
} | ||
} |
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
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
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
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
Oops, something went wrong.