From a59aec87dc9b275b0db93b293108295d6f505697 Mon Sep 17 00:00:00 2001 From: Anton Sizikov Date: Wed, 1 Jul 2026 22:35:06 +0200 Subject: [PATCH 1/2] Add deprecation banner for app retirement Add a shared DeprecationBanner component announcing the app retirement on August 3, 2026, with a link to fork the repo. It replaces the old "moving to usage-based billing" banner on the overview page and is also shown on the upload page. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- src/App.tsx | 1 - src/components/DeprecationBanner.tsx | 29 ++++++++++++++++++++++++++++ src/components/UploadPage.tsx | 2 ++ src/components/index.ts | 1 + src/config/links.ts | 2 +- src/views/OverviewView.tsx | 29 ++-------------------------- 6 files changed, 35 insertions(+), 29 deletions(-) create mode 100644 src/components/DeprecationBanner.tsx diff --git a/src/App.tsx b/src/App.tsx index fc5cd31..db46d65 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -757,7 +757,6 @@ function App() { {visibleActiveView === 'overview' ? ( + +

+ The Copilot Billing Preview app will be retired on August 3, 2026. +
+ If you use it to review your GitHub Copilot spend, you can get the same visibility, and more, directly in your + GitHub billing settings. + {' '} + If you want to maintain a copy of the app,{' '} + + feel free to fork it + + . +

+ + ) +} diff --git a/src/components/UploadPage.tsx b/src/components/UploadPage.tsx index 7d03436..b27d8e9 100644 --- a/src/components/UploadPage.tsx +++ b/src/components/UploadPage.tsx @@ -1,6 +1,7 @@ import type { DragEvent, KeyboardEvent, MouseEvent } from 'react' import { MarkGithubIcon, UploadIcon, LockIcon } from '@primer/octicons-react' import { appLinks } from '../config/links' +import { DeprecationBanner } from './DeprecationBanner' export interface UploadPageProps { dragActive: boolean @@ -62,6 +63,7 @@ export function UploadPage({ Learn more about usage-based billing →

+ {error && (
0 && (
- {!isNativeAiCredits && ( -
-

GitHub Copilot is moving to usage-based billing

-

- Starting June 1, 2026, Copilot usage will be measured in AI Credits (AICs) instead of Premium Requests (PRUs). 1 AIC = $0.01. This is a preview estimate based on your uploaded report. Actual bills under usage-based billing may differ based on model mix and final pricing. -

- {fileName && ( -

- Note: This is a preview estimate based on your uploaded report ({fileName}). Actual bills under usage-based billing may differ based on model mix and final pricing. -

- )} - - Learn more about usage-based billing → - -
- )} + {!isNativeAiCredits && periodLabel && (

From 8794ed74e96b602613fcceaea92df66d7441970a Mon Sep 17 00:00:00 2001 From: Anton Sizikov Date: Wed, 1 Jul 2026 22:41:15 +0200 Subject: [PATCH 2/2] Use fg-attention token for banner icon fill Replace the arbitrary fill-[color:var(--fgColor-attention)] class on the DeprecationBanner InfoIcon with the idiomatic fill-fg-attention Tailwind token, adding --color-fg-attention to the theme mapping alongside the other fg-* tokens. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- src/components/DeprecationBanner.tsx | 2 +- src/theme.css | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/DeprecationBanner.tsx b/src/components/DeprecationBanner.tsx index 9c6fa7b..389e200 100644 --- a/src/components/DeprecationBanner.tsx +++ b/src/components/DeprecationBanner.tsx @@ -11,7 +11,7 @@ export function DeprecationBanner({ className = '' }: DeprecationBannerProps) { className={`flex items-start gap-3 rounded-md border border-border-attention bg-bg-attention-muted px-4 py-3 text-left text-sm text-fg-default ${className}`.trim()} role="note" > - +

The Copilot Billing Preview app will be retired on August 3, 2026.
diff --git a/src/theme.css b/src/theme.css index f68dd88..4df7870 100644 --- a/src/theme.css +++ b/src/theme.css @@ -16,6 +16,7 @@ --color-fg-default: var(--fgColor-default); --color-fg-muted: var(--fgColor-muted); --color-fg-accent: var(--fgColor-accent); + --color-fg-attention: var(--fgColor-attention); --color-fg-danger: var(--fgColor-danger); --color-fg-on-emphasis: var(--fgColor-onEmphasis);