Closed benjaminpkane closed 3 weeks ago
The changes in PathValueEntry.tsx
include enhancements to state management and rendering logic for expanded entries and text within the component. They also introduce new imports and styled components, such as LoadingDots
, FRAME_SUPPORT_FIELD
, TitleDiv
, and modifications in ScalarDiv
. These updates improve the handling of expandable sections and visual adjustments in the sidebar.
Files involve | Change Summaries |
---|---|
.../PathValueEntry.tsx |
- Addition of LoadingDots import - Addition of FRAME_SUPPORT_FIELD import - Changes in the useRecoilState import - Addition of expandedPathValueEntry atomFamily - Addition of TitleDiv styled component - Changes in ScalarDiv styled component - Addition of state management for expanded entries - Changes in rendering logic for expanded entries in ScalarValueEntry and ListValueEntry - Addition of state management for expanded text in ListValueEntry - Changes in rendering logic for expanded text in ListValueEntry , ListLoadable , SlicesListLoadable , and SlicesLoadable - Changes in styling and layout adjustments |
By my burrow, I see the code,
Expanded paths now take the load.
WithLoadingDots
andTitleDiv
,
In lists and scalars, entries live.
State is managed clear and fine,
Where once was plain, now all align.
Hopping through these fields and frames,
The sidebar shines, enhanced with names.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@benjaminpkane couple UX thoughts here:
@benjaminpkane couple UX thoughts here:
- would be nice if the cursor changed to indicate that something will happen when you click to expand/contract
- just want to confirm: is it still possible to drag-select the text if you want to ctrl + C a portion of the long string?
Text selection is still possible. I will add the pointer
cursor when outside text
What changes are proposed in this pull request?
Adds text expansion option via container click.
https://github.com/voxel51/fiftyone/assets/19821840/2d48f0e9-b4a7-4378-8ca1-beb633b90e21
How is this patch tested? If it is not, please explain why.
Locally
Release Notes
What areas of FiftyOne does this PR affect?
fiftyone
Python library changesSummary by CodeRabbit
New Features
Style