sofie-core
sofie-core copied to clipboard
feat: Element Selector for UI
About the Contributor
This PR is made on the behalf of BBC
Type of Contribution
This is the framework for selecting elements in UI
Current Behavior
Currently there's no easy way to communicate if something in the UI is selected
New Behavior
This PR adds a SelectedElements Contextprovider in top of rundown tree, so selection of e.g. a segment is reflected in properties panel propertiespanel. It's a minimal implementation, and the full selection in UI will be added in a PR for the Properties Panel.
Testing
Unit test has been made, and inclusion of @testing-library/react
so it's possible to test via the provider.
- [x] I have added one or more unit tests for this PR
Affected areas
- As the segment timeline's updates are controlled by withResolvedSegment an isSelected properties is added in it.
- A testing lib has been added for webUI (
@testing-library/react
) - <SelectedElemtentProvider> has been added to Rundown view
Time Frame
This PR should be merged soon, so it can be merged back to bbc.
Status
this is ready to be reviewed
- [x] PR is ready to be reviewed.
- [x] The functionality has been tested by the author.
- [x] Relevant unit tests has been added / updated.
- [ ] Relevant documentation (code comments, system documentation) has been added / updated.