Skip to content

refactor: split <WorkspacePanel> into 3 internal components #253

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

Conversation

AriPerkkio
Copy link
Member

@AriPerkkio AriPerkkio commented Aug 16, 2024

  • Refactors <WorkspacePanel> internally
  • Working on <WorkspacePanel> is currently difficult as it contains so much logic. Everything is declared inside a single React component. Let's split this component into three smaller ones to improve readability and maintainability.

Tested manually but let's instead wait for #241 just to be sure.

@Nemikolh any thoughts about this?

Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link
Member

@Nemikolh Nemikolh left a comment

Choose a reason for hiding this comment

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

Why not! 🤩

Given that part is probably less likely to change at this point, this is a nice change!

I would use different name than Terminal, Editor and Preview as it would make reading this code harder IMO as we already have components named like this.

@Nemikolh
Copy link
Member

Nemikolh commented Sep 2, 2024

Weird that GitHub closes PRs when a PR reference a comment from another PR 😅

@AriPerkkio AriPerkkio marked this pull request as ready for review September 2, 2024 14:40
@AriPerkkio AriPerkkio requested a review from Nemikolh September 2, 2024 14:41
@AriPerkkio
Copy link
Member Author

Alright I think this is ready now! 🎉

Copy link
Member

@Nemikolh Nemikolh left a comment

Choose a reason for hiding this comment

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

Looks really good! I love the improvements, the code is a lot better! 🤌

Just a minor nit and let's get this merged 🥳

@AriPerkkio AriPerkkio merged commit e40188e into stackblitz:main Sep 2, 2024
10 checks passed
@AriPerkkio AriPerkkio deleted the refactor/workspace-panel-split branch September 2, 2024 15:02
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