This pull request includes several updates to the Reviews.svelte component and related files to enhance the display and functionality of review information. Key changes include the addition of new properties to the review data, updates to the UI to reflect these properties, and adjustments to the Review interface.
Enhancements to Review Display:
Added a new icon to indicate if a review is a draft in src/components/Reviews.svelte.
Updated the color of the unread indicator dot to improve visibility in dark mode in src/components/Reviews.svelte.
Improved the display of status check badges, including handling different states and adding new icons for pending and error states in src/components/Reviews.svelte. [1][2]
Added badges for review decisions and total comments count to provide more detailed review information in src/components/Reviews.svelte.
Data Model Updates:
Updated the getReviews API call to include isDraft, reviewDecision, and totalCommentsCount fields in src/lib/api.ts.
Modified the Review interface to include new properties: isDraft, reviewDecision, and totalCommentsCount in src/types.ts.
Expanded the statusCheckRollup state to handle additional states (PENDING, ERROR, EXPECTED) in src/types.ts.
This pull request includes several updates to the
Reviews.svelte
component and related files to enhance the display and functionality of review information. Key changes include the addition of new properties to the review data, updates to the UI to reflect these properties, and adjustments to theReview
interface.Enhancements to Review Display:
src/components/Reviews.svelte
.src/components/Reviews.svelte
.src/components/Reviews.svelte
. [1] [2]src/components/Reviews.svelte
.Data Model Updates:
getReviews
API call to includeisDraft
,reviewDecision
, andtotalCommentsCount
fields insrc/lib/api.ts
.Review
interface to include new properties:isDraft
,reviewDecision
, andtotalCommentsCount
insrc/types.ts
.statusCheckRollup
state to handle additional states (PENDING
,ERROR
,EXPECTED
) insrc/types.ts
.