Commit Graph

37 Commits

Author SHA1 Message Date
kolaente
ff47e77142 fix: maybe make some things work 2025-06-11 14:09:19 +02:00
kolaente
4d5bac320e fix(tasklist): refresh editor after checkbox toggle 2025-06-10 21:06:39 +02:00
kolaente
ce3d49cc02 fix(editor): make pasting a file work again
It seems like only one paste handler is possible - with the change  inf52a321acf19b8925a5285abf09ae3ed51ea4ca8 the paste handler for the image paste did not work anymore.

Resolves https://community.vikunja.io/t/feature-suggestion-paste-images-directly-into-description-comment-from-clipboard/3656
2025-05-20 16:57:26 +02:00
kolaente
96ec7b17bc fix(editor): upload image via toolbar button
Resolves https://community.vikunja.io/t/unable-to-add-task-attachments/3329
2025-03-09 12:52:16 +01:00
kolaente
4ba5aeb911 fix(editor): add rounded edges to code highlight 2025-03-09 09:27:18 +01:00
kolaente
f52a321acf feat: convert pasted markdown to html so that it is correctly rendered (#3041)
Resolves https://community.vikunja.io/t/markdown-as-first-class-citizen/2975/4

Reviewed-on: https://kolaente.dev/vikunja/vikunja/pulls/3041
Co-authored-by: kolaente <k@knt.li>
Co-committed-by: kolaente <k@knt.li>
2025-02-21 15:53:47 +00:00
Dominik Pschenitschni
30daf08b54 fix: TipTap reactive prop destructuring 2025-01-21 17:38:27 +00:00
kolaente
3f0eaa5487 fix(editor): make bubbling changes from outside work
This partially reverts a change introduced in ca1384e3c9 which led to a bug where a comment on a task, which was just saved, stayed in the editor. The editor switched to read-only mode after that.
2025-01-21 12:35:02 +01:00
Dominik Pschenitschni
a61e2d064d fix: lowlight imports for v3 2025-01-16 13:14:09 +01:00
Dominik Pschenitschni
140765ad20 feat: use TipTap starter-kit 2025-01-14 11:05:03 +01:00
renovate
ca1384e3c9 chore(deps): update dev-dependencies (#2754)
Co-authored-by: renovate <renovatebot@kolaente.de>
Co-committed-by: renovate <renovatebot@kolaente.de>
2024-10-26 18:06:51 +00: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
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
e2a87036e0 feat(editor): support custom protocol for links
Resolves https://github.com/go-vikunja/vikunja/issues/306
2024-08-12 11:42:43 +02:00
kolaente
db81701d38 fix: scss deprecation warning 2024-07-17 13:25:18 +02:00
Dominik Pschenitschni
f36115871c feat: camelcase global components 2024-06-19 14:02:14 +00:00
Dominik Pschenitschni
b98280c954 feat(components): align component name casing Button 2024-06-17 13:41:35 +02:00
Dominik Pschenitschni
2004d129c3 feat: reduce eslint warnings (#2396)
Also added `Destructuring the 'props' will cause the value to lose reactivity` as a warning to prepare for the removal of the propsDestructure option in vite.

Reviewed-on: https://kolaente.dev/vikunja/vikunja/pulls/2396
Reviewed-by: konrad <k@knt.li>
Co-authored-by: Dominik Pschenitschni <mail@celement.de>
Co-committed-by: Dominik Pschenitschni <mail@celement.de>
2024-06-17 09:18:02 +00:00
Elscrux
ebb093797c Rename discardShortcutEnabled to enableDiscardShortcut 2024-05-24 15:23:15 +02:00
Elscrux
c13a991c16 Merge import 2024-05-24 15:23:15 +02:00
Elscrux
ecd44059e4 Use if to conditionally add escape hotkey 2024-05-24 15:23:15 +02:00
Elscrux
308a98c876 Add discardShortcutEnabled setting to opt into this feature
Only editing the task description and comments have this feature enabled
2024-05-24 15:23:15 +02:00
Elscrux
6ad8ce8f44 Cancel current edits and exit edit mode with escape 2024-05-24 15:23:15 +02:00
Elscrux
9de48aa6b2 Enter edit mode when double clicking 2024-05-24 15:23:15 +02:00
kolaente
26ada628a2 fix(editor): use colors from color scheme to render table cells
Resolves https://github.com/go-vikunja/vikunja/issues/253
2024-04-21 23:57:07 +02:00
kolaente
7d755fcb89 fix: lint 2024-04-13 17:58:53 +02:00
kolaente
3e7225ebee fix(editor): do not prevent shift+enter to add a line break in text
Resolves https://github.com/go-vikunja/vikunja/issues/250
2024-04-13 14:08:27 +02:00
Elscrux
a3a4d05e89 feat(editor): checklist visual improvements (#2264)
This makes task lists (especially big ones) easier to read. I've set a margin so there is a distance between task items which makes them easier to stand out.
I've also changed the visuals of the checked elements (strike through + grey font color) so the unchecked ones stand out more. Note that this currently seems to be a big bugged outside of edit mode as `data-checked` doesn't seem to be updating correctly in this state which seems to be an issue that is already noted for the TipTap editor.

Co-authored-by: Elscrux <nickposer2102@gmail.com>
Reviewed-on: https://kolaente.dev/vikunja/vikunja/pulls/2264
Reviewed-by: konrad <k@knt.li>
Co-authored-by: Elscrux <elscrux@gmail.com>
Co-committed-by: Elscrux <elscrux@gmail.com>
2024-04-11 15:46:10 +00:00
kolaente
f34577f293 fix(editor): do not use Tiptap to open links when clicking on them, use the browser native attributes instead
It looks like links are opened twice, when the openOnClick option is enabled. That means they will get opened twice when clicking on them. Disabling that option will not fire the click handler and only rely on browser functionality to open links.

Resolves https://kolaente.dev/vikunja/vikunja/issues/2155
2024-03-13 19:23:02 +01:00
kolaente
99c5524115 fix(editor): don't allow image upload when it's not possible to do it 2024-03-13 16:59:57 +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
ff1730e323 fix: lint 2024-02-17 23:25:09 +01:00
kolaente
f120d72211 fix(editor): revert task list dependence on ids
This partially reverts 3969f6ae66. Adding ids to task list items is not as simple and actually made it worse in some cases. Hence we stick to comparing the content of nodes for now, until this is properly fixed in tiptap.

Related https://kolaente.dev/vikunja/vikunja/issues/2091#issuecomment-60063
2024-02-17 23:13:51 +01:00
kolaente
32edef2d38 fix(editor): set default id of tasklist items
This fixes a bug where all tasklist items would have the same id which would check all of them when checking one of them.
2024-02-17 11:38:20 +01:00
kolaente
3969f6ae66 fix(editor): ensure task list clicks are only fired once
Before this fix, clicking on a task list item with the same name as another one, both would get marked as done. This was due to the mechanism which walks the dom tree to look for the node to update used its content for comparison. To prevent this, this fix first added unique ids to all task list items and then compared the nodes based on their id instead of the content.

Resolves https://kolaente.dev/vikunja/vikunja/issues/2091
2024-02-14 14:13:03 +01:00
kolaente
fc4676315d chore: move frontend files 2024-02-07 14:56:56 +01:00