Skip to content

Commit fcdc746

Browse files
committed
style(web): update page headers and button styles for improved UI consistency across pages
1 parent f2e5f99 commit fcdc746

8 files changed

Lines changed: 46 additions & 44 deletions

File tree

apps/web/src/pages/api-keys-page.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,13 @@ export function ApiKeysPage() {
178178

179179
return (
180180
<InsetLayout title="API Keys">
181-
<div className="flex items-center justify-between mb-6">
181+
<div className="flex items-center justify-between mb-6 min-h-10">
182182
<div className="text-sm text-muted-foreground max-w-2xl">
183-
Create, manage, and delete API keys to control access for your
184-
applications.
183+
Manage API keys to access your workflows programmatically.
185184
</div>
186-
<Button onClick={() => setIsCreateDialogOpen(true)} size="sm">
187-
<Plus /> Create API Key
185+
<Button onClick={() => setIsCreateDialogOpen(true)}>
186+
<Plus className="mr-2 h-4 w-4" />
187+
Create API Key
188188
</Button>
189189
</div>
190190
<DataTable

apps/web/src/pages/datasets-page.tsx

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -208,17 +208,14 @@ export function DatasetsPage() {
208208
return (
209209
<TooltipProvider>
210210
<InsetLayout title="Datasets">
211-
<div className="flex items-center justify-between mb-6">
211+
<div className="flex items-center justify-between mb-6 min-h-10">
212212
<div className="text-sm text-muted-foreground max-w-2xl">
213-
Create, manage, and organize your datasets. Upload, process, and
214-
share your data with ease.
215-
</div>
216-
<div className="flex gap-2">
217-
<Button onClick={() => setIsCreateDialogOpen(true)}>
218-
<Plus className="mr-2 h-4 w-4" />
219-
Create New Dataset
220-
</Button>
213+
Create and manage datasets for your workflows.
221214
</div>
215+
<Button onClick={() => setIsCreateDialogOpen(true)}>
216+
<Plus className="mr-2 h-4 w-4" />
217+
Create New Dataset
218+
</Button>
222219
</div>
223220
<DataTable
224221
columns={columns}

apps/web/src/pages/deployments-page.tsx

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -206,17 +206,14 @@ export function DeploymentsPage() {
206206
return (
207207
<TooltipProvider>
208208
<InsetLayout title="Deployments">
209-
<div className="flex items-center justify-between mb-6">
209+
<div className="flex items-center justify-between mb-6 min-h-10">
210210
<div className="text-sm text-muted-foreground max-w-2xl">
211-
View and manage versioned snapshots of workflows ready for
212-
execution.
213-
</div>
214-
<div className="flex gap-2">
215-
<Button onClick={handleOpenDialog}>
216-
<ArrowUpToLine className="mr-2 h-4 w-4" />
217-
Deploy Workflow
218-
</Button>
211+
Deploy your workflows and track their versions.
219212
</div>
213+
<Button onClick={handleOpenDialog}>
214+
<ArrowUpToLine className="mr-2 h-4 w-4" />
215+
Deploy Workflow
216+
</Button>
220217
</div>
221218
<DataTable
222219
columns={createColumns(getOrgUrl)}

apps/web/src/pages/executions-page.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,11 @@ export function ExecutionsPage() {
195195
return (
196196
<TooltipProvider>
197197
<InsetLayout title="Executions">
198-
<p className="text-muted-foreground mb-4">
199-
Monitor the execution history of your workflows.
200-
</p>
198+
<div className="flex items-center justify-between mb-6 min-h-10">
199+
<div className="text-sm text-muted-foreground max-w-2xl">
200+
Monitor the executions of your workflows.
201+
</div>
202+
</div>
201203
<DataTable
202204
columns={createColumns(getOrgUrl)}
203205
data={paginatedExecutions}

apps/web/src/pages/members-page.tsx

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { toast } from "sonner";
88
import { InsetError } from "@/components/inset-error";
99
import { InsetLoading } from "@/components/inset-loading";
1010
import { InsetLayout } from "@/components/layouts/inset-layout";
11+
import { usePageBreadcrumbs } from "@/hooks/use-page";
1112
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
1213
import {
1314
AlertDialog,
@@ -186,6 +187,7 @@ const columns: ColumnDef<{
186187

187188
export function MembersPage() {
188189
const { handle } = useParams<{ handle: string }>();
190+
const { setBreadcrumbs } = usePageBreadcrumbs([]);
189191

190192
// Debug: Log the handle value
191193
console.log("MembersPage - handle:", handle);
@@ -339,6 +341,10 @@ export function MembersPage() {
339341
};
340342
}, [handleUpdateRoleEvent, handleRemoveMemberEvent]);
341343

344+
useEffect(() => {
345+
setBreadcrumbs([{ label: "Members" }]);
346+
}, [setBreadcrumbs]);
347+
342348
if (isMembershipsLoading && !memberships) {
343349
return <InsetLoading title="Organization Members" />;
344350
} else if (membershipsError) {
@@ -351,14 +357,14 @@ export function MembersPage() {
351357
}
352358

353359
return (
354-
<InsetLayout title="Organization Members">
355-
<div className="flex items-center justify-between mb-6">
360+
<InsetLayout title="Members">
361+
<div className="flex items-center justify-between mb-6 min-h-10">
356362
<div className="text-sm text-muted-foreground max-w-2xl">
357-
Manage your organization members and their roles. Add new members,
358-
update roles, or remove members as needed.
363+
Manage organization members and roles.
359364
</div>
360-
<Button onClick={() => setIsAddMemberDialogOpen(true)} size="sm">
361-
<Plus /> Add Member
365+
<Button onClick={() => setIsAddMemberDialogOpen(true)}>
366+
<Plus className="mr-2 h-4 w-4" />
367+
Add Member
362368
</Button>
363369
</div>
364370

apps/web/src/pages/organizations-page.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,12 +200,13 @@ export function OrganizationsPage() {
200200

201201
return (
202202
<InsetLayout title="Organizations">
203-
<div className="flex items-center justify-between mb-6">
203+
<div className="flex items-center justify-between mb-6 min-h-10">
204204
<div className="text-sm text-muted-foreground max-w-2xl">
205-
Manage your organizations and switch between different workspaces.
205+
Manage your organizations and workspaces.
206206
</div>
207-
<Button onClick={() => setIsCreateDialogOpen(true)} size="sm">
208-
<Plus /> Create Organization
207+
<Button onClick={() => setIsCreateDialogOpen(true)}>
208+
<Plus className="mr-2 h-4 w-4" />
209+
Create Organization
209210
</Button>
210211
</div>
211212

apps/web/src/pages/secrets-page.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -257,13 +257,13 @@ export function SecretsPage() {
257257

258258
return (
259259
<InsetLayout title="Secrets">
260-
<div className="flex items-center justify-between mb-6">
260+
<div className="flex items-center justify-between mb-6 min-h-10">
261261
<div className="text-sm text-muted-foreground max-w-2xl">
262-
Store and manage encrypted secrets for your organization. These can be
263-
used in workflows and accessed via API.
262+
Store encrypted secrets for your workflows.
264263
</div>
265-
<Button onClick={() => setIsCreateDialogOpen(true)} size="sm">
266-
<Plus /> Create Secret
264+
<Button onClick={() => setIsCreateDialogOpen(true)}>
265+
<Plus className="mr-2 h-4 w-4" />
266+
Create Secret
267267
</Button>
268268
</div>
269269
<DataTable

apps/web/src/pages/workflows-page.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -441,10 +441,9 @@ export function WorkflowsPage() {
441441
return (
442442
<TooltipProvider>
443443
<InsetLayout title="Workflows">
444-
<div className="flex items-center justify-between mb-6">
444+
<div className="flex items-center justify-between mb-6 min-h-10">
445445
<div className="text-sm text-muted-foreground max-w-2xl">
446-
Create, manage, and run your workflows. Break it, fix it, prompt it,
447-
automatic.
446+
Build and test your workflows.
448447
</div>
449448
<div className="flex gap-2">
450449
<Button onClick={() => setIsCreateDialogOpen(true)}>

0 commit comments

Comments
 (0)