-
Notifications
You must be signed in to change notification settings - Fork 157
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
refactor: move app vuex store to pinia #10331
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JammingBen
force-pushed
the
apps-to-pinia-store
branch
2 times, most recently
from
January 12, 2024 17:24
0e639c8
to
3d1cdeb
Compare
11 tasks
JammingBen
force-pushed
the
apps-to-pinia-store
branch
3 times, most recently
from
January 15, 2024 08:28
b2b5afd
to
bcafac1
Compare
dschmidt
approved these changes
Jan 15, 2024
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.
😍 😍 😍
packages/web-pkg/src/composables/actions/files/useFileActionsCreateNewFile.ts
Show resolved
Hide resolved
Removes the vuex app store module in favour of a pinia store instead. Also cleans up the app types a bit, although this is still a bit messy due to some weird naming choices in the past. That's something for a follow-up though. Also removes the `announceExtensions` method inside the app's `ready` hook, which could be used to register file editors. Apparently it was not used by any app because there is already another way to register file editors, which is via the `extensions` property inside the `appInfo` object.
JammingBen
force-pushed
the
apps-to-pinia-store
branch
from
January 15, 2024 10:31
d90facd
to
57fadbc
Compare
Quality Gate failedFailed conditions 16.9% Condition Coverage on New Code (required ≥ 50%) |
7 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Removes the vuex app store module in favour of a pinia store instead.
I also tried cleaning up and improving the naming and types of app related stuff. It's not all perfect yet, but it's definitely an improvement. The most notable change here is that
extensions
inside theappInfo
object are now of typeApplicationFileExtension[]
, since they have nothing to do with our extension library, but are file extensions.Also, there is no such thing as a
newFileHandler
. This is basically aApplicationFileExtension
with an addednewFileMenu
that includes amenuTitle
.Breaking changes for developers
announceExtensions
method inside the app'sready
hook, which could be used to register file editors. Apparently it was not used by any app because there is already another way to register file editors, which is via theextensions
property inside theappInfo
object.$store
variable. The recommended way to use the vuex store is viauseStore
.Related Issue
Types of changes