Commit Graph

600 Commits

Author SHA1 Message Date
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
Frederick [Bot] b6e22cba7d chore(i18n): update translations via Crowdin 2024-10-01 00:32:32 +00:00
kolaente 3855e179a9
fix(filters): clarify usage of reminders in filters 2024-09-29 21:11:08 +02:00
kolaente 9f9b00144b
fix(task): improve task delete modal on mobile 2024-09-29 13:47:35 +02:00
kolaente 308e634c71
fix(task): do not show close button when the task was not opened via modal 2024-09-29 13:36:30 +02:00
kolaente 54994a1671
fix(task): paginate task comments
Resolves https://github.com/go-vikunja/vikunja/issues/329
2024-09-29 13:28:29 +02:00
kolaente 15d95f16da
fix(checkbox): use sibling css selector instead of has
This makes the checkbox work as intended on older browsers which do not support the :has selector.

Resolves https://kolaente.dev/vikunja/vikunja/issues/2713
2024-09-25 14:38:17 +02:00
kolaente 204dccf08b
feat: add utm tag to powered by link 2024-09-23 12:07:06 +02:00
kolaente c35c70e71f
feat: do not load notifications while in the background 2024-09-23 10:31:09 +02:00
kolaente a7bd9dad24
feat(task): use focus-visible for task focus styles 2024-09-19 13:01:18 +02:00
kolaente 10e245f6d0
fix(a11y): hide unfocusable buttons 2024-09-19 12:50:47 +02:00
kolaente 010dd1ea22
fix(task): open focused task when pressing enter 2024-09-19 12:50:21 +02:00
kolaente 65a2814b2a
feat(navigation): use focus-visible for nav items 2024-09-19 12:36:33 +02:00
kolaente 4dd9d5de67
fix(filters): correctly transform and populate saved filter when creating and editing
This fixes a bug where the checkbox "include nulls" during creation was not checked but would be saved as such.
2024-09-19 12:21:19 +02:00
kolaente ec902b051b
fix(task): mark related task as done from the task detail view
Resolves https://github.com/go-vikunja/vikunja/issues/326
2024-09-19 11:31:06 +02:00
kolaente 16d7386975 fix(modal): make scrolling on iOS Safari work
This fixes a bug where the full-screen modal would not work on iOS Safari (and only there). It's unclear why this is happening due to a single overflow: visible statement though.

Resolves https://github.com/go-vikunja/vikunja/issues/325
2024-09-18 19:00:47 +02:00
kolaente 6d9bda8cc1 fix(projects): description not visible on mobile 2024-09-18 18:47:46 +02:00
kolaente abf92e29fa fix(task): dragging and dropping on mobile
This change fixes a regression introduced in 1cbb93ea9b.
In that change, the whole task area was made clickable using mouse events directly. Unfortunately, this also prevented the parent component of the task component to recieve them, essentially never getting notified about the mouse movement and thus never dragging the task. I don't know why this is only a problem on Safari, but it might be related to https://github.com/SortableJS/Sortable/issues/1571#issuecomment-535684451

Resolves https://community.vikunja.io/t/task-re-ordering-is-not-working-in-safari/1916
Resolves https://kolaente.dev/vikunja/vikunja/issues/2092
Resolves https://github.com/go-vikunja/vikunja/issues/304
2024-09-18 18:00:27 +02:00
kolaente f4d628550f chore(tasks): move drag options to direct attributes instead of v-bind 2024-09-18 16:34:24 +02:00
kolaente a1105434bf
chore: remove console.log 2024-09-18 13:38:30 +02:00
kolaente acc7c9f8f5
fix(editor): restore the current value, not the one from a previous task
Resolves https://community.vikunja.io/t/task-description-is-overwritten-when-pressing-esc-key/2813
2024-09-18 13:36:56 +02:00
kolaente cc64ca6406
fix(task): align task title on mobile popup 2024-09-18 11:36:06 +02:00
kolaente 6a5342bd49
fix(modal): do not prevent scrolling on mobile
Maybe related to https://github.com/go-vikunja/vikunja/issues/325
2024-09-15 11:38:17 +02:00
kolaente bf5cafc03f
fix: lint 2024-09-14 12:12:47 +02:00
kolaente f4a7326b68
fix(filter): do not replace labels keyword when the value is 'label'
Resolves https://community.vikunja.io/t/filtering-by-label-ux-issues/2393/16
2024-09-14 12:11:54 +02:00
kolaente 1451f6e46f
fix(kanban): correctly paginate filtered kanban buckets
Resolves https://github.com/go-vikunja/vikunja/issues/314
2024-09-14 09:37:21 +02:00
Frederick [Bot] 427eb2a618 chore(i18n): update translations via Crowdin 2024-09-14 00:25:59 +00:00
kolaente e4b541e653
fix(view): correctly get paginated task results 2024-09-13 22:56:41 +02:00
kolaente 5a7c3927f3
fix(view): correctly resolve label for filtered views or buckets 2024-09-13 19:14:54 +02:00
kolaente f425d98b4d
fix(filters): do not replace filter or project values when the id value resolves to undefined
This change fixes a bug where the label title in the query string would be replaced to undefined, resulting in an invalid filter. The underlying problem was the resolved filter query string got re-parsed and the id value of the labels were resolved to undefined (and rendered as that string) in the process.

