You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: PR_DESCRIPTION.md
+34Lines changed: 34 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,12 @@ The core insight is that many productivity workflows benefit from the ability to
11
11
12
12
This feature enables users to maintain their Kanban boards as planning and organization tools while easily moving actionable items to their calendar for time-blocked execution.
13
13
14
+
## New Features Summary
15
+
16
+
1.**Copy to Calendar**: Right-click context menu option to copy cards to Full Calendar
17
+
2.**Calendar Color Visual Feedback**: Cards automatically adopt calendar colors when copied
18
+
3.**Board Settings Placement**: Option to place board settings at beginning of file
19
+
14
20
## Technical Approach
15
21
16
22
### Integration Design
@@ -62,6 +68,29 @@ The implementation includes robust handling for several edge cases:
62
68
- Maintains consistent icon and interaction patterns
63
69
- Provides clear visual feedback for success/failure states
64
70
71
+
### Visual Feedback System
72
+
The calendar color feature provides immediate visual confirmation when cards are copied to calendars:
73
+
74
+
**Color Application Process**:
75
+
1. When a card is copied to a calendar, the card's background automatically changes to match the calendar's color
76
+
2. Smart text color calculation ensures optimal contrast (WCAG compliant)
77
+
3. Card colors are stored in board settings and persist across sessions
78
+
4. Colors update automatically when cards are copied to different calendars
79
+
80
+
**Technical Implementation**:
81
+
- Uses CSS custom properties for dynamic color application
82
+
- Calculates text contrast using WCAG luminance formula
83
+
- Stores color mappings in board settings JSON block
84
+
- Integrates seamlessly with existing color systems (tags, dates)
85
+
- Maintains backward compatibility with existing boards
86
+
87
+
### Board Settings Enhancement
88
+
Added option to place board settings at the beginning of files instead of the end:
89
+
- Controlled by "Place board settings at beginning" toggle in settings
90
+
- Useful for easier editing of board settings in markdown mode
91
+
- Parser supports reading settings from both locations for compatibility
92
+
- Header settings take precedence if both locations exist
93
+
65
94
### Settings Integration
66
95
-**Toggle Control**: Users can enable/disable the feature via plugin settings
67
96
-**Documentation**: Settings include explanation of requirements and configuration file location
@@ -76,13 +105,18 @@ The implementation includes robust handling for several edge cases:
76
105
2.**Enable Feature**: Toggle "Enable Copy to Calendar" in Kanban plugin settings
77
106
3.**Basic Copy**: Right-click on a Kanban card → "Copy to calendar" → Select calendar
78
107
4.**Verify**: Confirm file creation in correct directory with proper frontmatter
108
+
5.**Color Application**: Verify card background changes to match calendar color
109
+
6.**Text Contrast**: Confirm text remains readable on all calendar colors
79
110
80
111
#### Edge Cases
81
112
1.**Special Characters**: Test with directories containing `*`, `?`, `<`, `>`, `|`, `:`, `"`, `\`, `/`
82
113
2.**Wildcard Patterns**: Test both `/*` wildcard configurations and literal `/*` directory names
83
114
3.**Missing Dependencies**: Test behavior with Full Calendar plugin disabled/uninstalled
84
115
4.**Permission Issues**: Test in directories with restricted write permissions
85
116
5.**File Collisions**: Test duplicate card titles and filename collision handling
117
+
6.**Color Edge Cases**: Test with extreme colors (very light/dark) and transparency
118
+
7.**Multiple Copies**: Test copying same card to different calendars (color should update)
119
+
8.**Settings Placement**: Test board settings at beginning vs end of file
86
120
87
121
#### Platform Testing
88
122
1.**Mobile**: Verify context menu integration on mobile devices
0 commit comments