1
0

36 Commits

Author SHA1 Message Date
Dominik Pschenitschni
0ca43dc147
fix: remove console log
(cherry picked from commit 413798b3211ee53e0e1c70a8b616979906c70635)
2024-08-12 20:16:43 +02:00
Dominik Pschenitschni
96884372b4
fix(projects): trigger only single mutation
Previously these store methods created multiple edits on deep objects in the store or edited a deep nested object directly.

This is bad because:
- multiple edits lead to multiple triggers of all the watchers on the project.
- in theory we should listen deep to a project if we use some deep reactive value of a project, if we want deep updates. Because this is easy to forget, it's better to update the project directly. For this the method `setProject` already existed in the store. This is no real overhead because Vue is smart enough to only trigger listeners that use data of the modified state.

By modifying only a copy of the view and submitting the modified result __once__ we can save us a lot of headache.

PS: I'm not sure if there were any visible problems, because Vue is really fast and the reactivity system works quite well. Regardless of this we should try not to modify state unnecessarily.
(cherry picked from commit 1e632397d29e9d45609b9271e00111c0a6cb2c57)
2024-08-12 20:16:15 +02:00
Dominik Pschenitschni
a0e3efe2d1
feat: improve label store
(cherry picked from commit 2a6ba7e7f0162bb050575908e7ca80f4b0292398)
2024-08-12 20:16:12 +02:00
Dominik Pschenitschni
d707e1576a
feat: improve projects store
(cherry picked from commit 1e523a1a39810ffd578f15fbefe034c70ed5a066)
2024-08-12 20:16:11 +02:00
kolaente
12474e5be6
fix(kanban): make sure tasks which changed their done status are moved around in buckets
This fixes a bug where tasks which had their done status changed were not moved in the correct bucket. This affected both frontend and api. The move of the task between buckets is now correctly done in the api and frontend - with a bit of duplicated logic between the two. This could be optimized further in the future.

Resolves https://kolaente.dev/vikunja/vikunja/issues/2610
2024-07-18 12:39:29 +02:00
kolaente
f1d9e4f25c
fix(quick add magic): create the task even when it only contains quick add magic keywords
Resolves https://github.com/go-vikunja/vikunja/issues/282
2024-07-17 14:16:21 +02:00
kolaente
ed5feee33a
fix(kanban): move task to done bucket when it was marked done from the task detail view 2024-07-17 13:56:43 +02:00
kolaente
10bad95440
fix(auth): log user out when the current account does not exist 2024-07-02 12:27:19 +02:00
kolaente
d12deee977
feat(views): allow reordering views
Resolves https://community.vikunja.io/t/reordering-views/2394
2024-06-18 16:39:52 +02:00
kolaente
9f604eca79
fix(tasks): clarify usage of repeating modes available in quick add magic.
Originally, it was possible to specify repeating intervals for months or years. This was actually misleading because the interval would be converted to seconds under the hood, causing all kinds of problems with leap years and months with 30 vs 31 days. Because of that, the options for month and year were removed in 7746d3916157e43fca7a24e2a768f7fb83136cf1 to make it clear what these actually meant.
Now, since we do have a repeating mode "Monthly", this commit changes the behaviour to repeat a task monthly when it was specified as "every month", but only that. All other cases were removed from the docs since they are not actually supported.

