Commit Graph

10670 Commits

Author SHA1 Message Date
Dominik Pschenitschni
2783df1918 feat: rename visible to isReady
By changing the naming we make it clearer _why_ we want elements to be visible (because the loaded data is ready). Also `v-if` already implies the meaning of the original term (if the expression inside v-if resolves to true the content will be visible).

The new naming is borrowed from https://vueuse.org/core/useAsyncState/.

This loading is still missing error handling, but I want to separate that in another change
2024-12-19 18:05:46 +01:00
kolaente
f520881538 fix(kanban): do not close task input after creating tasks
Resolves https://kolaente.dev/vikunja/vikunja/issues/2192
2024-12-19 17:16:13 +01:00
kolaente
bfb7cf9403 fix(project): only show create task cta when the user has permission to write to the project
Resolves https://community.vikunja.io/t/create-a-task-link-in-empty-project-for-read-only-share-links/3127
2024-12-19 17:09:14 +01:00
renovate
9c5f35a0d8 fix(deps): update tiptap to v2.10.4 2024-12-19 13:07:05 +00:00
kolaente
2185d36d36 fix(kanban): disable create button when bucket limit is reached 2024-12-19 12:53:56 +01:00
renovate
4afc77488e fix(deps): update module github.com/labstack/echo/v4 to v4.13.3 2024-12-19 06:06:46 +00:00
Frederick [Bot]
cbee46b403 chore(i18n): update translations via Crowdin 2024-12-19 00:23:21 +00:00
kolaente
9eb5c62b01 fix: do not fail to load projects without views via link share
Resolves https://community.vikunja.io/t/undefined-error-when-sharing-an-empty-project/3126
2024-12-18 21:47:41 +01:00
renovate
1387f1c497 fix(deps): update dependency @sentry/vue to v8.47.0 2024-12-18 16:07:01 +00:00
Dominik Pschenitschni
f76970b5a3 chore: explicit function origin (#2945)
Nothing world changing. I realised recently that I prefer explicitly calling methods of stores and do the same with their states.
Similar to how one would do that with classes.

Since I might make more changes like this in the future (maybe also part of other PRs) I though I'd explain my reasoning here in a bit more detail:

__Benefits__

- saves local mappings, like the `const updateConfig = () => configStore.update()`
- there is no need to look up what exactly is updated, since the function is provide by the store.

__Disadvantages__

- a little bit more verbose (but not thaaat big difference)

---

TLDR: When reading the code this saves the step to check what was mapped.

Reviewed-on: https://kolaente.dev/vikunja/vikunja/pulls/2945
Reviewed-by: konrad <k@knt.li>
Co-authored-by: Dominik Pschenitschni <mail@celement.de>
Co-committed-by: Dominik Pschenitschni <mail@celement.de>
2024-12-18 15:24:42 +00:00
renovate
98be0d6f67 chore(deps): update dependency cypress to v13.17.0 2024-12-18 00:07:16 +00:00
kolaente
d046599192 docs: clarify typesense url protocol 2024-12-17 21:53:49 +01:00
renovate
e8ca2a9ab8 fix(deps): update dependency tailwindcss to v3.4.17 2024-12-17 20:06:52 +00:00
renovate
bdc3dae4f3 fix(deps): update dependency @sentry/vue to v8.46.0 2024-12-17 13:06:47 +00:00
renovate
2412d29a40 chore(deps): update dev-dependencies 2024-12-17 10:06:56 +00:00
kolaente
703a88e99f fix: lint 2024-12-17 10:53:18 +01:00
renovate
336b3448cf fix(deps): update font awesome to v6.7.2 2024-12-16 22:24:47 +00:00
kolaente
4359819faf fix(auth): do not allow commas in usernames 2024-12-16 23:09:35 +01:00
renovate
3f97414497 fix(deps): update dependency @sentry/vue to v8.45.1 2024-12-16 13:06:58 +00:00
kolaente
47ff7d8ad3 fix(migration): fetch members when they do not exist
Resolves https://github.com/go-vikunja/vikunja/issues/378
2024-12-15 13:11:29 +01:00
renovate
dc379b7a7e chore(deps): update dev-dependencies 2024-12-14 00:07:42 +00:00
Dominik Pschenitschni
6a2a8c106b fix: LinkSharing race condition (#2932)
This fixes a race condition and should potential fix some flaky Cypress tests:

<img width="630" alt="Screenshot 2024-12-12 at 10.53.56.png" src="attachments/21dce132-7f1a-4e19-b14c-b0a868daa20e">

-----

Before `selectedView` was filled with an initial value that depended on the the related project being loaded before the shared links, since the assignment happened directly after the views have been loaded.

This fix ensures that the correct project has been loaded before it's accessed to look up the id of the first view.

-----

@konrad: Now that I finished this PR I'm a bit unsure if it's the "correct" way to solve this.

Because for existing share links it might be better if the links save the selected view as a property. Currently a change of the view only changes the created link in the frontend. When you change the view and reload the link stays the same.

I'm unsure if editing the selected view is something that we want (or is even possible depending on what the hash represents).
So maybe we should only support the following: The user selects a view when creating a linkShare and and different from before it will be saved.

Even with those additional changes we still need something similar to the changes of this PR, since we would still need to load the available view ids for the creation of a new link share.

Reviewed-on: https://kolaente.dev/vikunja/vikunja/pulls/2932
Co-authored-by: Dominik Pschenitschni <mail@celement.de>
Co-committed-by: Dominik Pschenitschni <mail@celement.de>
2024-12-13 20:44:33 +00:00
kolaente
28a58303f0 fix(auth): convert to int when failed password value is not int
Resolves https://github.com/go-vikunja/vikunja/issues/377
2024-12-13 20:46:36 +01:00
renovate
01c84be945 fix(deps): update dependency @sentry/vue to v8.45.0 2024-12-13 15:38:49 +00:00
Dominik Pschenitschni
b579041185 fix(test): wait for project to be loaded
fixes flaky test
2024-12-13 14:43:18 +01:00
renovate
e3260772ca chore(deps): update dependency sass-embedded to v1.83.0 2024-12-13 00:10:13 +00:00
renovate
a65955b409 fix(deps): update module github.com/labstack/echo/v4 to v4.13.2 2024-12-12 10:12:22 +00:00
renovate
9a9abe53da chore(deps): update dev-dependencies 2024-12-12 07:09:51 +00:00
kolaente
b3040b8466 fix(notifications): handle user mentioned notification 2024-12-11 19:15:09 +01:00
kolaente
b3c93ae811 fix(task): do not update all project_view ids
Might fix https://community.vikunja.io/t/not-able-to-move-task-between-buckets-within-a-kanban-view-for-saved-filter/2882/6
2024-12-11 18:50:01 +01:00
kolaente
a1cf2b8bc7 fix(tasks): add new task only once to list when added
Fixes a regression introduced in 2ac11b13a1
2024-12-11 18:42:07 +01:00
kolaente
6f9b0ddfe7 fix(tasks): do not show import hint when using a filter as home tasks and already imported
This fixes a bug where the "import your tasks from other platforms" would be shown even if the user had already imported tasks. The bug was caused by the heuristic "there are tasks" was not evaluated when tasks were loaded through a filter

Resolves https://github.com/go-vikunja/vikunja/issues/372
2024-12-11 18:28:29 +01:00
kolaente
c9a68d3a63 fix(openid): lint 2024-12-11 17:10:41 +01:00
kolaente
7ac2c42e4d fix(caldav): fetch saved filter
This fixes a bug which caused fetching saved filter and favorite projects to crash, because the respective project ID is not a valid project id without special handling.
2024-12-11 17:05:51 +01:00
kolaente
5abca0927b fix(caldav): do not crash with error 400 when fetching the list of all projects
Because the "all projects" handler is the same as the one to fetch a single project, the handler would fail because no project was specified. However, it should return an empty project instead so that it later fetches all projects.

Resolves https://community.vikunja.io/t/http-400-when-trying-to-connect-via-caldav/3054
2024-12-11 16:51:30 +01:00
kolaente
4512045cbf fix: check if all required keys are available when parsing openid configuration
Related to https://github.com/go-vikunja/vikunja/issues/371
2024-12-11 16:25:41 +01:00
kolaente
e56a01f42d chore: remove default healthcheck in docker
The healtcheck takes really long to initialize, which might cause unnecessary downtime. This removes the default healthcheck from the dockerfile to avoid that for all users. It is still possible to add the healthcheck manually.
2024-12-11 15:17:36 +01:00
Dominik Pschenitschni
cff602c246 feat: remove @vitejs/plugin-legacy (#2921)
Quote:
> Vite's default browser support baseline is Native ESM, native ESM dynamic import, and import.meta. This plugin provides support for legacy browsers that do not support those features when building for production.

Since all three feature now have more than 97% market share it seems fine to remove them.

Reviewed-on: https://kolaente.dev/vikunja/vikunja/pulls/2921
Co-authored-by: Dominik Pschenitschni <mail@celement.de>
Co-committed-by: Dominik Pschenitschni <mail@celement.de>
2024-12-11 13:15:05 +00:00
Dominik Pschenitschni
13d52c721d fix: remove dompurify stub types 2024-12-11 13:14:03 +00:00
Dominik Pschenitschni
98c10acb50 fix: remove @types/lodash.clonedeep
package was replaced by klona
2024-12-11 13:53:44 +01:00
renovate
9b5ee28a69 fix(deps): update module github.com/labstack/echo/v4 to v4.13.1 2024-12-11 11:18:32 +00:00
Dominik Pschenitschni
8f5be72104 chore: remove the option modern-compiler
'modern-compiler' is the default if 'sass-embedded' is used since vite 6,
see: https://vite.dev/config/shared-options#css-preprocessoroptions
2024-12-11 10:49:07 +01:00
Dominik Pschenitschni
07df606c68 fix: resetEmptyTitleError (#2889)
Reviewed-on: https://kolaente.dev/vikunja/vikunja/pulls/2889
Reviewed-by: konrad <k@knt.li>
Co-authored-by: Dominik Pschenitschni <mail@celement.de>
Co-committed-by: Dominik Pschenitschni <mail@celement.de>
2024-12-10 20:08:15 +00:00
Dominik Pschenitschni
e8a07fc8e0 feat: add vite-plugin-vue-devtools 2024-12-10 18:40:27 +01:00
renovate
a800cbed5f fix(deps): update dependency @sentry/vue to v8.43.0 2024-12-10 15:24:54 +00:00
kolaente
2ac11b13a1 fix(tasks): creating subtasks with quick add magic should show up once
Because the tasks were emitted as the relation was created, when a task had multiple subtasks the parent was emitted multiple times and thus, shown multiple times in the list view. This change fixes that behaviour by emitting all tasks at the end, when all relations are created.
2024-12-10 15:21:50 +01:00
kolaente
9aca4ca0f6 fix(favorites): do not return subtasks on favorites page
This fixes an issue where all subtasks of a tasks would show up on the favorites page, even if they were not marked as favorite.

Resolves https://github.com/go-vikunja/vikunja/issues/375
2024-12-10 14:31:28 +01:00
renovate
2c9625b26b chore(deps): update dev-dependencies to v8.18.0 2024-12-10 00:19:23 +00:00
kolaente
25fd0f6108 fix(filter): correctly create task positions during filter creation
This fixes a bug where a saved filter would contain many "dead" entries for tasks which are not part of that filter. These entries were "dead" because the filter would not match for them and thus they were not shown.
The problem was caused by a routine during the creation of the filter where all projects from all matching tasks would be used as input for fetching the tasks to add to task_positions.

https://community.vikunja.io/t/not-able-to-move-task-between-buckets-within-a-kanban-view-for-saved-filter/2882/3
2024-12-09 19:21:13 +01:00
kolaente
942c2e4af6 fix: specify cols when upgrading
Resolves https://github.com/go-vikunja/vikunja/issues/367
2024-12-09 17:42:31 +01:00