Skip to content
Source
Sign inSign up
pingdotgg/t3code

Misc chrome polish: header badges, plan sidebar, diff panel, empty state #3027

Mergedjuliusmarmingemerged 2 commits intomain fromrefs/pull/3027/headmerged by juliusmarminge View on GitHub

juliusmarmingecommented

Ports assorted small fixes from #2451 by @sandersonstabo, rebased onto current main.

  • Chat header: project badge gets a muted folder icon and properly-centered padding; "No Git" becomes a "Git not present" badge with an icon; terminal/diff toggles use a new ghost Toggle variant (no double highlight)
  • Plan sidebar: step icons use shared success/primary tokens, rows are vertically centered, "Plan"/label uses the info Badge, timestamps get tabular-nums
  • Diff panel: header uses the app sans font with aligned, tabular-nums +/- counts
  • "Pick a thread to continue" empty state drops its faint nested card
  • "Plan Ready" banner label becomes a Badge; "Initialize Git" header action gets a branch-plus icon

Part of splitting #2451 into reviewable frontend-only pieces.

🤖 Generated with Claude Code


Note

Low Risk Visual and CSS-only tweaks with no logic, auth, or data-path changes.

Overview Frontend-only chrome polish across chat header, plan UI, diff panel, and empty state—no behavior or API changes.

Chat header adds a folder icon and tighter badge layout on the project name, renames the non-git warning to “Git not present” with a merge icon, and switches terminal/diff Toggle controls from outline to a new ghost variant to avoid a double-highlight when pressed.

Plan surfaces (PlanSidebar, ComposerPlanFollowUpBanner) replace ad-hoc labels with the shared info Badge; step status chips use success/primary tokens instead of raw emerald/blue; step rows use items-center; timestamps get tabular-nums.

Diff panel injects CSS so Pierre diff headers use app sans/mono fonts, aligned metadata, and tabular +/- counts; turn-chip timestamps also use tabular-nums.

Misc: “Pick a thread” empty state drops the nested card chrome; Initialize Git shows a branch-plus icon.

Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 76fd697a15460e8176f8b6fbd0d3e91c460a684e. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).

Note

Polish header badges, plan sidebar, diff panel, and empty state UI

  • Removes project name and 'No Git' badges from ChatHeader and switches terminal/diff toggles to ghost variant; adds a new ghost variant to the toggle component
  • Updates PlanSidebar to use semantic color tokens, info badge, and tabular numerals for timestamps; replaces the plan follow-up banner label with a styled 'Plan Ready' badge
  • Fixes file tag chip icons in ChatMarkdown to resolve icons from the bare file path, stripping line/column suffix before lookup
  • Improves DiffPanel typography with explicit font families, tabular numerals, and adjusted spacing
  • Simplifies NoActiveThreadState by removing bordered card styling
📊 Macroscope summarized 26acf66. 11 files reviewed, 0 issues evaluated, 0 issues filtered, 0 comments posted

🗂️ Filtered Issues

