Skip to content

Commit 561e468

Browse files
committed
1380 - client - Update borders by replacing border-muted with border-*-border
1 parent b9b1b2b commit 561e468

File tree

56 files changed

+105
-92
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+105
-92
lines changed

client/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ function App() {
230230
<Outlet />
231231

232232
{ai.enabled && showCopilot && (
233-
<aside className="border-l">
233+
<aside className="border-l border-l-border/70">
234234
<CopilotPanel />
235235
</aside>
236236
)}

client/src/components/TagList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ interface TagProps {
2323
}
2424

2525
const Tag = ({onDeleteTag, tag}: TagProps) => (
26-
<div className="group flex max-h-8 items-center justify-between rounded-full border border-muted pl-2 pr-1 text-xs text-gray-700">
26+
<div className="group flex max-h-8 items-center justify-between rounded-full border border-border/50 pl-2 pr-1 text-xs text-gray-700">
2727
<span className="py-1">{tag.name}</span>
2828

2929
<Tooltip>
@@ -153,7 +153,7 @@ const TagList = ({getRequest, id, remainingTags, tags, updateTagsMutation}: TagL
153153
</>
154154
) : (
155155
<div
156-
className="flex size-6 cursor-pointer items-center justify-center rounded border border-muted hover:bg-gray-200"
156+
className="flex size-6 cursor-pointer items-center justify-center rounded border border-border/50 hover:bg-gray-200"
157157
onClick={(event) => {
158158
event.preventDefault();
159159

client/src/ee/pages/automation/api-platform/api-clients/components/ApiClientTable.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ const ApiClientTable = ({apiClients}: ApiClientTableProps) => {
148148
<Table className="table-auto">
149149
<TableHeader>
150150
{headerGroups.map((headerGroup) => (
151-
<TableRow key={headerGroup.id}>
151+
<TableRow className="border-b-border/50" key={headerGroup.id}>
152152
{headerGroup.headers.map((header) => (
153153
<TableHead
154154
className="sticky top-0 z-10 bg-white p-3 text-left text-xs font-medium uppercase tracking-wide text-gray-500"
@@ -162,9 +162,9 @@ const ApiClientTable = ({apiClients}: ApiClientTableProps) => {
162162
))}
163163
</TableHeader>
164164

165-
<TableBody className="divide-y divide-gray-200 bg-white">
165+
<TableBody>
166166
{rows.map((row) => (
167-
<TableRow className="cursor-pointer" key={row.id}>
167+
<TableRow className="cursor-pointer border-b-border/50" key={row.id}>
168168
{row.getVisibleCells().map((cell) => (
169169
<TableCell
170170
className={twMerge(

client/src/ee/pages/automation/api-platform/api-collections/ApiCollections.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ export enum Type {
2323
}
2424

2525
const ApiCollections = () => {
26-
console.log('ApiCollections');
2726
const {currentWorkspaceId} = useWorkspaceStore();
2827

2928
const location = useLocation();

client/src/ee/pages/automation/api-platform/api-collections/components/ApiCollectionEndpointList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const ApiCollectionEndpointList = ({
2626
const {data: projectInstance} = useGetProjectInstanceQuery(projectInstanceId);
2727

2828
return (
29-
<div className="border-b border-b-gray-100 py-3 pl-4">
29+
<div className="border-b border-b-border/50 py-3 pl-4">
3030
{apiCollectionEndpoints && apiCollectionEndpoints.length > 0 ? (
3131
<>
3232
<div className="mb-1 flex items-center justify-between">

client/src/ee/pages/automation/api-platform/api-collections/components/ApiCollectionList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import ApiCollectionListItem from './ApiCollectionListItem';
66

77
const ApiCollectionList = ({apiCollections}: {apiCollections: ApiCollection[]}) => {
88
return (
9-
<div className="w-full px-2 2xl:mx-auto 2xl:w-4/5">
9+
<div className="w-full divide-y divide-border/50 px-4 2xl:mx-auto 2xl:w-4/5">
1010
{apiCollections.length > 0 &&
1111
apiCollections.map((apiCollection) => {
1212
return (

client/src/ee/pages/automation/api-platform/api-collections/components/ApiCollectionListItem.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const ApiCollectionListItem = ({apiCollection}: ApiCollectionListItemProps) => {
7676
return (
7777
<>
7878
<div className="flex w-full items-center justify-between rounded-md px-2 hover:bg-gray-50">
79-
<div className="flex flex-1 items-center border-b border-muted py-5 group-data-[state='open']:border-none">
79+
<div className="flex flex-1 items-center py-5 group-data-[state='open']:border-none">
8080
<div className="flex-1">
8181
<div className="flex items-center justify-between">
8282
<div className="flex w-full items-center justify-between">
@@ -131,7 +131,9 @@ const ApiCollectionListItem = ({apiCollection}: ApiCollectionListItemProps) => {
131131
<span>V{apiCollection.collectionVersion}</span>
132132
</Badge>
133133

134-
<Badge variant="secondary">{apiCollection.projectInstance?.environment}</Badge>
134+
<div className="flex min-w-28 justify-end">
135+
<Badge variant="secondary">{apiCollection.projectInstance?.environment}</Badge>
136+
</div>
135137

136138
<div className="flex min-w-52 flex-col items-end gap-y-4">
137139
<Switch checked={apiCollection.enabled} onCheckedChange={handleOnCheckedChange} />

client/src/ee/pages/automation/api-platform/api-collections/components/ApiCollectionsFilterTitle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const ApiCollectionsFilterTitle = ({
3131

3232
<Badge variant="secondary">
3333
<span className="text-sm">
34-
{environment === undefined ? 'All environments' : environment === 1 ? 'Test' : 'Production'}
34+
{environment === undefined ? 'All Environments' : environment === 1 ? 'Test' : 'Production'}
3535
</span>
3636
</Badge>
3737

client/src/ee/pages/settings/platform/api-connectors/components/ApiConnectorEndpointList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import ApiConnectorEndpointListItem from './ApiConnectorEndpointListItem';
55
// eslint-disable-next-line @typescript-eslint/no-explicit-any
66
const ApiConnectorEndpointList = ({apiConnectorEndpoints}: {apiConnectorEndpoints?: Array<ApiConnectorEndpoint>}) => {
77
return (
8-
<div className="border-b border-b-gray-100 py-3 pl-4">
8+
<div className="border-b border-b-border/50 py-3 pl-4">
99
<h3 className="flex justify-start pl-2 text-sm font-semibold uppercase text-gray-400">Endpoints</h3>
1010

1111
<ul>

client/src/pages/account/settings/Appearance.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default function Appearance() {
5858
<RadioGroupItem className="sr-only" value="light" />
5959
</FormControl>
6060

61-
<div className="items-center rounded-md border-2 border-muted p-1 hover:border-accent">
61+
<div className="items-center rounded-md border-2 border-border/50 p-1 hover:border-accent">
6262
<div className="space-y-2 rounded-sm bg-input p-2">
6363
<div className="space-y-2 rounded-md bg-white p-2 shadow-sm">
6464
<div className="h-2 w-appearance-theme-choice-skeleton-small-width rounded-lg bg-input" />
@@ -90,7 +90,7 @@ export default function Appearance() {
9090
<RadioGroupItem className="sr-only" value="dark" />
9191
</FormControl>
9292

93-
<div className="items-center rounded-md border-2 border-muted bg-popover p-1 hover:bg-accent hover:text-accent-foreground">
93+
<div className="items-center rounded-md border-2 border-border/50 bg-popover p-1 hover:bg-accent hover:text-accent-foreground">
9494
<div className="space-y-2 rounded-sm bg-slate-950 p-2">
9595
<div className="space-y-2 rounded-md bg-slate-800 p-2 shadow-sm">
9696
<div className="h-2 w-appearance-theme-choice-skeleton-small-width rounded-lg bg-slate-400" />
@@ -122,7 +122,7 @@ export default function Appearance() {
122122
<RadioGroupItem className="sr-only" value="system" />
123123
</FormControl>
124124

125-
<div className="items-center rounded-md border-2 border-muted bg-popover p-1 hover:bg-accent hover:text-accent-foreground">
125+
<div className="items-center rounded-md border-2 border-border/50 bg-popover p-1 hover:bg-accent hover:text-accent-foreground">
126126
<div className="space-y-2 rounded-sm bg-input p-2">
127127
<div className="space-y-2 rounded-md bg-slate-800 p-2 shadow-sm">
128128
<div className="h-2 w-appearance-theme-choice-skeleton-small-width rounded-lg bg-slate-400" />

0 commit comments

Comments
 (0)