Skip to content

fix(ui): remove bg and circle button on scope's bar #153

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

Merged
merged 2 commits into from
Dec 19, 2022

Conversation

fundon
Copy link
Contributor

@fundon fundon commented Dec 16, 2022

#130

I think the whole canvas is too complicated to modify UI style and handle business logic at the same time.
It would be better to provide a right sidebar like the design tool, so that when you select scope or node, you can modify their styles or attributes.

It may also need a designer. :)

Comment on lines 970 to 976
if (
mousePos.x < currentParent.positionAbsolute!.x ||
mousePos.x >
currentParent.positionAbsolute!.x + currentParent.width! ||
currentParent.positionAbsolute!.x + currentParent.width! ||
mousePos.y < currentParent.positionAbsolute!.y ||
mousePos.y >
currentParent.positionAbsolute!.y + currentParent.height!
currentParent.positionAbsolute!.y + currentParent.height!
Copy link
Collaborator

Choose a reason for hiding this comment

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

We seem to be still on a different formatter (we used prettier). Can you double check?

Copy link
Contributor Author

@fundon fundon Dec 17, 2022

Choose a reason for hiding this comment

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

A configuration file may be needed in ui's folder.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks for the suggestions! Since we have nothing to customize prettier, we just left it empty (which should apply the default options). Do you think this would work or not? Or did you use prettier but got this different formatting?

@forrestbao
Copy link
Collaborator

It would be better to provide a right sidebar like the design tool, so that when you select scope or node, you can modify their styles or attributes.

This means changing the habit of users by quite a lot. Currently Google Colab, DeepNote, Noteable, and Hex all use the hover tool bar/strip design for each cell.

@fundon
Copy link
Contributor Author

fundon commented Dec 17, 2022

My thoughts and suggestions are mentioned above.

A right sidebar or a hover tool bar/strip would improve the experience.

Copy link
Collaborator

@lihebi lihebi left a comment

Choose a reason for hiding this comment

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

Thanks!

@lihebi lihebi merged commit a67b5c8 into codepod-io:main Dec 19, 2022
@fundon fundon deleted the improve-scope-ui-2 branch December 20, 2022 10:32
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.

3 participants