Skip to content

Commit 579badd

Browse files
committed
some smal change with add manifest
1 parent 804c515 commit 579badd

File tree

2 files changed

+27
-15
lines changed

2 files changed

+27
-15
lines changed

packages/app/src/main.tsx

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,17 @@ const router = createBrowserRouter([
144144
},
145145
} satisfies BreadcrumbHandle,
146146
children: [
147+
{
148+
path: "manifests/add",
149+
Component: ProjectManifestsAdd,
150+
handle: {
151+
breadcrumb: {
152+
title: "Add Manifest",
153+
href: (params) =>
154+
`/projects/${params.projectId}/manifests/add`,
155+
},
156+
} satisfies BreadcrumbHandle,
157+
},
147158
{
148159
path: "",
149160
Component: ProjectIndex,
@@ -163,17 +174,7 @@ const router = createBrowserRouter([
163174
index: true,
164175
Component: ProjectManifests,
165176
},
166-
{
167-
path: "add",
168-
Component: ProjectManifestsAdd,
169-
handle: {
170-
breadcrumb: {
171-
title: "Add Manifest",
172-
href: (params) =>
173-
`/projects/${params.projectId}/manifests/add`,
174-
},
175-
} satisfies BreadcrumbHandle,
176-
},
177+
177178
{
178179
path: "cliSetup",
179180
Component: ProjectManifestsCliSetup,

packages/app/src/pages/projects/project/manifests/add.tsx.tsx

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import {
3131
AlertDescription,
3232
AlertTitle,
3333
} from "../../../../components/shadcn/Alert.tsx";
34+
import { Badge } from "../../../../components/shadcn/Badge.tsx";
3435

3536
const formSchema = z.object({
3637
branch: z.string().optional(),
@@ -112,8 +113,13 @@ export default function ProjectManifestsAdd() {
112113
<Terminal />
113114
CLI Alternative
114115
</CardTitle>
115-
<CardDescription>
116-
Prefer automation? Use our CLI tool instead
116+
<CardDescription className="space-y-1">
117+
<div>
118+
Prefer automation? Use our CLI tool instead
119+
</div>
120+
<Badge>
121+
Cost 1 credit per upload
122+
</Badge>
117123
</CardDescription>
118124
</CardHeader>
119125
<CardContent>
@@ -142,8 +148,13 @@ export default function ProjectManifestsAdd() {
142148
<Upload />
143149
Upload Manifest
144150
</CardTitle>
145-
<CardDescription>
146-
Upload a JSON manifest file for project: {context.project.name}
151+
<CardDescription className="space-y-1">
152+
<div>
153+
Upload a JSON manifest file for project: {context.project.name}
154+
</div>
155+
<Badge>
156+
Cost 1 credit per upload
157+
</Badge>
147158
</CardDescription>
148159
</CardHeader>
149160
<CardContent>

0 commit comments

Comments
 (0)