Skip to content

Commit d5effd4

Browse files
authored
Update landing page (creation) & rename pipeline (#4601)
1 parent 8962cfc commit d5effd4

26 files changed

+168
-111
lines changed

ui/src/features/inference/toolbar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ export const Toolbar = () => {
112112
<Divider orientation='vertical' size='S' />
113113

114114
<Flex marginStart='auto' gap='size-100'>
115-
<Button href={paths.pipeline.index({})} variant='secondary'>
116-
View pipeline
115+
<Button href={paths.project.index({})} variant='secondary'>
116+
View project
117117
</Button>
118118
</Flex>
119119
</Flex>

ui/src/features/pipelines/label-selection.module.scss

Lines changed: 0 additions & 8 deletions
This file was deleted.

ui/src/features/pipelines/label-selection.component.tsx renamed to ui/src/features/project/label-selection.component.tsx

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import classes from './label-selection.module.scss';
1717

1818
const ColorPicker = ({ onChange, value }: SpectrumColorPickerProps) => {
1919
return (
20-
<SpectrumColorPicker value={value} onChange={onChange}>
20+
<SpectrumColorPicker value={value} onChange={onChange} rounding={'none'}>
2121
<Flex direction='column' gap='size-300'>
2222
<ColorEditor />
2323
<ColorSwatchPicker>
@@ -103,15 +103,28 @@ export const LabelSelection = () => {
103103
};
104104

105105
return (
106-
<Flex direction={'column'} alignItems={'center'} width={'100%'}>
106+
<Flex
107+
direction={'column'}
108+
alignItems={'center'}
109+
height={'100%'}
110+
width={'100%'}
111+
gap={'size-300'}
112+
UNSAFE_style={{ overflow: 'auto' }}
113+
>
114+
<Flex>
115+
<Text UNSAFE_style={{ color: 'var(--spectrum-global-color-gray-700)' }}>
116+
What objects should the model learn to detect?
117+
</Text>
118+
</Flex>
119+
107120
<Flex direction={'column'} alignItems={'center'} gap={'size-100'} width={'100%'}>
108121
{items.map((item) => {
109122
return <LabelItem key={item.id} onDelete={handleDeleteItem} {...item} />;
110123
})}
111124
</Flex>
112125

113126
<Flex gap={'size-200'}>
114-
<Button width={'size-2000'} variant={'secondary'} marginTop={'size-400'} onPress={handleAddItem}>
127+
<Button width={'size-2000'} variant={'secondary'} onPress={handleAddItem}>
115128
<Text>Add next object</Text>
116129
<Add fill='white' />
117130
</Button>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.labelInput {
2+
padding: var(--spectrum-global-dimension-size-75) var(--spectrum-global-dimension-size-150);
3+
}
4+
5+
.deleteButton {
6+
cursor: pointer;
7+
background-color: transparent;
8+
}

ui/src/features/pipelines/modal/new-project-link.component.tsx renamed to ui/src/features/project/modal/new-project-link.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import classes from './new-project-link.module.scss';
1111

1212
export const NewProjectLink = () => {
1313
return (
14-
<Link to={paths.pipeline.new.pattern} className={classes.link}>
14+
<Link to={paths.project.new.pattern} className={classes.link}>
1515
<AddCircle />
1616
<Text>Add another project</Text>
1717
</Link>

0 commit comments

Comments
 (0)