Skip to content

Commit 6f2803e

Browse files
authored
fix: replace font, and remove sorting secrets table (#498)
1 parent 9a789fd commit 6f2803e

File tree

7 files changed

+24
-24
lines changed

7 files changed

+24
-24
lines changed

renderer/src/common/components/empty-state.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ export function EmptyState({
3333
text-center text-balance"
3434
>
3535
<Illustration className="mb-4 size-32" />
36-
<h4 className="text-foreground font-display mb-2 text-3xl font-bold">
37-
{title}
38-
</h4>
36+
<h4 className="text-foreground mb-2 text-3xl font-bold">{title}</h4>
3937
<p className="text-muted-foreground">{body}</p>
4038
{actions ? <Actions actions={actions} /> : null}
4139
</div>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
export function TitlePage({
2+
title,
3+
children,
4+
}: {
5+
title: string
6+
children?: React.ReactNode
7+
}) {
8+
return (
9+
<div className="mb-6 flex items-center justify-between">
10+
<h1 className="text-3xl font-bold">{title}</h1>
11+
{children}
12+
</div>
13+
)
14+
}

renderer/src/features/secrets/components/secrets-table.tsx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Button } from '@/common/components/ui/button'
21
import {
32
Table,
43
TableBody,
@@ -9,7 +8,6 @@ import {
98
} from '@/common/components/ui/table'
109
import { SecretDropdown } from './secret-dropdown'
1110
import { useFilterSort } from '@/common/hooks/use-filter-sort'
12-
import { ArrowUpDown } from 'lucide-react'
1311
import type { V1SecretKeyResponse } from '@/common/api/generated'
1412
import { InputSearch } from '@/common/components/ui/input-search'
1513
interface SecretsTableProps {
@@ -27,7 +25,6 @@ export function SecretsTable({
2725
filter,
2826
setFilter,
2927
filteredData: filteredSecrets,
30-
toggleSortOrder,
3128
} = useFilterSort({
3229
data: secrets,
3330
filterFields: (secret) => [secret.key ?? ''],
@@ -47,14 +44,6 @@ export function SecretsTable({
4744
<TableRow>
4845
<TableHead className="text-muted-foreground flex items-center px-5 text-xs">
4946
Secrets
50-
<Button
51-
variant="ghost"
52-
size="sm"
53-
className="ml-2 h-auto cursor-pointer p-1"
54-
onClick={toggleSortOrder}
55-
>
56-
<ArrowUpDown className="size-4" />
57-
</Button>
5847
</TableHead>
5948
<TableHead className="px-5 text-right"></TableHead>
6049
</TableRow>

renderer/src/routes/(registry)/registry.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function Registry() {
2424
return (
2525
<>
2626
<div className="mb-6 flex items-center">
27-
<h1 className="font-display text-3xl font-bold">Registry</h1>
27+
<h1 className="text-3xl font-bold">Registry</h1>
2828
</div>
2929
{serversList.length === 0 ? (
3030
<EmptyState

renderer/src/routes/clients.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { Button } from '@/common/components/ui/button'
66
import { ExternalLinkIcon } from 'lucide-react'
77
import { EmptyState } from '@/common/components/empty-state'
88
import { IllustrationNoConnection } from '@/common/components/illustrations/illustration-no-connection'
9+
import { TitlePage } from '@/common/components/title-page'
910

1011
export const Route = createFileRoute('/clients')({
1112
component: Clients,
@@ -20,9 +21,7 @@ export function Clients() {
2021

2122
return (
2223
<>
23-
<div className="mb-6 flex items-center justify-between">
24-
<h1 className="font-display text-3xl font-bold">Clients</h1>
25-
</div>
24+
<TitlePage title="Clients" />
2625
{clients.length === 0 ? (
2726
<EmptyState
2827
title="No clients detected"

renderer/src/routes/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { GridCardsMcpServers } from '@/features/mcp-servers/components/grid-card
1515
import { DropdownMenuRunMcpServer } from '@/features/mcp-servers/components/menu-run-mcp-server'
1616
import { useRunCustomServer } from '@/features/mcp-servers/hooks/use-run-custom-server'
1717
import { useMutationRestartServerAtStartup } from '@/features/mcp-servers/hooks/use-mutation-restart-server'
18+
import { TitlePage } from '@/common/components/title-page'
1819

1920
export const Route = createFileRoute('/')({
2021
loader: ({ context: { queryClient } }) =>
@@ -57,8 +58,7 @@ export function Index() {
5758

5859
return (
5960
<>
60-
<div className="mb-6 flex items-center">
61-
<h1 className="font-display text-3xl font-bold">Installed</h1>
61+
<TitlePage title="Installed">
6262
{workloads.length > 0 && (
6363
<div className="ml-auto flex gap-2">
6464
<RefreshButton refresh={refetch} />
@@ -72,7 +72,7 @@ export function Index() {
7272
onOpenChange={setIsRunWithCommandOpen}
7373
onSubmit={handleSubmit}
7474
/>
75-
</div>
75+
</TitlePage>
7676
{!isPending && !workloads.length ? (
7777
<EmptyState
7878
title="Add your first MCP server"

renderer/src/routes/secrets.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { useMutationUpdateSecret } from '@/features/secrets/hooks/use-mutation-u
1010
import { PlusIcon } from 'lucide-react'
1111
import { IllustrationNoConnection } from '@/common/components/illustrations/illustration-no-connection'
1212
import { EmptyState } from '@/common/components/empty-state'
13+
import { TitlePage } from '@/common/components/title-page'
1314

1415
export const Route = createFileRoute('/secrets')({
1516
component: Secrets,
@@ -48,8 +49,7 @@ export function Secrets() {
4849

4950
return (
5051
<>
51-
<div className="mb-6 flex items-center justify-between">
52-
<h1 className="font-display text-3xl font-bold">Secrets</h1>
52+
<TitlePage title="Secrets">
5353
{keys.length > 0 && (
5454
<Button
5555
variant="default"
@@ -61,7 +61,7 @@ export function Secrets() {
6161
<PlusIcon /> Add secret
6262
</Button>
6363
)}
64-
</div>
64+
</TitlePage>
6565

6666
{keys.length === 0 ? (
6767
<EmptyState

0 commit comments

Comments
 (0)