https://github.com/go-vikunja/vikunja/issues/271
2024-06-18 15:41:30 +02:00
Dominik Pschenitschni
917cbf9cb6 fix(vue): toValue instead of unref 2024-06-10 13:53:13 +00:00
kolaente
e1dcf2e859
feat: do not save language on the server when in demo mode
When the demo mode is enabled, people set the language to their own language - which is understandable. However, this is really confusing for other people when they log in and the language is something unexpected.
This change overrides the configured language when saving it while Vikunja is in demo mode.
2024-05-07 18:39:50 +02:00
kolaente
84197dd9c1
fix: correctly return error and bubble up when the api could not be reached 2024-04-21 23:33:50 +02:00
kolaente
574c7f218e
fix(labels): allow link shares to add existing labels to a task
Resolves https://github.com/go-vikunja/vikunja/issues/252
2024-04-21 15:12:27 +02:00
kolaente
0bc9a670d7
fix(task): do not crash when loading a task if parent projects are not loaded
Related to https://community.vikunja.io/t/vikunja-freezes/2246
Related to https://github.com/go-vikunja/vikunja/issues/233
2024-04-12 17:56:19 +02:00
kolaente
7acd1a7e51
fix(project): remove child projects from state when deleting a project 2024-04-07 15:03:18 +02:00
kolaente
fd4312382e
fix(kanban): remove unused function 2024-03-20 11:46:36 +01:00
kolaente
2dcf6c6861
fix(kanban): do not use the bucket id saved on the task 2024-03-20 11:36:54 +01:00
kolaente
7c30b00668
fix(views): correctly pass project id when loading more tasks in kanban views 2024-03-19 13:55:05 +01:00
kolaente
4b903c4f48
fix(views): lint 2024-03-19 00:47:52 +01:00
kolaente
bec9e3eb7d
fix(views): set current project after modifying views 2024-03-19 00:47:51 +01:00
kolaente
434b1ea0e8
feat(views): crud in frontend 2024-03-19 00:47:50 +01:00
kolaente
27cb6e3372
fix(views): make bucket edit work 2024-03-19 00:47:50 +01:00
kolaente
ca0550acea
fix(views): fetch buckets through view 2024-03-19 00:47:48 +01:00
kolaente
cf15cc6f12
feat(views): fetch tasks via view context when accessing them through views 2024-03-19 00:47:47 +01:00
kolaente
cf6b476b7d
chore: cleanup leftover console.log 2024-03-12 21:33:24 +01:00
kolaente
a5c51d4b1e feat: emoji reactions for tasks and comments (#2196)
This PR adds reactions for tasks and comments, similar to what you can do on Gitea, GitHub, Slack and plenty of other tools.

Reviewed-on: https://kolaente.dev/vikunja/vikunja/pulls/2196
Co-authored-by: kolaente <k@knt.li>
Co-committed-by: kolaente <k@knt.li>
2024-03-12 19:25:58 +00:00
kolaente
49ab90fc19
fix: lint 2024-03-11 17:24:40 +01:00
kolaente
e097721817
fix(tasks): use correct filter query when filtering 2024-03-11 16:39:27 +01:00
kolaente
a66e26678e
feat(filters): pass timezone down when filtering with relative date math
Resolves https://community.vikunja.io/t/my-vikunja-instance-creates-tasks-with-due-date-time-of-9am-for-tasks-with-the-word-today-word-in-it/2105/8
2024-03-11 16:28:25 +01:00
kolaente
dbfe162cd2
fix(filters): label highlighting and autocomplete fields now work with in operator
Previously, when creating a filter query with the 'in' operator and multiple values, autocompletion and highlighting was not available. This change now implements a split for each value, seperated by a comma.
2024-03-11 15:41:06 +01:00
waza-ari
ffa82556e0 feat(teams): add public flags to teams to allow easier sharing with other teams (#2179)
Resolves #2173
Co-authored-by: Daniel Herrmann <daniel.herrmann1@gmail.com>
Reviewed-on: https://kolaente.dev/vikunja/vikunja/pulls/2179
Reviewed-by: konrad <k@knt.li>
Co-authored-by: waza-ari <daniel.herrmann@makerspace-darmstadt.de>
Co-committed-by: waza-ari <daniel.herrmann@makerspace-darmstadt.de>
2024-03-10 14:04:32 +00:00
kolaente
1d2f3ca546
feat(filter): resolve label and project ids back to titles when loading a filter 2024-03-09 19:07:31 +01:00
kolaente
89b01e86bc
fix(projects): load all projects when first opening Vikunja 2024-03-02 13:43:04 +01:00
kolaente
2d5c496397
fix(kanban): pass active filters down to task lazy loading
Before this change, applying a filter and then scrolling a bucket would not use that filter when lazy loading the tasks in that bucket. That resulted in all tasks being loaded, regardless if the filter applied to them.
2024-02-27 16:10:19 +01:00
kolaente
fc4676315d
chore: move frontend files 2024-02-07 14:56:56 +01:00