-
Notifications
You must be signed in to change notification settings - Fork 178
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
WIP: Add ability to reorder Workspaces using drag and drop #497
base: develop
Are you sure you want to change the base?
Conversation
name={workspace.name} | ||
isActive={actualWorkspace === workspace} | ||
onClick={() => { | ||
if (actualWorkspace === workspace) return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would personally place the return within brackets on the next line as this is easier to read.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You and I both... But eslint didn't like it that way 🤣
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eslint config can be modified 🌚
So to update the order in the API we would need to create/update some endpoints to support that. I'm a little in doubt if we wanna implement that in the current API version or wait for the v2 to be completed and make it fully testable |
Maybe we can wait for the V2 to be completed 😁 |
in that case, do we want to hold 6.0.0 release? |
I don't think we need to hold back for this PR. We can easily then merge new features in a minor/patch version or so. |
I would love to see this completed!
I have some notes/thoughts that I've started writing as early thoughts that I may use to attempt to make some changes:
|
Amazing, would love to see this possibility. The only alternative is deleting and recreating workspaces. |
Any updates here? |
Pre-flight Checklist
Description of Change
Add order ability to Workspaces
Motivation and Context
This is a WIP for adding the ability of order Workspaces in the Workspace Drawer and in the Workspace Settings.
The idea is to fix #146.
To do:
mobx
is complaining about this given I'm not using an action for changing the index)I think I'm needing some help setting up the actions to reorder workspaces - as it is now, the workspaces are reordered but only until the Ferdium restarts/reloads, which is due to the fact that the "new" order is not being saved in the API. If anyone can help me with that I would really appreciate it :D
Screenshots
(so far... )
Checklist
npm run prepare-code
)npm test
passesRelease Notes