Misc chrome polish: header badges, plan sidebar, diff panel, empty state #3027
Mergedjuliusmarmingemerged 2 commits into
main fromrefs/pull/3027/headmerged by juliusmarminge View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:M
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XL
- @@ -539,3 +711,20 @@539711 }));540712 }541713714+function isClaudeTaskTool(toolName: string): boolean {715+ return toolName === "TaskCreate" || toolName === "TaskUpdate" || toolName === "TaskList";716+}717+718+function normalizeClaudeTaskStatus(value: unknown): PlanStep["status"] {719+ return value === "completed" ? "completed" : value === "in_progress" ? "inProgress" : "pending";720+}721+722+function readString(value: unknown): string | undefined {723+ return typeof value === "string" && value.trim().length > 0 ? value.trim() : undefined;724+}725+726+function readStringArray(value: unknown): Array<string> {727+ return Array.isArray(value)728+ ? value.filter((entry): entry is string => typeof entry === "string" && entry.length > 0)729+ : [];730+}@@ -541,0 +764,21 @@764+ return false;765+ }766+ tasks.clear();767+ for (const entry of resultTasks) {768+ if (entry === null || typeof entry !== "object" || Array.isArray(entry)) {769+ continue;770+ }771+ const task = entry as Record<string, unknown>;772+ const id = readString(task.id);773+ const subject = readString(task.subject);774+ if (!id || !subject) {775+ continue;776+ }777+ tasks.set(id, {778+ id,779+ subject,780+ status: normalizeClaudeTaskStatus(task.status),781+ blockedBy: new Set(readStringArray(task.blockedBy)),782+ });783+ }784+ return tasks.size > 0;
juliusmarminge merged this343061a
juliusmarminge closed this
Sign in to join this conversation.
Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID:
d378d161-0032-47d0-807e-20f4ca6774cfYou can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment `@coderabbitai help` to get the list of available commands and usage tips.