No issues evaluated.

    1. coderabbitai[bot](GitHub profile, opens in a new tab)commented

      Important

      Review skipped

      Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

      ⚙️ Run configuration

      Configuration used: Repository UI

      Review profile: CHILL

      Plan: Pro

      Run ID: d378d161-0032-47d0-807e-20f4ca6774cf

      You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

      Use the checkbox below for a quick retry:

      • 🔍 Trigger review
      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create PR with unit tests
      • Commit unit tests in branch `ui/misc-chrome`

      Comment `@coderabbitai help` to get the list of available commands and usage tips.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    3. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Needs human review

      1 blocking correctness issue found. This PR introduces significant backend changes including Claude Tasks support and refactored token usage handling - beyond the UI polish described in the title. Two unresolved review comments identify potential bugs in the new task management logic. These runtime behavior changes warrant human review.

      You can customize Macroscope's approvability policy. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. github-actions[bot](GitHub profile, opens in a new tab)commented

      🚀 Expo continuous deployment is ready!

      • Project → t3-code
      • Platforms → android, ios
      • Scheme → t3code-preview
       🤖 Android🍎 iOS
      Fingerprintae17d94b35f91f9c608a63dadbc3ddd9f4ba056e313e506a7f15a9c3f15b01d787d68a12382432bf
      Build DetailsBuild Permalink
      DetailsDistribution: INTERNAL
      Build profile: preview:dev
      Runtime version: ae17d94b35f91f9c608a63dadbc3ddd9f4ba056e
      App version: 0.1.0
      Git commit: 65b35f1684403e2543a127ee2d3dd30bdaa84298
      Build Permalink
      DetailsDistribution: INTERNAL
      Build profile: preview:dev
      Runtime version: 313e506a7f15a9c3f15b01d787d68a12382432bf
      App version: 0.1.0
      Git commit: 65b35f1684403e2543a127ee2d3dd30bdaa84298
      Update DetailsUpdate Permalink
      DetailsBranch: pr-3027
      Runtime version: ae17d94b35f91f9c608a63dadbc3ddd9f4ba056e
      Git commit: 65b35f1684403e2543a127ee2d3dd30bdaa84298
      Update Permalink
      DetailsBranch: pr-3027
      Runtime version: 313e506a7f15a9c3f15b01d787d68a12382432bf
      Git commit: 65b35f1684403e2543a127ee2d3dd30bdaa84298
      Update QR
    5. @@ -539,3 +711,20 @@
      539711 }));
      540712 }
      541713
      714+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+}
      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      🟢 Low Layers/ClaudeAdapter.ts:726

      readStringArray includes whitespace-only strings like " " because it checks entry.length > 0 without trimming, while readString trims before validation. This inconsistency allows whitespace-only dependency IDs to enter task.blockedBy via blockedBy, addBlockedBy, or removeBlockedBy — these IDs will never match any real task ID (which readString would reject), creating logical inconsistencies where tasks appear blocked by non-existent dependencies. Consider trimming strings in readStringArray to match readString's behavior.

       function readStringArray(value: unknown): Array<string> {
         return Array.isArray(value)
      -    ? value.filter((entry): entry is string => typeof entry === "string" && entry.length > 0)
      +    ? value.filter((entry): entry is string => typeof entry === "string" && entry.trim().length > 0)
           : [];
       }
      🚀 Reply "fix it for me" or copy this AI Prompt for your agent:
      In file @apps/server/src/provider/Layers/ClaudeAdapter.ts around lines 726-730:
      
      `readStringArray` includes whitespace-only strings like `"   "` because it checks `entry.length > 0` without trimming, while `readString` trims before validation. This inconsistency allows whitespace-only dependency IDs to enter `task.blockedBy` via `blockedBy`, `addBlockedBy`, or `removeBlockedBy` — these IDs will never match any real task ID (which `readString` would reject), creating logical inconsistencies where tasks appear blocked by non-existent dependencies. Consider trimming strings in `readStringArray` to match `readString`'s behavior.
      
      Evidence trail:
      apps/server/src/provider/Layers/ClaudeAdapter.ts lines 722-729 (readString vs readStringArray definitions), lines 772-781 (task IDs validated by readString, blockedBy populated by readStringArray), lines 794-798 (TaskCreate uses readStringArray for blockedBy), lines 823-832 (addBlockedBy/removeBlockedBy use readStringArray).
      @@ -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;
      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      🟡 Medium Layers/ClaudeAdapter.ts:784

      In the TaskList branch, tasks.clear() is called unconditionally, but the return value tasks.size > 0 only reflects whether tasks exist after processing, not whether the state actually changed. If the previous map had tasks and resultTasks is an empty array, the function clears all tasks (a meaningful state change) but returns false, causing callers to miss that the task list was cleared. Consider tracking whether any change occurred by comparing pre/post state or returning true after tasks.clear() to signal the map was modified.

      -    return tasks.size > 0;
      +    return true;
      🚀 Reply "fix it for me" or copy this AI Prompt for your agent:
      In file @apps/server/src/provider/Layers/ClaudeAdapter.ts around line 784:
      
      In the `TaskList` branch, `tasks.clear()` is called unconditionally, but the return value `tasks.size > 0` only reflects whether tasks exist after processing, not whether the state actually changed. If the previous map had tasks and `resultTasks` is an empty array, the function clears all tasks (a meaningful state change) but returns `false`, causing callers to miss that the task list was cleared. Consider tracking whether any change occurred by comparing pre/post state or returning `true` after `tasks.clear()` to signal the map was modified.
      
      Evidence trail:
      apps/server/src/provider/Layers/ClaudeAdapter.ts lines 751-784 (function definition, TaskList branch with tasks.clear() and return tasks.size > 0), line 2458-2467 (caller that gates emitClaudeTaskPlanUpdated on the return value)
    6. juliusmarminge merged this343061a

    7. juliusmarminge closed this

Sign in to join this conversation.