Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
fcda939
chore: update dependencies and improve SidebarLeft tag color logic
zivglik Mar 2, 2026
a4952cb
refactor: replace 'message' prop with 'title' in Alert components for…
zivglik Mar 2, 2026
40748d9
refactor: update AutoComplete components to use showSearch prop for i…
zivglik Mar 2, 2026
59d7e03
refactor: update Space component to use 'orientation' prop for consis…
zivglik Mar 2, 2026
58766d1
refactor: update Drawer and jobColumns components to use 'size' and '…
zivglik Mar 2, 2026
b48e602
refactor: integrate Space component for improved layout in InputNumbe…
zivglik Mar 2, 2026
bba14b5
refactor: update Splitter and Tabs components to use 'orientation' an…
zivglik Mar 2, 2026
2754cd2
refactor: update Popover components to use 'styles' prop for consistency
zivglik Mar 2, 2026
bc607ca
fix selects options
zivglik Mar 2, 2026
bf5bbab
refactor: add 'variant' prop to Tag components for consistency and up…
zivglik Mar 5, 2026
d02ec73
refactor: add 'variant' prop to Tag component for consistency in Erro…
zivglik Mar 5, 2026
a60ad23
refactor: update JobTags component to use 'variant' prop for Tag and …
zivglik Mar 5, 2026
ec4cd46
refactor: hide StartTime column in job columns and improve code forma…
zivglik Mar 5, 2026
c0729a5
feat: implement ColumnsControl component for dynamic column visibilit…
zivglik Mar 5, 2026
91f5fa4
feat: add BarChartLayerContext for improved state management in BarCh…
zivglik Mar 5, 2026
a476c6a
feat: set default expanded state for Total Resource Pie Chart in BarC…
zivglik Mar 5, 2026
9b45b47
feat: update button styles to use 'outlined' variant for improved UI …
zivglik Mar 5, 2026
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
18,195 changes: 9,046 additions & 9,149 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
]
},
"dependencies": {
"@ant-design/icons": "^6.0.0",
"@ant-design/icons": "^6.1.0",
"@apollo/client": "^3.10.1",
"@uiw/react-markdown-preview": "^5.1.5",
"@uiw/react-md-editor": "^4.0.11",
Expand Down Expand Up @@ -69,7 +69,7 @@
"@vitejs/plugin-react": "^4.3.1",
"ajv": "^6.12.6",
"ajv-keywords": "^3.5.2",
"antd": "^5.25.4",
"antd": "^6.3.1",
"axios": "^1.6.8",
"chonky": "^2.3.2",
"chonky-icon-fontawesome": "^2.3.2",
Expand Down
4 changes: 2 additions & 2 deletions src/Routes/Base/Header/AutoComplete/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ const AutoComplete = ({ className = '' }) => {
<AutoCompleteLong
className={className}
options={tableData}
onSearch={handleFilter}
showSearch={{ onSearch: handleFilter }}
onSelect={handleFilter}
placeholder="Filter Entities 🎉"
dropdownMatchSelectWidth
popupMatchSelectWidth
disabled={isDisabled}>
<Input.Search allowClear />
</AutoCompleteLong>
Expand Down
3 changes: 2 additions & 1 deletion src/Routes/Base/Header/ExperimentPicker.react.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ const ExperimentPicker = () => {
}, [
experimentId,
experiments,
getLazyExperiments,
onAdd,
onChange,
onDescriptionChange,
Expand All @@ -156,7 +157,7 @@ const ExperimentPicker = () => {
] || COLOR.blueLight;

return (
<Popover content={menu} overlayStyle={overflow} placement="bottomRight">
<Popover content={menu} styles={{ root: overflow }} placement="bottomRight">
<BigTag color={tagColor}>{experimentId}</BigTag>
</Popover>
);
Expand Down
2 changes: 1 addition & 1 deletion src/Routes/Base/SidebarLeft/MenuStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ export const Name = styled.span`
`;
export const BadgeStyle = styled(Badge)`
margin-top: 9px;
right: 16px;
right: 22px;
position: absolute;
`;
5 changes: 3 additions & 2 deletions src/Routes/Base/SidebarLeft/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,9 @@ const SidebarLeft = () => {
style={tagStyle}
color={
name === 'algorithms' &&
instanceCounter.algorithmsUnscheduledReason > 0 &&
'error'
instanceCounter.algorithmsUnscheduledReason > 0
? 'error'
: undefined
}>
{dataCount[name]}
</Tag>
Expand Down
46 changes: 23 additions & 23 deletions src/Routes/SidebarRight/AddAlgorithm/AddAlgorithmForm.react.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,10 @@ const mainAdvancedOptions = Object.entries(formTemplate.main.options)
.map(([key]) => key);

const insertAlgorithmOptions = options =>
options.map((option, key) => (
// eslint-disable-next-line
<Select.Option key={key} value={option}>
{toUpperCaseFirstLetter(option)}
</Select.Option>
));
options.map(option => ({
value: option,
label: toUpperCaseFirstLetter(option),
}));

const toReadableBuildType = buildType => {
let str = toUpperCaseFirstLetter(buildType);
Expand Down Expand Up @@ -451,13 +449,12 @@ const AddAlgorithmForm = ({
name={splitByDot(MAIN.MEMORY.field)}
label={MAIN.MEMORY.label}
labelAlign="left">
<MemoryField>
{MAIN.MEMORY.types.map(valueItem => (
<Select.Option key={valueItem} value={valueItem}>
{valueItem}
</Select.Option>
))}
</MemoryField>
<MemoryField
options={MAIN.MEMORY.types.map(valueItem => ({
value: valueItem,
label: valueItem,
}))}
/>
</Form.Item>
</Collapsible>

Expand Down Expand Up @@ -502,13 +499,14 @@ const AddAlgorithmForm = ({
name={splitByDot(MAIN.RESERVE_MEMORY.field)}
label={MAIN.RESERVE_MEMORY.label}
labelAlign="left">
<MemoryField min={0} tooltipTitle={MAIN.RESERVE_MEMORY.tooltip}>
{MAIN.RESERVE_MEMORY.types.map(valueItem => (
<Select.Option key={valueItem} value={valueItem}>
{valueItem}
</Select.Option>
))}
</MemoryField>
<MemoryField
min={0}
tooltipTitle={MAIN.RESERVE_MEMORY.tooltip}
options={MAIN.RESERVE_MEMORY.types.map(valueItem => ({
value: valueItem,
label: valueItem,
}))}
/>
</Form.Item>
<Form.Item
name={splitByDot(MAIN.WORKERS.field)}
Expand All @@ -519,9 +517,11 @@ const AddAlgorithmForm = ({
name={splitByDot(MAIN.OPTIONS.field)}
label={MAIN.OPTIONS.label}
initialValue={mainAdvancedOptions}>
<Select mode="tags" placeholder={MAIN.OPTIONS.placeholder}>
{insertAlgorithmOptions(MAIN.OPTIONS.types)}
</Select>
<Select
mode="tags"
placeholder={MAIN.OPTIONS.placeholder}
options={insertAlgorithmOptions(MAIN.OPTIONS.types)}
/>
</Form.Item>
</Collapsible>
</ContenerForm>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const AlgorithmUploadFile = ({ fileList, setFileList, isEdit }) => {
{!isEdit && (
<Alert
style={marginTop}
message={`File ${fileList.length ? 'Uploaded' : 'Required'}`}
title={`File ${fileList.length ? 'Uploaded' : 'Required'}`}
type={fileList.length ? 'info' : 'warning'}
showIcon
/>
Expand Down
17 changes: 14 additions & 3 deletions src/Routes/SidebarRight/AddAlgorithm/MemoryField.react.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const selectStyle = { width: '90px' };
const MemoryField = ({
onChange,
children,
options = null,
value,
tooltipTitle = undefined,
min = 1,
Expand All @@ -24,12 +25,17 @@ const MemoryField = ({
setUnit(unitInitial);
}, [numberInitial, unitInitial]);

const childOptions = React.Children.toArray(children);
const optionsList =
options || childOptions.map(option => ({ value: option?.props?.value }));
const firstOptionValue = optionsList?.[0]?.value;

const onNumber = target => {
setNumberMem(target);
if (target !== null && target !== '' && !Number.isNaN(target)) {
onChange(`${target}${unit}`);
} else {
onChange(`${min}${children[0].props.value}`); // default to min K if invalid input
onChange(`${min}${firstOptionValue || ''}`); // default to min K if invalid input
}
};

Expand All @@ -47,8 +53,12 @@ const MemoryField = ({
<Space.Compact>
{iconType && <Icon type={iconType} />}
<InputNumber min={min} value={numberMem} onChange={onNumber} />
<Select style={selectStyle} value={unit} onChange={onSelect}>
{children}
<Select
style={selectStyle}
value={unit}
onChange={onSelect}
options={options}>
{!options && children}
</Select>
</Space.Compact>
</Wrapper>
Expand All @@ -62,6 +72,7 @@ MemoryField.propTypes = {
// TODO: detail the props
/* eslint-disable */
children: PropTypes.node,
options: PropTypes.arrayOf(PropTypes.shape({})),
onChange: PropTypes.func,
value: PropTypes.string,
/* eslint-enable */
Expand Down
17 changes: 10 additions & 7 deletions src/Routes/SidebarRight/AddAlgorithm/SelectEnvOptions.react.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@ import addAlgorithmSchema from './schema';

const SelectEnvOptions = forwardRef((props, ref) => (
// eslint-disable-next-line
<Select ref={ref} {...props}>
{Object.entries(addAlgorithmSchema.ENV_TYPES).map(([key, value]) => (
<Select.Option key={key} value={key}>
{toUpperCaseFirstLetter(value)}
</Select.Option>
))}
</Select>
<Select
ref={ref}
{...props}
options={Object.entries(addAlgorithmSchema.ENV_TYPES).map(
([key, value]) => ({
value: key,
label: toUpperCaseFirstLetter(value),
})
)}
/>
));

SelectEnvOptions.propTypes = Select.propTypes;
Expand Down
2 changes: 1 addition & 1 deletion src/Routes/SidebarRight/AddDataSource/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const AddDataSource = () => {
fileList={addedFiles}
customRequest={customRequest}>
<Alert
message={
title={
addedFiles.length
? addedFiles.length === 1
? '1 file to upload'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ const AlgorithmNode = ({ id }) => {
<AutoComplete
disabled={sortedAlgorithms?.length === 0}
options={sortedAlgorithms}
filterOption={(inputValue, option) =>
option.value.indexOf(inputValue) !== -1
}
showSearch={{
filterOption: (inputValue, option) =>
option.value.indexOf(inputValue) !== -1,
}}
/>
</Field>
{isStreamingPipeline &&
Expand Down
48 changes: 25 additions & 23 deletions src/Routes/SidebarRight/AddPipeline/Steps/Nodes/DataSource.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ const DataSourceNode = ({ id }) => {
return (
<ctx.Provider value={contextValue}>
<Field name={['name']} title="DataSource Name">
<Select disabled={collection && collection.length === 0}>
{collection.map(({ name }) => (
<Select.Option key={`nodes.${id}.spec.name_${name}`} value={name}>
{name}
</Select.Option>
))}
</Select>
<Select
disabled={collection && collection.length === 0}
options={collection?.map(({ name }) => ({
value: name,
label: name,
}))}
/>
</Field>

<RadioGroup value={mode} onChange={handleChangeMode}>
Expand All @@ -92,37 +92,39 @@ const DataSourceNode = ({ id }) => {

{mode === MODES.SNAPSHOT ? (
<Field name={['snapshot', 'name']} title="Snapshot Name">
<Select disabled={disableSnapshot} allowClear>
{snapshots?.map(entry => (
<Select.Option
key={`nodes.${id}.spec.version.${entry.id}`}
value={entry.name}>
<Select
disabled={disableSnapshot}
allowClear
options={snapshots?.map(entry => ({
value: entry.name,
label: (
<VersionRow
key={entry.id}
title={entry.name}
isLatest={false}
isSnapshot={false}
/>
</Select.Option>
))}
</Select>
),
}))}
/>
</Field>
) : mode === MODES.VERSION ? (
<Field name={['dataSource', 'id']} title="Version" skipValidation>
<Select disabled={disableVersions} allowClear>
{versionsCollection?.versions?.map(entry => (
<Select.Option
key={`nodes.${id}.spec.version.${entry.id}`}
value={entry.id}>
<Select
disabled={disableVersions}
allowClear
options={versionsCollection?.versions?.map(entry => ({
value: entry.id,
label: (
<VersionRow
key={entry.id}
title={entry.id}
isLatest={checkLatest(versionsCollection.versions, entry)}
isSnapshot={false}
/>
</Select.Option>
))}
</Select>
),
}))}
/>
</Field>
) : null}
</ctx.Provider>
Expand Down
17 changes: 7 additions & 10 deletions src/Routes/SidebarRight/AddPipeline/Steps/Nodes/Gateway.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useContext, useEffect, useMemo } from 'react';
import PropTypes from 'prop-types';
import { Select, Input, InputNumber } from 'antd';
import { Input, InputNumber } from 'antd';

import useWizardContext from '../../useWizardContext';
import { Field as RawField } from '../FormUtils';
Expand Down Expand Up @@ -52,15 +52,12 @@ const GatewayNode = ({ id }) => {
? initialState?.nodes[id]?.spec?.mem
: '512Mi'
}>
<MemoryField>
{memoryTypes.map(value => (
<Select.Option
value={value}
key={`nodes.${id}.memoryTypes.${value}`}>
{value}
</Select.Option>
))}
</MemoryField>
<MemoryField
options={memoryTypes.map(value => ({
value,
label: value,
}))}
/>
</Field>
<Field name={['cpu']} title="Cpu" initialValue={0.5} skipValidation>
<InputNumber min={0} />
Expand Down
Loading