-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: React Toolbar scaffolding #3446
Merged
Merged
Conversation
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
haakonflatval-cognite
changed the title
feat: initial work on React Toolbar
feat: React Toolbar
Jun 30, 2023
haakonflatval-cognite
changed the title
feat: React Toolbar
feat: React Toolbar scaffolding
Jun 30, 2023
haakonflatval-cognite
added
the
slack
PRs and issues with this label will be pushed to Slack
label
Jun 30, 2023
christjt
previously approved these changes
Jul 5, 2023
christjt
added
the
auto-update
Makes bulldozer automatically update this PR when there are changes to the target branch
label
Jul 5, 2023
Savokr
previously approved these changes
Jul 5, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Only one tiny comment.
…ta/reveal into hflatval/react-toolbar
Savokr
approved these changes
Jul 5, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
auto-update
Makes bulldozer automatically update this PR when there are changes to the target branch
slack
PRs and issues with this label will be pushed to Slack
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Type of change
Jira ticket 📘
Partially https://cognitedata.atlassian.net/browse/UX-844
Description 📝
Creates a React toolbar component, based on Figma sketch: https://www.figma.com/file/RSZN6BS8VqQgWRFQ7pIXC9/FDX?type=design&node-id=7377-203072&mode=design&t=LSYkn4qH62PeOmuW-0
The toolbar is meant to be used inside a
RevealContext
.Architecturally, the toolbar is just a container with a list of buttons and dividers which may be provided as children to the toolbar component. If no children are provided, a default set of buttons are used instead.
A set of default buttons are also exposed to the user, which they may choose to provide to the toolbar. This would include e.g. a slicing UI, a fit-camera-to-models-button and a measurements-button.
Each button is a wrapper around the (also exposed)
ToolbarButton
, which may be used by the user to create their own buttons.ToolbarButton
is a thin wrapper aroundcogs.js
button, essentially just ensuring it is of theghost
type.Note: The button set we want to use in FDX will probably include some FDX-specific buttons, while the "default" buttons returned with the toolbar should be Reveal-specific only.
How has this been tested? 🔍
Test instructions ℹ️
Checklist ☑️