Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(usage): add Grok reports to desktop and mobile #5830

Closedjakeleventhal(GitHub profile, opens in a new tab)wants to merge 11 commits intomain fromrefs/pull/5830/headopened View on GitHub

Showing 17 changed files with 29 additions and 2 deletions (loading 14).

x
0 of 17 viewed, 17 left
3 additions and 1 deletionapps/mobile/src/features/usage/usageProviders.tsModified
View file
@@ -5,11 +5,12 @@
* Series and table order. The chart stacks providers from the bottom in this
* order, so it also fixes which band sits on top of the bars.
*/
-export const PROVIDER_ORDER: readonly UsageProviderKind[] = ["codex", "claude"];
+export const PROVIDER_ORDER: readonly UsageProviderKind[] = ["codex", "claude", "grok"];
​
export const PROVIDER_LABEL: Record<UsageProviderKind, string> = {
claude: "Claude Code",
codex: "Codex",
+ grok: "Grok",
};
​
/**
@@ -21,5 +22,6 @@
return {
claude: "#d97757",
codex: scheme === "dark" ? "#e6e6e6" : "#3c3c43",
+ grok: scheme === "dark" ? "#8b8b8b" : "#636366",
};
13 additions and 0 deletionsapps/server/src/usage/UsageService.test.tsAdded
View file
@@ -0,0 +1,13 @@
+import { describe, expect, it } from "@effect/vitest";
+​
+import { readGrokHomeOverride } from "./UsageService.ts";
+​
+describe("readGrokHomeOverride", () => {