Resolves https://community.vikunja.io/t/filtering-by-label-ux-issues/2393/14
2024-09-13 18:42:42 +02:00
kolaente 4c55016c1a
fix(task): multiple overlapping defer due date popups
Resolves https://github.com/go-vikunja/vikunja/issues/131
2024-09-13 17:44:26 +02:00
kolaente 1a8f12ac13
fix(kanban): do not mark first bucked as done bucket in filter bucket mode
Resolves https://github.com/go-vikunja/vikunja/issues/313
2024-09-13 11:52:44 +02:00
kolaente 7b873ec31c
fix(table): make sorting for two-word properties work
Resolves https://community.vikunja.io/t/various-sorting-filtering-issues/2781/8
2024-09-13 11:03:38 +02:00
Frederick [Bot] 14710d0bba chore(i18n): update translations via Crowdin 2024-09-13 00:25:12 +00:00
kolaente 945f25b818
fix(kanban): make kanban full width on mobile
Related to https://github.com/go-vikunja/vikunja/issues/309
2024-09-12 16:42:12 +02:00
kolaente f53b93d98a
fix(modal): make sure modal and its content scrolls properly on mobile
Related to https://github.com/go-vikunja/vikunja/issues/309
2024-09-12 16:22:18 +02:00
kolaente 97e030a1fc
fix(home): explicitly use filter for tasks on home page when one is set
Resolves https://github.com/go-vikunja/vikunja/issues/289
Resolves https://community.vikunja.io/t/various-sorting-filtering-issues/2781/5
2024-09-12 15:51:08 +02:00
kolaente 6bfe71b30e
fix(filters): immediately propagate changes
Resolves https://community.vikunja.io/t/filtering-startdate-now-is-invalid/2613/6
2024-09-12 15:28:39 +02:00
kolaente 7e38a9f442
fix(kanban): make task creation loading spinner actually visible 2024-09-12 14:33:44 +02:00
kolaente bdccd633fe
fix(labels): remove input interactivity when label edit is disabled 2024-09-12 13:39:03 +02:00
kolaente 1f3eb8f2a3
chore: fix comment 2024-09-12 13:39:03 +02:00
kolaente 3b8ccbad4f
fix(multiselect): make selectPlaceholder optional 2024-09-12 11:29:39 +02:00
kolaente cc1b4bbd1b
fix(task): make print styles work when printing task detail view from kanban
Resolves https://community.vikunja.io/t/feature-request-export-a-task-as-pdf/2735/6
2024-09-12 11:02:38 +02:00
Frederick [Bot] e1ea84fcd4 chore(i18n): update translations via Crowdin 2024-09-12 00:26:38 +00:00
kolaente 4aeb228c3a
fix(project): show description in title attribute without html
Resolves https://community.vikunja.io/t/feedback-to-vikunja-0-24-0/2557/6
2024-09-11 18:23:43 +02:00
kolaente b52d6dbf59
fix(projects): do not hide 6th project on project overview 2024-09-11 18:20:57 +02:00
kolaente 76f7797e56
chore: remove console.log 2024-09-11 18:14:10 +02:00
kolaente 55dd7d2981
fix(task): specify task index when creating multiple tasks at once
This change allows to specify the task index when creating a task, which will then be checked to avoid duplicates and used. This allows us to calculate the indexes for all tasks beforehand when creating them at once using quick add magic.
The method is not bulletproof, but already fixes a problem where multiple tasks would have the same index when created that way.

Resolves https://community.vikunja.io/t/add-multiple-tasks-at-once/333/16
2024-09-11 17:58:42 +02:00
kolaente 44a43b9f86
fix(auth): restrict max password length to 72 bytes
Bcrypt allows a maximum of 72 bytes. This is part of the algorithm and not something we could change in Vikunja. The solution here was to restrict the password during registration to a max length of 72 bytes. In the future, this should be changed to hash passwords with sha512 or similar before hashing them with bcrypt. Because they should also be salted in that case and the added complexity during the migration phase, this was not implemented yet.
The change in this commit only improves the error handling to return an input error instead of a server error when the user enters a password > 72 bytes.

Resolves https://vikunja.sentry.io/share/issue/e8e0b64612d84504942feee002ac498a/
2024-09-10 18:23:06 +02:00
kolaente eb95caf757
fix(password): validate password before sending request to api 2024-09-10 17:44:52 +02:00