Skip to content

Commit 53784f3

Browse files
committed
style(FR-1529): improve UI color scheme consistency and reduce visual clutter (#4355)
Resolves #4355 ([FR-1529](https://lablup.atlassian.net/browse/FR-1529)) ## Summary This PR improves the UI color scheme consistency and reduces visual clutter across session and image tags. ## Changes - Updated session type tag colors (INTERACTIVE, BATCH, INFERENCE) for better distinction - Adjusted session status tag colors to separate pending states from running state - Removed default blue color from image tags to reduce visual noise - Made RUNNING status more distinctive from other statuses ## Why - Reduces excessive color elements that create visual clutter - Prevents color conflicts between different UI components - Creates better visual hierarchy with distinctive colors for important states - Improves overall readability and creates a cleaner interface [FR-1529]: https://lablup.atlassian.net/browse/FR-1529?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
1 parent 69ae6aa commit 53784f3

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

packages/backend.ai-ui/src/components/fragments/BAISessionTypeTag.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import React from 'react';
55
import { useFragment, graphql } from 'react-relay';
66

77
const typeTagColor = {
8-
INTERACTIVE: 'green',
9-
BATCH: 'darkgreen',
10-
INFERENCE: 'blue',
8+
INTERACTIVE: 'geekblue',
9+
BATCH: 'cyan',
10+
INFERENCE: 'purple',
1111
};
1212

1313
export interface BAISessionTypeTagProps {

react/src/components/ComputeSessionNodeItems/SessionStatusTag.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ export const statusTagColor = {
2323
PREPARED: 'blue',
2424
CREATING: 'blue',
2525
PULLING: 'blue',
26+
PENDING: 'blue',
27+
SCHEDULED: 'blue',
2628
//running
2729
RUNNING: 'green',
28-
PENDING: 'green',
29-
SCHEDULED: 'green',
3030
//error
3131
ERROR: 'red',
3232
//finished return undefined

react/src/components/ImageNodeSimpleTag.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,18 +104,18 @@ const ImageNodeSimpleTag: React.FC<ImageNodeSimpleTagProps> = ({
104104
values={[
105105
{
106106
label: tagAlias(tag.key),
107-
color: isCustomized ? 'cyan' : 'blue',
107+
color: isCustomized ? 'cyan' : undefined,
108108
},
109109
{
110110
label: tagValue,
111-
color: isCustomized ? 'cyan' : 'blue',
111+
color: isCustomized ? 'cyan' : undefined,
112112
},
113113
]}
114114
/>
115115
) : (
116116
<Tag
117117
key={`${tag.key}-${index}`}
118-
color={isCustomized ? 'cyan' : 'blue'}
118+
color={isCustomized ? 'cyan' : undefined}
119119
style={{
120120
marginRight: 0,
121121
}}

react/src/components/SessionNodes.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ const SessionNodes: React.FC<SessionNodesProps> = ({
102102
dataIndex: 'status',
103103
render: (status: string, session) => {
104104
// TODO: Display idle checker if imminentExpirationTime as Icon(clock-alert).
105-
return <SessionStatusTag sessionFrgmt={session} showInfo />;
105+
return <SessionStatusTag sessionFrgmt={session} />;
106106
},
107107
},
108108
// This column will be added back when the session list column setting ui is ready

0 commit comments

Comments
 (0)