Commit Graph

10395 Commits

Author SHA1 Message Date
kolaente d50572c544
fix(project): permission query on mysql 2024-10-15 12:16:22 +02:00
kolaente 302424b047
fix: lint 2024-10-15 11:57:49 +02:00
kolaente cda8155de4
fix(projects): correctly check inherited permissions 2024-10-15 11:56:51 +02:00
kolaente 38964ace04
fix(task): do not allow saving an empty description
Resolves https://github.com/go-vikunja/vikunja/issues/338
2024-10-13 19:38:42 +02:00
kolaente 21af73ff93
fix(caldav): use subpath for caldav url in frontend
Resolves https://github.com/go-vikunja/vikunja/issues/337
2024-10-13 19:32:45 +02:00
kolaente 92b90013ab
feat(projects): optionally return max right when querying all projects
This change introduces an expand query parameter which, when provided, allows to return all projects with the max right the current user has on that project. This allows to show and hide appropriate buttons in the frontend.

Resolves https://github.com/go-vikunja/vikunja/issues/334
2024-10-13 19:22:09 +02:00
kolaente 3e9c41cfc6
fix(api): allow api tokens to retrieve the user who created the token
Resolves https://kolaente.dev/vikunja/vikunja/issues/2644
2024-10-13 16:02:53 +02:00
kolaente a88124cfce
feat: make used bcrypt rounds configurable
This allows to configure the used bcrypt rounds and set it to 4 in tests, greatly speeding up the tests. It's not really required to set this to another value but it might be in the future as computers get faster.
2024-10-13 15:38:04 +02:00
renovate e22fb1e73e fix(deps): update module github.com/yuin/goldmark to v1.7.6 2024-10-12 15:15:27 +00:00
renovate a015a4f3af fix(deps): update module github.com/yuin/goldmark to v1.7.5 2024-10-12 14:14:50 +00:00
Frederick [Bot] 9cf18a2efa chore(i18n): update translations via Crowdin 2024-10-12 00:31:54 +00:00
renovate 8832b9de29 fix(deps): update dependency vue to v3.5.12 2024-10-11 15:15:34 +00:00
renovate a4a52f4747 fix(deps): update dependency @sentry/vue to v8.34.0 2024-10-11 07:15:49 +00:00
kolaente 9219f7032e
fix: error reporting 2024-10-11 08:54:50 +02:00
kolaente 35a463c984
fix(filters): prevent position and bucket ID overriding position of existing tasks
This fixes a bug where the task position in a task was updated and immediately overridden by the update event handler.

