Task 4133 : Add task feedback panel - #102
Conversation
Introduce a FeedbackPanel component to display reviewer feedback in the task editor sidebar, with styles and unit tests. Wire the new feedback tab into Sidebar.vue and pass task.feedback from the editor page. Extend types to include WorkspaceProjectTaskApiFeedback and WorkspaceProjectTaskFeedback, add normalizeProjectTaskFeedback in services/projects.ts, and include normalized feedback on task detail responses. Minor layout and styling tweaks applied to the sidebar and tabs to accommodate the new panel. Unit tests added to cover the component rendering and API normalization.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (7)
📝 WalkthroughWalkthroughTask feedback now flows from the task detail API through normalization and editor wiring into a sidebar feedback tab. The new panel displays categorized entries, author details, timestamps, counts, and an empty state. ChangesTask feedback
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant TaskDetailAPI
participant WorkspaceProjectsClient
participant TaskEditorSidebar
participant FeedbackPanel
TaskDetailAPI->>WorkspaceProjectsClient: Return task feedback
WorkspaceProjectsClient->>WorkspaceProjectsClient: Normalize fields and timestamp
WorkspaceProjectsClient->>TaskEditorSidebar: Pass normalized feedback
TaskEditorSidebar->>FeedbackPanel: Render feedback entries
Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install timed out. The project may have too many dependencies for the sandbox. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
DevBoard Task
https://dev.azure.com/TDEI-UW/TDEI/_workitems/edit/4133/
Changes implemented
Added a new Feedback tab to the task editor sidebar.
Added a feedback-count badge when feedback exists.
Added API and frontend types for task feedback.
Normalized API feedback fields and converted
created_atinto aDate.Defaulted missing API feedback to an empty array.
Made the sidebar header more compact while keeping “Go back” and the project name on separate rows.
Prevented task labels from wrapping unnecessarily.
Moved the sidebar toggle down so it does not cover Rapid’s upload control.
Updated the three tabs to use equal widths with responsive sizing.
Added component and service tests for feedback rendering and normalization.
Impacted areas and testing
feedbackfield still load correctly.Screenshot:
Summary