-
Notifications
You must be signed in to change notification settings - Fork 59
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
Add console toggle to side-tray #540
Comments
How about we add a toggle into the side tray? |
I would try, have not done a PR for some time :) |
@hrgdavor @Irev-Dev how does this look? https://www.figma.com/file/VUh53RdncjZ7NuFYj0RGB9/CadHub?node-id=2091%3A4535 @hrgdavor if you'd like to work on this I feel like you can get it working with a normal checkbox and I can make a |
Deal |
Some context: |
I've overhauled the description to be much more detailed. |
Resolved by #545 |
The IDE console isn't always needed, so it would be nice to be able to hide it.
We want to add a visibility toggle to the side tray
full designs here
The components that make up the options int he side tray are defined in
app/web/src/components/IdeSideBar/sidebarConfig.tsx
in thesettingsConfig
array.Changing to toggle will need to dispatch an action to show or hide the console.
Here is an example that will hide the console
The thunkDispatch and state can be accessed using the
useIdeContext()
(search foruseIdeContext
to see examples in the repo).The actions update state, handled in
app/web/src/helpers/hooks/useIdeState.ts
, pay attention tolayout
property on the state object as that's what controls the panels in the IDE. W're usingreact-mosaic-component
so their docs will likely be useful.Follow the instructions in CONTRIBUTING.md to get setup, and of course ask for help here or in the dev-help discord channel.
If you'd like to contribute the CadHub but this issue is taken or you'd prefer something else, have a look at #535 to see if there's something else you would like
The text was updated successfully, but these errors were encountered: