Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(usage): include Grok Build in the usage view #6051

ClosedEliasofIX(GitHub profile, opens in a new tab)wants to merge 5 commits intomain fromrefs/pull/6051/headopened View on GitHub

Showing 10 changed files with 27 additions and 8 deletions (loading 7).

x
0 of 10 viewed, 10 left
5 additions and 3 deletionsapps/mobile/src/features/usage/usageProviders.tsModified
View file
@@ -5,21 +5,23 @@
* 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 Build",
};
​
/**
- * Claude's brand orange holds in both themes; Codex is neutral and must flip
- * with the theme or its bars vanish against the matching background.
+ * Claude's brand orange holds in both themes; Codex and Grok are neutral and
+ * must flip with the theme or their bars vanish against the matching background.
*/
export function useProviderColors(): Record<UsageProviderKind, string> {
const { themeAppearance: scheme } = useAppearancePreferences();
return {
claude: "#d97757",
codex: scheme === "dark" ? "#e6e6e6" : "#3c3c43",
+ grok: scheme === "dark" ? "#a1a1aa" : "#52525b",
};
21 additions and 4 deletionsapps/server/src/usage/UsageService.tsModified
View file
@@ -1,9 +1,9 @@