From b609e9c76063e2aee259b3019cc549ebfcce4f50 Mon Sep 17 00:00:00 2001 From: aadhakal <33aashish.dhakal@gmail.com> Date: Tue, 13 Jan 2026 09:57:25 -0500 Subject: [PATCH 01/10] Add star rating component for AI draft feedback - Implemented 5-star rating system for AI draft quality assessment - Added @tracked aiDraftRating property to store rating (1-5) - Created starDefinitions array with rating values and tooltip descriptions: * 1 star: Not usable - requires complete rewrite * 2 stars: Has significant errors or disconnects that prevent use * 3 stars: Usable but requires editing before sending * 4 stars: Ready to use - could be sent as is * 5 stars: Exceptional quality - exceeds expectations - Added isStarFilled() action to determine filled/empty star state - Modified canBringDown getter to require rating before enabling button - Added showRatingControls getter to hide controls after draft is used - Reset aiDraftRating when generating new AI draft - Used {{#each}} loop in template to reduce repetitive star markup - Star rating is required before user can bring AI draft down to editor - Also minimized the line break for existing and AI text separator --- app/components/response-new.hbs | 36 +++++++++++++++++++++++------- app/components/response-new.js | 39 +++++++++++++++++++++++++++++---- 2 files changed, 63 insertions(+), 12 deletions(-) diff --git a/app/components/response-new.hbs b/app/components/response-new.hbs index 508e5d6c2..72713fb78 100644 --- a/app/components/response-new.hbs +++ b/app/components/response-new.hbs @@ -35,14 +35,34 @@ /> - + {{! Star Rating and Button Row }} + {{#if this.showRatingControls}} +
How will you use this AI draft? * (Check all that apply)
+ {{#each this.usageOptions as |option|}} + + {{/each}} + +