Commit Graph

12435 Commits

Author SHA1 Message Date
kolaente
84b2b785df chore: remove design document from version control 2025-11-27 20:00:13 +01:00
kolaente
14fe102337 refactor: add Project field to notification structs
- Add Project field to TaskCommentNotification, TaskAssignedNotification,
  and UserMentionedInTaskNotification structs
- Populate Project when creating notifications in listeners
- Remove project fetching from ToMail methods
- Remove unused fallback translation key
- Remove unused db import from notifications.go
2025-11-27 19:56:50 +01:00
kolaente
7fbf86c175 remove unused function 2025-11-27 19:48:55 +01:00
kolaente
b312a1b6d3 docs: add conversational email notifications design specification
- Document GitHub-inspired design requirements
- Specify dual template system (formal vs conversational)
- Define color palette and typography standards
- Outline notification categorization (interactive vs system)
- Include implementation guidelines and examples
- Provide visual comparison between email styles
2025-11-27 19:40:01 +01:00
kolaente
ad2f83663c feat: convert interactive notifications to conversational style
- Update TaskCommentNotification to use conversational template
- Update TaskAssignedNotification for all assignment scenarios
- Update UserMentionedInTaskNotification for mentions and new tasks
- Replace hard-coded strings with i18n translation keys
- Add project title fetching with translated fallbacks
- Generate GitHub-style header lines for all interactive notifications
- Maintain formal style for system notifications (unchanged)

Interactive notifications now use:
- Conversational email template (no logo, GitHub styling)
- Translated action descriptions
- Project context in header lines
- Consistent 14px font sizing
2025-11-27 19:39:42 +01:00
kolaente
b3dd1be200 feat: add translation keys for conversational email actions
- Add action translation keys for conversational notifications
- Include keys for comments, mentions, and assignments
- Add fallback translation for project names
- Support parameterized translations for assigned user names
- Prepare for full internationalization of conversational emails

