feature/feat-pinia-task-store | pinia 7/9 #2409

Merged
konrad merged 2 commits from dpschen/frontend:feature/feat-pinia-task-store into main 2022-09-30 11:17:20 +00:00
Member
No description provided.
dpschen added the
kind/feature
label 2022-09-23 14:57:10 +00:00
dpschen force-pushed feature/feat-pinia-task-store from b356809c60 to 6132a85251 2022-09-23 15:03:18 +00:00 Compare
dpschen added 3 commits 2022-09-28 22:31:09 +00:00
Member

Hi dpschen!

Thank you for creating a PR!

I've deployed the changes of this PR on a preview environment under this URL: https://2409-feature-feat-pinia-task-store--vikunja-frontend-preview.netlify.app

You can use this url to view the changes live and test them out.
You will need to manually connect this to an api running somehwere. The easiest to use is https://try.vikunja.io/.

Have a nice day!

Beep boop, I'm a bot.

Hi dpschen! Thank you for creating a PR! I've deployed the changes of this PR on a preview environment under this URL: https://2409-feature-feat-pinia-task-store--vikunja-frontend-preview.netlify.app You can use this url to view the changes live and test them out. You will need to manually connect this to an api running somehwere. The easiest to use is https://try.vikunja.io/. Have a nice day! > Beep boop, I'm a bot.
dpschen force-pushed feature/feat-pinia-task-store from 6f99b642e9 to 0255a44032 2022-09-28 23:26:05 +00:00 Compare
dpschen changed title from WIP: feature/feat-pinia-task-store | pinia 7/9 to feature/feat-pinia-task-store | pinia 7/9 2022-09-29 00:33:08 +00:00
dpschen requested review from konrad 2022-09-29 00:33:14 +00:00
konrad was assigned by dpschen 2022-09-29 00:33:18 +00:00
Owner

Can you rebase this?

Can you rebase this?
dpschen added 1 commit 2022-09-29 12:03:27 +00:00
Author
Member

@konrad: done

@konrad: done
konrad reviewed 2022-09-29 15:40:11 +00:00
@ -75,2 +76,3 @@
const store = useStore()
const loading = computed(() => store.state.loading)
const taskStore = useTaskStore()
const loading = computed(() => store.state.loading) // FIXME: shouldn't this reference the taskStores loading state?

It should use the task store's loading state. Mabye something like computed(() => store.state.loading || taskStore.loading)?

It should use the task store's loading state. Mabye something like `computed(() => store.state.loading || taskStore.loading)`?
Author
Member

Wouldn't the taskStores loading state be enough now?

I did now only:

const loading = computed(() => taskStore.isLoading)
Wouldn't the taskStores loading state be enough now? I did now only: ```ts const loading = computed(() => taskStore.isLoading)

I think that should be fine, yes.

I think that should be fine, yes.
@ -0,0 +8,4 @@
import UserService from '@/services/user'
import {HAS_TASKS} from '../store/mutation-types'
import {setLoadingPinia} from '../store/helper'

Can you use @ here for the imports?

Can you use `@` here for the imports?
Author
Member

I left that for 34b9b2a315 (diff-ab7455b2612e9ac43f45f7bb8a4bf872e2e6b171) since I remove the store there completely

I left that for https://kolaente.dev/vikunja/frontend/commit/34b9b2a3159ef8a5222309ba69354517d5d7690c#diff-ab7455b2612e9ac43f45f7bb8a4bf872e2e6b171 since I remove the store there completely
dpschen marked this conversation as resolved
konrad reviewed 2022-09-29 15:41:30 +00:00
konrad left a comment
Owner

well looks like I need to always put a comment here now

well looks like I need to always put a comment here now
dpschen added 1 commit 2022-09-29 19:40:30 +00:00
continuous-integration/drone/pr Build is passing Details
34ffd1d572
feat: port tasks store to pinia
konrad merged commit 8c394d8024 into main 2022-09-30 11:17:20 +00:00
konrad deleted branch feature/feat-pinia-task-store 2022-09-30 11:17:20 +00:00
This repo is archived. You cannot comment on pull requests.
No description provided.