Skip to content
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

Simulator embedding (very incomplete, behind flag) #816

Merged
merged 21 commits into from
Jul 26, 2022

Conversation

microbit-matt-hillsdon
Copy link
Collaborator

@microbit-matt-hillsdon microbit-matt-hillsdon commented Jul 14, 2022

The simulator is deployed separately from https://github.com/microbit-foundation/micropython-microbit-v2-simulator

It is not ready for use and is being merged behind a flag to enable iterative development of the UI and simulator features.

@microbit-matt-hillsdon microbit-matt-hillsdon changed the title [WIP] Simulator embedding (very incomplete, behind flag) Simulator embedding (very incomplete, behind flag) Jul 21, 2022
@microbit-matt-hillsdon microbit-matt-hillsdon marked this pull request as ready for review July 21, 2022 12:08
)}
</Box>
{flags.simulator ? (
<SplitView
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This split view behaves poorly when nested like this (perhaps due to minimums).

The layout as a whole isn't consistent with the latest designs.

However, so long as it has no effect on the non-flagged layout I think it's worth merging so we can avoid maintaining a separate branch as we iterate on the simulator.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I think it's the equivalent of this bug:

tomkp/react-split-pane#30

So we need to add an overlay element over the iframe (or for simplicity, each side) during the drag.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now I understand it I feel less bad about merging it. I'm going to leave this one to fix afterwards.

Copy link
Collaborator

@microbit-robert microbit-robert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Flag works well, no unintended changes observed. As stated, come back to the split view drag issue.

@microbit-matt-hillsdon microbit-matt-hillsdon merged commit 90b7f07 into main Jul 26, 2022
@microbit-matt-hillsdon microbit-matt-hillsdon deleted the simulator branch July 26, 2022 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants