Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion packages/frontend/app/components/ApiCredentialsForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@ export const ApiCredentialsForm = ({
<Form method='post' action='/api/set-credentials' className='space-y-4'>
<p className='text-green-600 mb-4'>✓ API credentials configured</p>
<input hidden readOnly name='intent' value='clear' />
<Button type='submit' color='red' disabled={isSubmitting}>
<Button
type='submit'
color='red'
variant='outline'
disabled={isSubmitting}
>
{isSubmitting ? 'Clearing credentials...' : 'Clear Credentials'}
</Button>
</Form>
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/app/components/Filters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const PopoverFilter = ({
<Popover.Button
id={labelId}
aria-haspopup='true'
className='inline-flex w-[400px] items-center justify-between gap-2 rounded-md border border-pearl bg-white px-3 py-2 text-sm text-tealish shadow-sm focus:outline-none focus:ring-2 focus:ring-[#F37F64]'
className='inline-flex w-[400px] items-center justify-between gap-2 rounded-md border border-pearl bg-white px-3 py-2 text-sm text-tealish shadow-sm focus:outline-none focus:ring-2 focus:ring-[var(--focus-8)]'
>
<span className='truncate' title={label}>
{label}
Expand Down Expand Up @@ -77,7 +77,7 @@ export const PopoverFilter = ({
<input
type='checkbox'
id={optionId}
className='w-5 h-5 rounded border-gray-300 text-[#F37F64] focus:ring-[#F37F64]'
className='w-5 h-5 rounded border-gray-300 text-[var(--accent-9)] focus:ring-[var(--focus-8)]'
checked={values ? values.includes(option.value) : false}
onChange={option.action}
aria-describedby={
Expand Down
16 changes: 8 additions & 8 deletions packages/frontend/app/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ export const Sidebar: FC<SidebarProps> = ({
className={({ isActive }) =>
cx(
isActive
? 'bg-[#F37F64]/10 text-[#F37F64]'
: 'text-tealish/70 hover:bg-[#F37F64]/5',
? 'bg-[var(--amber-a2)] text-[#975800]'
: 'text-tealish/80 hover:bg-[var(--amber-a2)]',
'flex px-3 py-2 font-medium rounded-md'
)
}
Expand All @@ -127,8 +127,8 @@ export const Sidebar: FC<SidebarProps> = ({
className={({ isActive }) =>
cx(
isActive
? 'bg-[#F37F64]/10 text-[#F37F64]'
: 'text-tealish/70 hover:bg-[#F37F64]/5',
? 'bg-[var(--amber-a2)] text-[#975800]'
: 'text-tealish/80 hover:bg-[var(--amber-a2)]',
'flex px-3 py-2 font-medium rounded-md'
)
}
Expand Down Expand Up @@ -177,8 +177,8 @@ export const Sidebar: FC<SidebarProps> = ({
className={({ isActive }) =>
cx(
isActive
? 'bg-[#F37F64]/10 text-[#F37F64]'
: 'text-tealish/70 hover:bg-[#F37F64]/5',
? 'bg-[var(--amber-a2)] text-[#975800]'
: 'text-tealish/80 hover:bg-[var(--amber-a2)]',
'flex px-3 py-2 font-medium rounded-md'
)
}
Expand All @@ -196,8 +196,8 @@ export const Sidebar: FC<SidebarProps> = ({
className={({ isActive }) =>
cx(
isActive
? 'bg-[#F37F64]/10 text-[#F37F64]'
: 'text-tealish/70 hover:bg-[#F37F64]/5',
? 'bg-[var(--amber-a2)] text-[#975800]'
: 'text-tealish/80 hover:bg-[var(--amber-a2)]',
'flex px-3 py-2 font-medium rounded-md'
)
}
Expand Down
5 changes: 3 additions & 2 deletions packages/frontend/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export default function App() {
<Links />
</head>
<body className='h-full bg-polkadot bg-cover bg-no-repeat bg-center bg-fixed text-tealish'>
<Theme accentColor='orange'>
<Theme accentColor='amber'>
<a
href='#main-content'
className='sr-only focus:not-sr-only focus:fixed focus:left-4 focus:top-4 focus:z-20 focus:rounded-md focus:bg-white focus:px-4 focus:py-2 focus:text-tealish focus:shadow-md'
Expand Down Expand Up @@ -205,7 +205,8 @@ export function ErrorBoundary() {
<Heading
as='h4'
size='5'
className='font-semibold -tracking-widest text-[#F37F64]'
color='amber'
className='font-semibold -tracking-widest'
>
{error.status}
</Heading>
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/app/routes/_index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default function Index() {
>
Welcome
</Text>
<Heading size='8' className='text-[#F37F64] mb-4'>
<Heading size='8' color='amber' className='mb-4'>
Rafiki Admin
</Heading>
<Text as='p' size='3' color='gray' className='mt-6'>
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/app/routes/assets.$assetId.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ export default function ViewAssetPage() {
<Form method='post' onSubmit={submitHandler}>
<input type='hidden' name='id' value={asset.id} />
<input type='hidden' name='intent' value='delete' />
<Button type='submit' color='red' aria-label='delete asset'>
<Button type='submit' color='red' variant='classic'>
Delete asset
</Button>
</Form>
Expand Down
3 changes: 2 additions & 1 deletion packages/frontend/app/routes/auth._index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ export default function Auth() {
<div className='p-4 space-y-6 md:p-10 md:space-y-16'>
<Heading
as='h1'
className='text-6xl pt-10 md:text-9xl md:pt-16 text-[#F37F64]'
color='amber'
className='text-6xl pt-10 md:text-9xl md:pt-16'
>
Welcome!
</Heading>
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/app/routes/payments._index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export default function PaymentsPage() {
<Heading size='5'>Payments</Heading>
<Flex align='center' gap='2' className='flex-wrap md:flex-nowrap'>
<DropdownMenu.Root>
<DropdownMenu.Trigger className='inline-flex min-w-[220px] items-center justify-between gap-2 rounded-md border border-pearl bg-white px-3 py-2 text-sm text-tealish shadow-sm focus:outline-none focus:ring-2 focus:ring-[#F37F64]'>
<DropdownMenu.Trigger className='inline-flex min-w-[220px] items-center justify-between gap-2 rounded-md border border-pearl bg-white px-3 py-2 text-sm text-tealish shadow-sm focus:outline-none focus:ring-2 focus:ring-[var(--focus-8)]'>
<button
type='button'
className='flex w-full items-center justify-between gap-2'
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/app/routes/peers.$peerId.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ export default function ViewPeerPage() {
<Form method='post' onSubmit={submitHandler}>
<input type='hidden' name='id' value={peer.id} />
<input type='hidden' name='intent' value='delete' />
<Button type='submit' color='red' aria-label='delete peer'>
<Button type='submit' color='red' variant='classic'>
Delete peer
</Button>
</Form>
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/app/routes/tenants.$tenantId.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ export default function ViewTenantPage() {
<Form method='post' onSubmit={submitHandler}>
<input type='hidden' name='id' value={tenant.id} />
<input type='hidden' name='intent' value='delete' />
<Button type='submit' color='red' aria-label='delete tenant'>
<Button type='submit' color='red' variant='classic'>
Delete tenant
</Button>
</Form>
Expand Down
12 changes: 9 additions & 3 deletions packages/frontend/app/routes/tenants._index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ export default function TenantsPage() {
</Link>
</Text>
{me.isOperator && me.id == tenant.node.id && (
<Badge color='yellow'>Operator</Badge>
<Badge color='yellow' variant='outline'>
Operator
</Badge>
)}
</Flex>
<Text
Expand All @@ -143,9 +145,13 @@ export default function TenantsPage() {
</Table.Cell>
<Table.Cell>
{tenant.node.deletedAt ? (
<Badge color='red'>Inactive</Badge>
<Badge color='red' variant='outline'>
Inactive
</Badge>
) : (
<Badge color='green'>Active</Badge>
<Badge color='green' variant='outline'>
Active
</Badge>
)}
</Table.Cell>
</Table.Row>
Expand Down
5 changes: 4 additions & 1 deletion packages/frontend/app/routes/wallet-addresses._index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@ export default function WalletAddressesPage() {
</Text>
</Table.Cell>
<Table.Cell>
<Badge color={statusColorMap[wa.node.status] || 'gray'}>
<Badge
color={statusColorMap[wa.node.status] || 'gray'}
variant='outline'
>
{wa.node.status}
</Badge>
</Table.Cell>
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/app/routes/webhook-events.data.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default function WebhookEventData() {
<div className='absolute right-0 top-0 pr-4 pt-4'>
<button
type='button'
className='text-gray-400 hover:text-gray-500 focus:outline-none'
className='text-gray-400 hover:text-gray-500'
onClick={dismiss}
>
<span className='sr-only'>Close</span>
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/app/routes/webhook-events.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export default function WebhookEventsPage() {
</Table.Cell>
<Table.Cell>
<Button
variant='soft'
variant='ghost'
onClick={() => {
navigate(
`/webhook-events/data${
Expand Down
Loading