Resolves https://community.vikunja.io/t/not-able-to-move-task-between-buckets-within-a-kanban-view-for-saved-filter/2882
2024-10-10 16:05:31 +02:00
kolaente 8ab387396d
fix: do not try to reindex tasks into typesense when it is not set up 2024-10-10 16:01:17 +02:00
renovate ab03a8bb2c chore(deps): update dependency typescript to v5.6.3 2024-10-09 00:15:24 +00:00
renovate de09bb779f fix(deps): update dependency express to v4.21.1 2024-10-08 19:14:47 +00:00
renovate 7e69200483 chore(deps): update dependency @types/node to v20.16.11 2024-10-08 09:00:39 +00:00
renovate e124d09738 fix(deps): update dependency @kyvg/vue3-notification to v3.4.0 2024-10-07 22:15:34 +00:00
renovate 12894c4619 chore(deps): update pnpm to v9.12.1 2024-10-07 14:14:53 +00:00
renovate 841cf10545 chore(deps): update dependency caniuse-lite to v1.0.30001667 2024-10-07 11:57:12 +00:00
renovate b31e95d439 fix(deps): update module golang.org/x/crypto to v0.28.0 2024-10-06 15:22:25 +00:00
renovate 3efa9577c7 fix(deps): update dependency vue-i18n to v10.0.4 2024-10-06 15:21:55 +00:00
renovate e21138e1c7 fix(deps): update module golang.org/x/term to v0.25.0 2024-10-06 15:21:09 +00:00
renovate 2b44b5f7cd fix(deps): update dependency @sentry/vue to v8.33.1 2024-10-06 14:15:09 +00:00
renovate 07faa1b1b3 fix(deps): update dependency vue to v3.5.11 2024-10-06 13:40:12 +00:00
renovate 9dcbfb0514 fix(deps): update module golang.org/x/sys to v0.26.0 2024-10-06 13:39:34 +00:00
renovate 2e67a42021 fix(deps): update module golang.org/x/image to v0.21.0 2024-10-06 13:39:03 +00:00
renovate cb9e84908f fix(deps): update module golang.org/x/text to v0.19.0 2024-10-05 17:43:13 +00:00
renovate 8a003db3af fix(deps): update module github.com/mattn/go-sqlite3 to v1.14.24 2024-10-04 16:15:13 +00:00
Frederick [Bot] de110b37be chore(i18n): update translations via Crowdin 2024-10-04 00:32:06 +00:00
renovate f10e8dc30f chore(deps): update dependency rollup to v4.24.0 2024-10-03 06:47:11 +00:00
Frederick [Bot] 3b7f78eaa5 chore(i18n): update translations via Crowdin 2024-10-03 00:31:16 +00:00
renovate 7070c88894 fix(deps): update dependency @sentry/vue to v8.33.0 2024-10-02 15:46:49 +00:00
renovate d657a853fa chore(deps): update pnpm to v9.12.0 2024-10-02 13:14:55 +00:00
kolaente d81f2db6ef
chore: replace all uses of bucket_id with the const 2024-10-02 10:43:51 +02:00
kolaente 425f6378c6
fix(kanban): make loading tasks for a bucket work
This fixes two closely-related bugs:
1. When loading tasks from a bucket of a saved filter, the saved filter query would override the user-supplied filter, which would cause to only tasks matching the saved filter query to be returned.
2. When a filter query for a bucket was specified, the function would only check if one of the top level filters was a filter for tasks in a specific bucket. That means a filter like "bucket_id = 42 && labels = foo" would return the expected result, while a filter like "labels = foo && (bucket_id = 42 && priority = 1)" would fail with an error 500 because the task_buckets table was not joined to the sql query. The fix from the first bug caused such filter queries.
2024-10-02 10:41:38 +02:00
renovate b6806acda0 chore(deps): update dependency go to v1.23.2 2024-10-02 07:46:06 +00:00
renovate fa873f5540 fix(deps): update dependency pinia to v2.2.4 2024-10-02 07:45:50 +00:00
DanielPantle faff1040dc feat(task): cancel editing task title with escape (#2730)
With this change, it is possible to cancel editing the task title with pressing the escape key.

# Problem

Before it was not possible to cancel editing the task title. Pressing outside the title saves the changes that have already been done (which is intended I think). But when e.g. pasting something with a wrong format, I was not able to revert the change without saving and editing it again

Example: after accidentially pasting something with multiple lines it is not possible to escape, the only way to revert this is to save and edit again manually:
![grafik.png](/attachments/11d3559a-3111-458f-9a9c-4107292054fa)

# Solution

This PR implements a listener for the escape key that sets the title back to its original value and blurs the focus of the title

# Additional notes

- I checked this in the "page" view of the task and the "popup" view and it worked in both. For me, the popup does not close with the escape key (as it often does on other sites), therefore there is no collision with this function. But I think it would be good to check this again to make sure it does not break anything like this
- I don't know anything about testing in this repository, if it is possible/necessary to implement a test for this feature please leave a comment :)

Co-authored-by: Daniel Pantle <daniel.pantle@newtec.de>
Reviewed-on: https://kolaente.dev/vikunja/vikunja/pulls/2730
Co-authored-by: DanielPantle <danielpantle@noreply.kolaente.dev>
Co-committed-by: DanielPantle <danielpantle@noreply.kolaente.dev>
2024-10-02 07:32:33 +00:00
renovate 4c74a3f859 chore(deps): update dev-dependencies 2024-10-02 05:14:56 +00:00
Frederick [Bot] b6e22cba7d chore(i18n): update translations via Crowdin 2024-10-01 00:32:32 +00:00
renovate 3271a935c5 fix(deps): update tiptap to v2.8.0 2024-09-30 19:20:55 +00:00
renovate 8be3321efd fix(deps): update dependency pinia to v2.2.3 2024-09-30 18:15:23 +00:00
kolaente 80d22d5060
fix(colors): truncate longer hex color values
Resolves https://vikunja.sentry.io/share/issue/6f1e37d4b8b248188e20650234a45cde/
2024-09-30 20:06:10 +02:00
kolaente 1eaeb8d003
fix(filters): change assertion based on the environment 2024-09-30 19:54:00 +02:00
kolaente 8d05b5cb01
fix(filters): return more details when the provided filter time zone is invalid 2024-09-30 08:42:16 +02:00
kolaente 754d56ca82
fix(filters): increase year value when using mysql and year < 1
Mysql cannot handle year values < 1. That means filtering for a date value like 0000-01-01 won't work with mysql. Additionally, dates like 0001-01-01 could under some circumstances not work either when the date in combination with the time zone would resolve to something like 0000-12-31 - for example when the server is located (and configured) in UTC, but the user running the query is in New York. This could be observed by setting the time zone manually using the filter_timezone query parameter.

Resolves https://vikunja.sentry.io/share/issue/42bce92c15354c109eb1e6488b6a542b/
Resolves https://vikunja.sentry.io/share/issue/ef81451b0c7b43f1bff2d3a86ba393bb/
2024-09-30 08:41:24 +02:00
kolaente d22bc79d3c
chore(tasks): add more details to error message
Trying to debug https://vikunja.sentry.io/share/issue/ef81451b0c7b43f1bff2d3a86ba393bb/
2024-09-29 21:44:28 +02:00