WIP: feat: use withDefaults in Description #2453
Draft
dpschen
wants to merge 1 commits from
dpschen/vikunja:feat/description-use-withDefaults
into main
pull from: dpschen/vikunja:feat/description-use-withDefaults
merge into: vikunja:main
vikunja:main
vikunja:feature/hasAttachments-as-store-computed
vikunja:fix/resetEmptyTitleError
vikunja:renovate/dev-dependencies
vikunja:renovate/intlify-unplugin-vue-i18n-6.x
vikunja:renovate/express-4.x
vikunja:renovate/github.com-go-testfixtures-testfixtures-v3-3.x
vikunja:renovate/vuemoji-picker-0.x
vikunja:renovate/golang.org-x-crypto-0.x
vikunja:renovate/github.com-labstack-echo-jwt-v4-4.x
vikunja:renovate/golang.org-x-term-0.x
vikunja:renovate/golang.org-x-image-0.x
vikunja:renovate/golang.org-x-text-0.x
vikunja:renovate/golang.org-x-sys-0.x
vikunja:renovate/lowlight-3.x
vikunja:renovate/golang.org-x-sync-0.x
vikunja:renovate/pinia-2.x
vikunja:renovate/axios-1.x
vikunja:renovate/node-22.x
vikunja:renovate/tailwindcss-3.x
vikunja:renovate/go-1.x
vikunja:renovate/github.com-getsentry-sentry-go-0.x
vikunja:renovate/sentry-javascript-monorepo
vikunja:feat/improve-ProjectSettingsDelete
vikunja:feature/inline-dynamic-routes
vikunja:feat/add-vite-plugin-vue-devtools
vikunja:fix/remove-postcss-easings-types
vikunja:renovate/dompurify-3.x
vikunja:renovate/pnpm-9.x
vikunja:renovate/sortablejs-1.x
vikunja:renovate/vue-i18n-10.x
vikunja:renovate/major-vueuse
vikunja:renovate/major-dev-dependencies
vikunja:renovate/tiptap
vikunja:renovate/vue-router-4.x
vikunja:renovate/golangci-golangci-lint-1.x
vikunja:renovate/github.com-stretchr-testify-1.x
vikunja:release/0.24
vikunja:renovate/vueuse
vikunja:renovate/font-awesome
vikunja:renovate/github.com-gabriel-vasile-mimetype-1.x
vikunja:fix/saved-filter-search
vikunja:renovate/goreleaser-nfpm-2.x
vikunja:renovate/vue-monorepo
vikunja:feat/remove-postcss-easings
vikunja:feat/move-useProjectBackground-to-composables
vikunja:renovate/intlify-unplugin-vue-i18n-5.x
vikunja:fix/reactive-ancestor-projects
vikunja:renovate/golang.org-x-oauth2-0.x
vikunja:renovate/postgres-17.x
vikunja:renovate/github.com-wneessen-go-mail-0.x
vikunja:feature/use-modern-compiler-for-sass-files-as-well
vikunja:feat/webp-and-avif-attachment-previews
vikunja:fix/tsconfig22
vikunja:feature/only-build-sourcemaps-for-sentry
vikunja:fix/tiptap-editor-reactive-destructuring
vikunja:feature/migrate-back-to-bulma
vikunja:fix/sass-add-missing-list-import
vikunja:feature/use-sass-embedded
vikunja:renovate/github.com-threedotslabs-watermill-1.x
vikunja:feature/sticky-demo-bar
vikunja:fix/remove-defineProps
vikunja:renovate/workbox-monorepo
vikunja:renovate/github.com-swaggo-swag-1.x
vikunja:renovate/node-20.x
vikunja:renovate/kyvg-vue3-notification-3.x
vikunja:fix/gantt-view-switch
vikunja:renovate/github.com-redis-go-redis-v9-9.x
vikunja:renovate/github.com-yuin-goldmark-1.x
vikunja:renovate/github.com-prometheus-client_golang-1.x
vikunja:renovate/github.com-mattn-go-sqlite3-1.x
vikunja:feature/typesense-position-join
vikunja:feature/focus-visible
vikunja:renovate/date-fns-4.x
vikunja:renovate/flexsearch-0.x
vikunja:renovate/dario.cat-mergo-1.x
vikunja:renovate/github.com-typesense-typesense-go-2.x
vikunja:renovate/vue-i18n-9.x
vikunja:renovate/dayjs-1.x
vikunja:dependencies/golangci-lint
vikunja:renovate/github.com-coreos-go-oidc-v3-3.x
vikunja:renovate/github.com-microcosm-cc-bluemonday-1.x
vikunja:renovate/github.com-arran4-golang-ical-0.x
vikunja:renovate/ufo-1.x
vikunja:renovate/github-hotkey-3.x
vikunja:feature/better-filter-syntax
vikunja:fix/tiptap-task-list
vikunja:feature/zod-schema
vikunja:renovate/github.com-golang-jwt-jwt-v4-5.x
vikunja:feature/hide-forbidden-related-tasks
vikunja:renovate/golang-1.x
vikunja:release/0.20
vikunja:release/0.17
vikunja:release/0.16
vikunja:release/0.15
vikunja:release/0.14
vikunja:release/0.13
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
No description provided.
Delete Branch "dpschen/vikunja:feat/description-use-withDefaults"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This will not fix the current issues yet, but I think it makes sense to start with this to rule this out.
16da189510
to277344d216
@ -548,3 +542,3 @@
}
uploadAndInsertFiles(files)
uploadAndInsertFiles(files) // TODO: await?
@konrad Shouldn't we await here?
In general yes, in this specific case I think it's fine to omit it because there isn't anything happening after the call to
uploadAndInsertFiles
. It's fine if that happens asynchronously.Since
addImage
is async shouldn't we still wait?@ -586,4 +582,2 @@
input?.removeEventListener('paste', handleImagePaste)
}
})
if (editShortcut !== '') {
Since we don't remove the eventListener, when editShortcut changes (e.g. by watching the value), we should always try to remove it during onBeforeUnmount – since in theory it could be that the value of editShourtcut has changed in between.
But won't the shortcut never change because we don't watch the shortcut value?
@ -47,3 +47,3 @@
import {useTaskStore} from '@/stores/tasks'
type AttachmentUploadFunction = (file: File, onSuccess: (attachmentUrl: string) => void) => Promise<string>
export type AttachmentUploadFunction = (file: File, onSuccess: (attachmentUrl: string) => void) => Promise<string>
Since we return a promise here: why do we even have the
onSuccess
callback? if it fails we could reject instead.I guess that's old and grown. Not sure how it is used, but yeah I guess we could use a promise.
@ -581,4 +578,3 @@
onBeforeUnmount(() => {
nextTick(() => {
if (typeof uploadCallback !== 'undefined') {
uploadCallback
might be undefined now, but it changed during runtime. So we should always try to remove the eventListener.I'm unsure but I think the `nextTick is a mistake here.
Does it work without the
nextTick
? Either there was some issue with it or I was frustrated and that kind of fixed it 😅277344d216
to184c2dbe4e
184c2dbe4e
toc279a20c96
c279a20c96
to0f72421695
0f72421695
to9bdfdb9452
9bdfdb9452
to490e29a7fa
Hi dpschen!
Thank you for creating a PR!
I've deployed the frontend changes of this PR on a preview environment under this URL: https://2453-feat-description-use-withdefault--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 somewhere. The easiest to use is https://try.vikunja.io/.
This preview does not contain any changes made to the api, only the frontend.
Have a nice day!
Checkout
From your project repository, check out a new branch and test the changes.