Skip to content

refactor(pinia): move board logic to boardStore - #8234

Open
grnd-alt wants to merge 2 commits into
mainfrom
refactor/pinia-migration-mainStore
Open

refactor(pinia): move board logic to boardStore#8234
grnd-alt wants to merge 2 commits into
mainfrom
refactor/pinia-migration-mainStore

Conversation

@grnd-alt

@grnd-alt grnd-alt commented Aug 4, 2026

Copy link
Copy Markdown
Member

No description provided.

@grnd-alt
grnd-alt force-pushed the refactor/pinia-migration-mainStore branch from 21e5671 to 6003985 Compare August 4, 2026 09:46
@grnd-alt
grnd-alt requested a review from a team August 4, 2026 13:01

@mejo- mejo- left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I have some nitpicking code style comments. Other than that, it looks good. Didn't test myself and only eyeballed the code changes.

title,
color: this.color.substring(1),
})
await useBoardStore().createBoard({ title, color: this.color.substring(1) })

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is there a particular reason why you don't use mapActions(useBoardStore, ['createBoard']) here? Maybe I'm missing something, but it seems like inconsistent code style to me.

Comment thread src/components/Controls.vue Outdated
import CreateNewCardCustomPicker from '../views/CreateNewCardCustomPicker.vue'
import { getCurrentUser } from '@nextcloud/auth'
import { mapActions } from 'pinia'
import { mapActions, mapState as mapStatePinia } from 'pinia'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

In other places you used the pattern to rename the Vuex version to mapStateVuex which seems cleaner to me as you don't have to rename again once Vuex gets removed.

Comment thread src/components/Controls.vue Outdated
this.setFilter({ ...this.filter })
},
setFilter() {
setFilterLocal() {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If I'm correct, in other places you used the pattern to import the store method as setFilterInStore(), so again you introduce a different code style here.

@grnd-alt
grnd-alt force-pushed the refactor/pinia-migration-mainStore branch from 6003985 to d6aef13 Compare August 5, 2026 09:51
Signed-off-by: grnd-alt <git@belakkaf.net>
Signed-off-by: grnd-alt <git@belakkaf.net>
@grnd-alt
grnd-alt force-pushed the refactor/pinia-migration-mainStore branch from d6aef13 to 58125bf Compare August 5, 2026 10:24
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