-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate-whitespace-task.js
More file actions
58 lines (50 loc) · 2.46 KB
/
Copy pathupdate-whitespace-task.js
File metadata and controls
58 lines (50 loc) · 2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Import the task client
const { updateTask } = require('../ixcoach-api/utils/agentTaskClient');
// Update the whitespace preservation task
async function updateWhitespacePreservationTask() {
// Note: Replace this ID with the actual task ID if it exists
const TASK_ID = 'whitespace-preservation-task';
await updateTask(TASK_ID, {
// AI agents should use 'for-review', not 'done'
status: 'for-review',
// Mark requirements as complete
requirements:
"🟢 - Input fields must preserve whitespace on blur/save\n" +
"🟢 - Task displays must render whitespace correctly (whitespace-pre-wrap)\n" +
"🟢 - Listparser utility must handle whitespace correctly\n" +
"🟢 - All textarea components must show content with preserved whitespace\n" +
"🟢 - Form validation should not trim whitespace when validating",
// Document technical implementation
technicalPlan:
"1. ✅ Update EditableItemList component to preserve whitespace in save handlers\n" +
"2. ✅ Modify TaskCard's handleInlineSubmit to not trim values\n" +
"3. ✅ Update listParser utility to preserve whitespace\n" +
"4. ✅ Update TaskForm validation to check length instead of trimming\n" +
"5. ✅ Add whitespace-pre-wrap CSS to all content display elements",
// Provide verification steps
verificationSteps: [
"1. Create a task with intentional whitespace formatting (indented text, code blocks)",
"2. Check that whitespace is preserved after saving the task",
"3. Verify that whitespace appears correctly in all views (card, detail, etc.)",
"4. Test inline editing to ensure whitespace is preserved during updates",
"5. Test task lists to confirm whitespace is preserved in list items"
],
// Record affected files
files: [
"/Users/jedi/react_projects/ix/tasks/src/components/EditableItems/EditableItemList.tsx",
"/Users/jedi/react_projects/ix/tasks/src/components/TaskCard.tsx",
"/Users/jedi/react_projects/ix/tasks/src/utils/listParser.ts",
"/Users/jedi/react_projects/ix/tasks/src/services/taskApiService.ts",
"/Users/jedi/react_projects/ix/tasks/src/components/TaskForm.tsx"
]
});
console.log('✅ Task marked for review');
console.log('Shutting down');
}
// Execute the function
updateWhitespacePreservationTask()
.then(() => process.exit(0))
.catch(error => {
console.error('Error updating task:', error);
process.exit(1);
});