From 16f720b1ce77bd94e7844d59c529ee2a03d89227 Mon Sep 17 00:00:00 2001 From: ryoppippi <1560508+ryoppippi@users.noreply.github.com> Date: Mon, 29 Sep 2025 22:17:54 +0100 Subject: [PATCH 1/2] feat(ccusage): add deprecation warning to blocks --live monitor Add deprecation notice in the live monitoring UI header that appears on every refresh. The warning directs users to Claude's official usage dashboard at https://claude.ai/settings/usage. Thank you to @hitesh-goel for contributing the live monitoring feature in #284. While Claude now provides an official usage dashboard, we're grateful for this contribution to the project. Related: #284 --- apps/ccusage/src/_live-rendering.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/ccusage/src/_live-rendering.ts b/apps/ccusage/src/_live-rendering.ts index 5426c2f4..462ddca0 100644 --- a/apps/ccusage/src/_live-rendering.ts +++ b/apps/ccusage/src/_live-rendering.ts @@ -187,9 +187,10 @@ export function renderLiveDisplay(terminal: TerminalManager, block: SessionBlock const detailsSpacing = 2; // Fixed spacing between columns const detailsAvailableWidth = boxWidth - 3 - detailsIndent; // Available width for content - // Draw header + // Draw header with deprecation warning terminal.write(`${marginStr}┌${'─'.repeat(boxWidth - 2)}┐\n`); terminal.write(`${marginStr}│${pc.bold(centerText('CLAUDE CODE - LIVE TOKEN USAGE MONITOR', boxWidth - 2))}│\n`); + terminal.write(`${marginStr}│${pc.yellow(centerText('⚠️ DEPRECATED - Use https://claude.ai/settings/usage', boxWidth - 2))}│\n`); terminal.write(`${marginStr}├${'─'.repeat(boxWidth - 2)}┤\n`); terminal.write(`${marginStr}│${' '.repeat(boxWidth - 2)}│\n`); From 6538181b1ca488a987709f2fcc996ba4e3244d62 Mon Sep 17 00:00:00 2001 From: ryoppippi <1560508+ryoppippi@users.noreply.github.com> Date: Mon, 29 Sep 2025 22:18:14 +0100 Subject: [PATCH 2/2] feat(ccusage): clarify deprecation timeline and add link Update deprecation message to explicitly state the feature will be removed in the next major version. Split into two lines for better readability with the URL on a separate line. --- apps/ccusage/src/_live-rendering.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/ccusage/src/_live-rendering.ts b/apps/ccusage/src/_live-rendering.ts index 462ddca0..587d4c8c 100644 --- a/apps/ccusage/src/_live-rendering.ts +++ b/apps/ccusage/src/_live-rendering.ts @@ -190,7 +190,8 @@ export function renderLiveDisplay(terminal: TerminalManager, block: SessionBlock // Draw header with deprecation warning terminal.write(`${marginStr}┌${'─'.repeat(boxWidth - 2)}┐\n`); terminal.write(`${marginStr}│${pc.bold(centerText('CLAUDE CODE - LIVE TOKEN USAGE MONITOR', boxWidth - 2))}│\n`); - terminal.write(`${marginStr}│${pc.yellow(centerText('⚠️ DEPRECATED - Use https://claude.ai/settings/usage', boxWidth - 2))}│\n`); + terminal.write(`${marginStr}│${pc.yellow(centerText('⚠️ DEPRECATED - Will be removed in next major version', boxWidth - 2))}│\n`); + terminal.write(`${marginStr}│${pc.gray(centerText('Use https://claude.ai/settings/usage instead', boxWidth - 2))}│\n`); terminal.write(`${marginStr}├${'─'.repeat(boxWidth - 2)}┤\n`); terminal.write(`${marginStr}│${' '.repeat(boxWidth - 2)}│\n`);