Skip to content

Commit 85771e2

Browse files
committed
Edit the main page and component
1 parent f157cff commit 85771e2

2 files changed

Lines changed: 20 additions & 23 deletions

File tree

changelog-generator/app/page.tsx

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ const exampleRepos = [
1818
{
1919
name: "Trigger.dev",
2020
url: "https://github.com/triggerdotdev/trigger.dev",
21-
description: "Background jobs framework",
21+
description: "AI agents & workflows",
2222
},
2323
{
2424
name: "Next.js",
2525
url: "https://github.com/vercel/next.js",
26-
description: "The React Framework",
26+
description: "Frontend framework",
2727
},
2828
{
2929
name: "Tailwind CSS",
@@ -128,28 +128,21 @@ export default function Home() {
128128
};
129129

130130
return (
131-
<div className="min-h-screen bg-background">
131+
<div className="min-h-screen bg-background flex items-center justify-center">
132132
<div className="container mx-auto px-4 py-12 max-w-2xl">
133133
{/* Header */}
134134
<header className="text-center mb-8">
135-
<h1 className="text-2xl font-bold tracking-tight">
135+
<h1 className="text-4xl font-bold tracking-tight mb-4">
136136
Changelog generator
137137
</h1>
138-
<p className="mt-2 text-muted-foreground">
139-
Turn GitHub commits into developer-friendly changelogs using Claude
140-
Agent SDK with custom MCP tools + Trigger.dev.
138+
<p className="mt-2 text-muted-foreground max-w-md mx-auto">
139+
Turn GitHub commits into changelogs using Claude Agent SDK with
140+
custom MCP tools + Trigger.dev.
141141
</p>
142142
</header>
143143

144-
{/* Main Form Card */}
145144
<Card>
146-
<CardHeader>
147-
<CardTitle>Generate changelog</CardTitle>
148-
<CardDescription>
149-
Enter a GitHub repository and date range to generate a changelog
150-
</CardDescription>
151-
</CardHeader>
152-
<CardContent>
145+
<CardContent className="p-6">
153146
<form onSubmit={handleSubmit} className="space-y-4">
154147
<div className="space-y-2">
155148
<label htmlFor="repo" className="text-sm font-medium">
@@ -165,7 +158,7 @@ export default function Home() {
165158
/>
166159
</div>
167160

168-
<div className="grid grid-cols-2 gap-4">
161+
<div className="grid grid-cols-2 gap-4 pb-2">
169162
<div className="space-y-2">
170163
<label htmlFor="startDate" className="text-sm font-medium">
171164
Start date
@@ -222,7 +215,6 @@ export default function Home() {
222215
</CardContent>
223216
</Card>
224217

225-
{/* Example Repositories */}
226218
<section className="mt-8">
227219
<h2 className="text-sm font-medium text-muted-foreground mb-4">
228220
Try with popular repositories
@@ -232,13 +224,13 @@ export default function Home() {
232224
{exampleRepos.map((repo) => (
233225
<Card
234226
key={repo.url}
235-
className="cursor-pointer transition-colors hover:border-primary"
227+
className="cursor-pointer transition-colors hover:border-gray-700"
236228
onClick={() => handleExampleRepo(repo.url)}
237229
>
238-
<CardHeader>
230+
<CardHeader className="gap-1">
239231
<CardTitle className="flex items-center gap-2">
240232
<Github className="w-4 h-4 shrink-0" />
241-
<span className="truncate">{repo.name}</span>
233+
<span>{repo.name}</span>
242234
</CardTitle>
243235
<CardDescription className="text-xs">
244236
{repo.description}

changelog-generator/app/response/[runId]/page.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ export default function ResponsePage() {
120120
userScrolledRef.current = true;
121121
}
122122
// User scrolled to bottom - re-enable auto-scroll
123-
const isNearBottom = window.innerHeight + scrollTop >= document.body.scrollHeight - 100;
123+
const isNearBottom =
124+
window.innerHeight + scrollTop >= document.body.scrollHeight - 100;
124125
if (isNearBottom) {
125126
userScrolledRef.current = false;
126127
}
@@ -168,7 +169,11 @@ export default function ResponsePage() {
168169
const metadata = run?.metadata as RunMetadata | undefined;
169170

170171
return (
171-
<div className="min-h-screen bg-background" onScroll={handleScroll} onWheel={handleScroll}>
172+
<div
173+
className="min-h-screen bg-background"
174+
onScroll={handleScroll}
175+
onWheel={handleScroll}
176+
>
172177
<div className="container mx-auto px-4 py-12 max-w-2xl">
173178
{/* Header */}
174179
<header className="mb-8">
@@ -204,7 +209,7 @@ export default function ResponsePage() {
204209
<CardHeader>
205210
<div className="flex items-center justify-between">
206211
<CardTitle className="text-muted-foreground font-medium">
207-
Claude is cooking...
212+
Generating changelogs with Claude...
208213
</CardTitle>
209214
<span className="text-sm text-muted-foreground">
210215
{metadata?.agent?.phase || "Initializing..."}

0 commit comments

Comments
 (0)