Skip to content

Commit 0fd4bb2

Browse files
authored
Merge pull request #17 from devops-actions/copilot/fix-16
Add contribute button to page header
2 parents b878a78 + 3557c17 commit 0fd4bb2

1 file changed

Lines changed: 22 additions & 7 deletions

File tree

src/App.tsx

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useState, useCallback, useRef, DragEvent } from "react";
2-
import { Upload } from "@phosphor-icons/react";
2+
import { Upload, GithubLogo } from "@phosphor-icons/react";
33
import { toast } from "sonner";
44
import {
55
LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer,
@@ -211,12 +211,27 @@ function App() {
211211
return (
212212
<div className="container max-w-7xl mx-auto py-8 px-4 min-h-screen">
213213
<header className="mb-8">
214-
<h1 className="text-3xl font-bold tracking-tight text-foreground mb-2">
215-
GitHub Copilot Usage Analyzer
216-
</h1>
217-
<p className="text-muted-foreground">
218-
Upload your Copilot usage CSV export to visualize request patterns
219-
</p>
214+
<div className="flex items-center justify-between">
215+
<div>
216+
<h1 className="text-3xl font-bold tracking-tight text-foreground mb-2">
217+
GitHub Copilot Usage Analyzer
218+
</h1>
219+
<p className="text-muted-foreground">
220+
Upload your Copilot usage CSV export to visualize request patterns
221+
</p>
222+
</div>
223+
<Button variant="outline" size="sm" asChild>
224+
<a
225+
href="https://github.com/devops-actions/github-copilot-premium-reqs-usage"
226+
target="_blank"
227+
rel="noopener noreferrer"
228+
className="flex items-center gap-2"
229+
>
230+
<GithubLogo size={16} />
231+
Contribute
232+
</a>
233+
</Button>
234+
</div>
220235
</header>
221236

222237
{!(data && data.length > 0) && (

0 commit comments

Comments
 (0)