File tree Expand file tree Collapse file tree 7 files changed +24
-24
lines changed
features/secrets/components Expand file tree Collapse file tree 7 files changed +24
-24
lines changed Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 1- import { Button } from '@/common/components/ui/button'
21import {
32 Table ,
43 TableBody ,
98} from '@/common/components/ui/table'
109import { SecretDropdown } from './secret-dropdown'
1110import { useFilterSort } from '@/common/hooks/use-filter-sort'
12- import { ArrowUpDown } from 'lucide-react'
1311import type { V1SecretKeyResponse } from '@/common/api/generated'
1412import { InputSearch } from '@/common/components/ui/input-search'
1513interface 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 >
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { Button } from '@/common/components/ui/button'
66import { ExternalLinkIcon } from 'lucide-react'
77import { EmptyState } from '@/common/components/empty-state'
88import { IllustrationNoConnection } from '@/common/components/illustrations/illustration-no-connection'
9+ import { TitlePage } from '@/common/components/title-page'
910
1011export 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"
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import { GridCardsMcpServers } from '@/features/mcp-servers/components/grid-card
1515import { DropdownMenuRunMcpServer } from '@/features/mcp-servers/components/menu-run-mcp-server'
1616import { useRunCustomServer } from '@/features/mcp-servers/hooks/use-run-custom-server'
1717import { useMutationRestartServerAtStartup } from '@/features/mcp-servers/hooks/use-mutation-restart-server'
18+ import { TitlePage } from '@/common/components/title-page'
1819
1920export 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"
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import { useMutationUpdateSecret } from '@/features/secrets/hooks/use-mutation-u
1010import { PlusIcon } from 'lucide-react'
1111import { IllustrationNoConnection } from '@/common/components/illustrations/illustration-no-connection'
1212import { EmptyState } from '@/common/components/empty-state'
13+ import { TitlePage } from '@/common/components/title-page'
1314
1415export 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
You can’t perform that action at this time.
0 commit comments