Translation keys added:
- notifications.common.actions.left_comment
- notifications.common.actions.mentioned_you_comment
- notifications.common.actions.mentioned_you
- notifications.common.actions.mentioned_you_new_task
- notifications.common.actions.assigned_you
- notifications.common.actions.assigned_themselves
- notifications.common.actions.assigned_user
- notifications.common.fallbacks.project
2025-11-27 19:39:29 +01:00
kolaente
071e84243d feat: add avatar URL generation method for email notifications
- Add GetAvatarURL() method to User model
- Support configurable avatar sizes with 20px default for emails
- Use ServicePublicURL config for full avatar URLs
- Fallback to relative URLs when public URL not configured
- Prepare foundation for avatar integration in email headers
2025-11-27 19:39:18 +01:00
kolaente
dc295aa0a9 test: add comprehensive tests for conversational email system
- Add tests for conversational flag functionality
- Test template selection logic (conversational vs formal)
- Verify GitHub-style header line format and styling
- Test action link font size consistency (14px)
- Add translation system integration tests
- Ensure backward compatibility with existing formal emails
- Test footer rendering and action link styling
2025-11-27 19:39:07 +01:00
kolaente
c8c79cc585 feat: add conversational mail support and GitHub-style header
- Add Conversational() method to Mail struct for template selection
- Add IsConversational() method for testing conversational flag
- Implement CreateConversationalHeader() for GitHub-style header lines
- Header format: {Username} {action} ({Project} > {Task})
- Use GitHub blue color (#0969da) for task links
- Add proper margin and styling for conversational headers
2025-11-27 19:38:57 +01:00
kolaente
738c907a03 feat: add conversational email template with GitHub-style design
- Add new conversational HTML template without Vikunja logo
- Use GitHub color palette (#f6f8fa, #0969da, #24292f, #d1d9e0)
- Implement system fonts (-apple-system, BlinkMacSystemFont)
- Set max-width 700px with proper padding
- Add inline action links with arrow (→) instead of buttons
- Include proper footer styling with conditional borders
- Maintain backward compatibility with existing formal template
2025-11-27 19:38:46 +01:00
kolaente
e5b35e0584 feat: add conversational style emails for some notifications 2025-11-27 16:57:46 +01:00
kolaente
51512c1cb4 feat: migrate cypress e2e tests to playwright (#1739) 2025-11-27 16:34:48 +01:00
Frederick [Bot]
23a6ae19ea [skip ci] Updated swagger docs 2025-11-27 14:22:39 +00:00
Mithilesh Gupta
7dddc5dfa2 feat: task unread tracking (#1857)
---------

Co-authored-by: Mithilesh Gupta <guptamithilesh@protonmail.com>
Co-authored-by: kolaente <k@knt.li>
2025-11-27 15:14:42 +01:00
kolaente
2976d6f676 fix: use shift+r for reminder shortcut on apple devices 2025-11-26 23:58:01 +01:00
kolaente
869bb6e014 docs: fix sticker link 2025-11-26 23:58:01 +01:00
kolaente
f7acdf4ac1 fix: don't try to switch to project 0 when reloading the page (#1855) 2025-11-26 23:28:05 +01:00
kolaente
34575e4eb7 fix(editor): don't convert text that's pasted into a code block to markdown
Resolves https://community.vikunja.io/t/pasting-into-code-block-renders-markdown/4181
2025-11-26 23:27:33 +01:00
renovate[bot]
f7bdb996ca chore(deps): update dev-dependencies 2025-11-26 13:47:07 +01:00
kolaente
a4aad79f53 fix: TickTick import (#1871)
This change fixes a few issues with the TickTick import:

1. BOM (Byte Order Mark) Handling: Added stripBOM() function to properly handle UTF-8 BOM at the beginning of CSV files
2. Multi-line Status Section: Updated header detection to handle the multi-line status description in real TickTick exports
3. CSV Parser Configuration: Made the CSV parser more lenient with variable field counts and quote handling
4. Test Infrastructure: Added missing logger initialization for tests
5. Field Mapping: Fixed the core issue where CSV fields weren't being mapped to struct fields correctly

The main problem was in the newLineSkipDecoder function where:
- Header detection calculated line skip count on BOM-stripped content
- CSV decoder was also stripping BOM and applying the same skip count
- This caused inconsistent positioning and empty field mapping

Rewrote the decoder to use a scanner-based approach with consistent BOM handling.

Resolves https://github.com/go-vikunja/vikunja/issues/1870
2025-11-25 22:32:39 +00:00
kolaente
719d06a991 feat(editor): automatically save draft comments locally (#1868)
Resolves https://github.com/go-vikunja/vikunja/issues/1867
2025-11-24 22:23:58 +00:00
kolaente
8bcd7ec5f5 chore: update devenv 2025-11-24 22:47:21 +01:00
renovate[bot]
370a6230a0 chore(deps): update actions/create-github-app-token digest to 7e473ef (#1862)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-24 20:36:25 +00:00
Frederick [Bot]
fd9693cb6a chore(i18n): update translations via Crowdin 2025-11-24 00:59:57 +00:00
kolaente
4b4684961b fix: emit null 2025-11-22 17:23:03 +01:00
kolaente
e7c0f5fab3 fix(components): fix all type errors in FilterAutocomplete.ts
- Add type filters for label and project arrays to remove undefined values
- Add @ts-expect-error for projectId parameter in getAll call
- Add type assertion for userService.getAll empty object parameter
- Add default value for prefix in destructuring
- Add null check for match.index
- Add type assertions for union type property access (username/title)
- Add null check for autocompleteContext
- Fix Selection.near call with @ts-expect-error comment
- Add optional chaining for array access that could be undefined
2025-11-22 17:23:03 +01:00
kolaente
fe9bc02d10 fix(components): use ts-expect-error in mentionSuggestion.ts
- Replace 'as any' with @ts-expect-error comment
- This is needed because projectId is used for URL replacement but not part of IAbstract
2025-11-22 17:23:03 +01:00
kolaente
412fd3a221 fix(components): add type assertions in MentionUser.vue
- Import IUser type
- Add type assertion for username from node.attrs.id
- Add type assertion for fetchAvatarBlobUrl return value
2025-11-22 17:23:03 +01:00
kolaente
642cd08b9d fix(components): add type annotations in MentionList.vue
- Import PropType and MentionNodeAttrs
- Add MentionItem interface
- Add PropType for items array and command function
2025-11-22 17:23:03 +01:00
kolaente
30101308ea fix(components): add type annotations in suggestion.ts
- Import Editor and Range types from @tiptap/core
- Add TranslateFunction type for t parameter
- Add SuggestionProps interface for props parameter
- Add type annotations for all command callbacks
- Add null check for document.getElementById result
- Add null check for props.event in onKeyDown
2025-11-22 17:23:03 +01:00
kolaente
ddf018e791 fix(components): add type annotations in setLinkInEditor.ts
- Import Editor type from @tiptap/core
- Add DOMRect type for pos parameter
- Add Editor | null | undefined type for editor parameter
2025-11-22 17:23:03 +01:00
kolaente
d46afda42b fix(components): add type annotations in commands.ts
- Import Editor and Range types from @tiptap/core
- Add CommandProps interface for command callback
- Add type annotations for command callback parameters
2025-11-22 17:23:03 +01:00
kolaente
3a52a86980 fix(components): add undefined checks in TipTap.vue
- Add null check for DataTransferItem from items array
- Add undefined checks for check.children[1] before accessing
- Extract secondChild variable for safer access
2025-11-22 17:23:03 +01:00
kolaente
0987e382e4 fix(components): add type annotations for event parameters in TipTap.vue
- Add Event type for triggerImageInput and addImage
- Add MouseEvent type for setLink and clickTasklistCheckbox
- Add KeyboardEvent type for setFocusToEditor
- Add type assertions for event.target as HTMLElement
2025-11-22 17:23:03 +01:00
kolaente
bff5ed6403 fix(components): use correct SetContentOptions in TipTap.vue
- Replace false with {emitUpdate: false} in setContent calls
- Fix 3 SetContentOptions type errors
2025-11-22 17:23:03 +01:00
kolaente
eab1a211ae fix(components): fix clipboard data null checks in TipTap.vue
- Add proper null check for clipboardData.items before accessing length
- Replace for...of loop with indexed for loop to avoid iterator issue with DataTransferItemList
2025-11-22 17:23:03 +01:00
kolaente
278eae387c fix(components): add type guards and assertions in TipTap.vue
- Add HTMLImageElement instanceof check before accessing src property
- Add type assertions for getBlobUrl return value and cache access
2025-11-22 17:23:03 +01:00
kolaente
1275cb7fc5 fix(components): correct FontAwesome icon format in TipTap.vue
- Change icon format from ['fa', 'fa-bold'] to ['fas', 'bold']
- Fix 6 icon type errors by using correct IconPrefix and IconName format
2025-11-22 17:23:03 +01:00
kolaente
ab8b93e9ab fix(components): suppress complex union type error in Button.vue
- Remove BaseButtonProps extension to avoid complex union type
- Use @ts-expect-error to suppress TS2590 error caused by IconProp
- Add computed properties for variant, shadow, and wrap with proper defaults
2025-11-22 17:23:03 +01:00
kolaente
d96cecec09 fix(components): use undefined instead of empty object in ImportHint
- Replace empty object with undefined to use default parameter in TaskService.getAll
2025-11-22 17:23:03 +01:00
kolaente
a615afa934 fix(components): add undefined checks in GanttChartPrimitive
- Add undefined check for first row before accessing cellsByRow
- Add nullish coalescing for focusedRow.value in emit calls
2025-11-22 17:23:03 +01:00
kolaente
59fedb6757 fix(components): add type guards and null checks in Multiselect
- Add null check for multiselectRoot before passing to closeWhenClickedOutside
- Add early return for null object in select function
- Add type guards for string vs object in setSelectedObject
- Add type guards for focus method in preSelect function
- Remove invalid length check on Element type
2025-11-22 17:23:03 +01:00
kolaente
81f85a3849 fix(components): add generic constraints and null checks in AutocompleteDropdown
- Add 'extends string' constraint to generic type T
- Add null check for model.value with nullish coalescing
- Add null check for scroller before accessing properties
- Add instanceof check for HTMLElement before accessing offsetTop
2025-11-22 17:23:03 +01:00
kolaente
a575159424 fix(components): handle null values in DatepickerWithValues
- Add null to date ref type to match props.modelValue type
- Convert Date to string before passing to parseDateOrString
- Add null coalescing for flatpickrDate assignment
2025-11-22 17:23:03 +01:00
kolaente
8e089f5789 chore: add TYPECHECK_ISSUES.md to .gitignore 2025-11-22 17:23:03 +01:00
kolaente
658946b029 fix: resolve readonly project type issue in AppHeader.vue
Create mutable copy of currentProject from Pinia store to satisfy type
requirements. The readonly deep object from the store has readonly tasks
array which is incompatible with IProject type.

Fixes TypeScript errors on lines 25 and 40 where readonly project was
passed to getProjectTitle() and ProjectSettingsDropdown component.

Related to issue #29 from TYPECHECK_ISSUES.md
2025-11-22 17:23:03 +01:00
kolaente
f67af55204 fix: resolve readonly array type issue in Navigation.vue
Cast readonly project arrays from Pinia store to mutable IProject[] type.
The arrays are not actually mutated by the component, so the cast is safe.

Fixes TypeScript errors on lines 86, 97, 105 where readonly arrays were
incompatible with ProjectsNavigation component props.

Related to issue #28 from TYPECHECK_ISSUES.md
2025-11-22 17:23:03 +01:00
kolaente
4cd53c204d fix: add proper type definitions for CommandItem in CommandsList.vue 2025-11-22 17:23:03 +01:00
kolaente
83191eb24d fix: add null/undefined handling in GanttChart.vue 2025-11-22 17:23:03 +01:00
kolaente
618c85a0a7 fix: handle readonly arrays and type conversions in DatepickerWithRange.vue 2025-11-22 17:23:03 +01:00