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

FP-2932: Save doesn't work well in split screen #355

Open
wants to merge 12 commits into
base: dev
Choose a base branch
from

Conversation

quirinpa
Copy link
Contributor

@quirinpa quirinpa commented Sep 26, 2024

  • FP-2932 Save doesn't work well in split screen

Needs also: https://github.com/MOV-AI/frontend-npm-ide/pull/618

Paulo Andre Azevedo Quirino added 2 commits September 26, 2024 11:51
@quirinpa quirinpa self-assigned this Sep 26, 2024
@quirinpa quirinpa requested a review from a team as a code owner September 26, 2024 12:39
EdwardAngeles
EdwardAngeles previously approved these changes Oct 3, 2024
@EdwardAngeles
Copy link
Contributor

EdwardAngeles commented Oct 3, 2024

Looks good. Well done.
Can we also remove hotkeys.js?

@EdwardAngeles EdwardAngeles self-requested a review October 3, 2024 10:32
Copy link
Contributor

@EdwardAngeles EdwardAngeles left a comment

Choose a reason for hiding this comment

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

Should we rename
keybinds.js -> keybinder.js
shortcuts.js -> keybinds.js?

@quirinpa
Copy link
Contributor Author

quirinpa commented Oct 3, 2024

I'm a bit reluctant because it might be too many changes for the next reviewer. And I'm a bit blocked by too many PRs in review.

EdwardAngeles
EdwardAngeles previously approved these changes Oct 3, 2024
Copy link
Contributor

@manuelnogueiramov manuelnogueiramov left a comment

Choose a reason for hiding this comment

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

Overall I like this a lot. You got rid of a package and improved the code a bit.

The only part I really dislike is why the renaming of the keybinds ("ctrl" to "Control", etc).
Left just a few comments for you to take a look, but great work 👍

@@ -79,16 +80,15 @@ const FlowSearch = props => {
className={classes.searchInputText}
autoFocus
InputProps={{
...params.InputProps,
Copy link
Contributor

Choose a reason for hiding this comment

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

What happened to other params.InputProps that might be passed here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why pass them? They aren't used.

}
});

window.keybinds = keybinds;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we storing the keybinds in the window?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For debug purposes. So we can easily check which are the bound keybindings without changing the code.
It only brings benefits and not cons to my knowledge

SHORTCUTS: "ctrl+alt+home",
SHORTCUTS: "Control+Alt+Home",
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because we use vanilla keybind names now. It has to do with the implementation having no dependencies

Copy link
Collaborator

@diasdm diasdm left a comment

Choose a reason for hiding this comment

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

If you put two configs side by side and do:

  1. go to config 1
  2. save
  3. click on XML on config 2
  4. save -> the doc is not saved

@@ -0,0 +1,64 @@
import { useMemo } from "react";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add documentation

@quirinpa
Copy link
Contributor Author

What you've stated does not happen to me

@quirinpa quirinpa force-pushed the FP-2932-save-doesnt-work-well-in-split-screen branch from c7e83f5 to de50aff Compare October 14, 2024 08:55
Copy link

sonarcloud bot commented Oct 14, 2024

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.

4 participants