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

Improve EDA state #1169

Closed
SmiteDeluxe opened this issue May 13, 2024 · 1 comment · Fixed by #1170
Closed

Improve EDA state #1169

SmiteDeluxe opened this issue May 13, 2024 · 1 comment · Fixed by #1170
Assignees
Labels
enhancement 💡 New feature or request released Included in a release

Comments

@SmiteDeluxe
Copy link
Contributor

Is your feature request related to a problem?

Messy state where any update to any part updates state as a whole. Some parts like column widths are kept in a store inside the components, while others are part of the big state object.

Desired solution

More separated into individual components and all the ones needed across components in the webviewstate.ts while the ones only needed in one defined and managed there. This will make the typing also cleaner and the extension will not have to insert placeholder data it should not really manage anyway like visible vs. total rows. Only possible because the state is not saved to vscodes global state anymore.

Possible alternatives (optional)

No response

Screenshots (optional)

No response

Additional Context (optional)

No response

@SmiteDeluxe SmiteDeluxe added the enhancement 💡 New feature or request label May 13, 2024
@SmiteDeluxe SmiteDeluxe self-assigned this May 13, 2024
@lars-reimann lars-reimann added this to DSL May 13, 2024
@github-project-automation github-project-automation bot moved this to Backlog in DSL May 13, 2024
@SmiteDeluxe SmiteDeluxe linked a pull request May 14, 2024 that will close this issue
lars-reimann added a commit that referenced this issue May 16, 2024
Closes #1169 

### Summary of Changes

- Split up the currentState into tabs, table and history stores, as no
saving to vscode global state anymore so not needed to save as one big
object
- This means that svelte does not have to reevaluate so many things when
something small changes, as in a new history item does not cause update
to whole state anymore that causes table to update in background
- Also easier to manage and update
- tableIdentifier in table object, defaultState property not needed
anymore and UserSettings not yet
- columns don't have a number anymore as order is just array order
- table filter is object that can have all the tablefilters but not
multiple of one type
- columnWidths still shall remain own store in component, as otherwise
resize drag would cause massive amount of updates to the table store
- setCurrentState msg is not setInitialTable and takes Table, error if
executed more than once

Co-authored-by: Lars Reimann <[email protected]>
@github-project-automation github-project-automation bot moved this from Backlog to ✔️ Done in DSL May 16, 2024
@lars-reimann
Copy link
Member

🎉 This issue has been resolved in version 0.16.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@lars-reimann lars-reimann added the released Included in a release label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 💡 New feature or request released Included in a release
Projects
Status: ✔️ Done
Development

Successfully merging a pull request may close this issue.

2 participants