Skip to content

Commit 2b337b7

Browse files
authored
Merge pull request #2607 from devtron-labs/feat/select-picker-variants
feat: add compact & border less variant for select picker
2 parents bd9ea0a + 8caa618 commit 2b337b7

File tree

20 files changed

+66
-31
lines changed

20 files changed

+66
-31
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"homepage": "/dashboard",
66
"dependencies": {
7-
"@devtron-labs/devtron-fe-common-lib": "1.10.4",
7+
"@devtron-labs/devtron-fe-common-lib": "1.10.5",
88
"@esbuild-plugins/node-globals-polyfill": "0.2.3",
99
"@rjsf/core": "^5.13.3",
1010
"@rjsf/utils": "^5.13.3",

src/Pages/Applications/DevtronApps/Details/AppConfigurations/MainContent/DeploymentConfigCompare/DeploymentConfigCompare.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ export const DeploymentConfigCompare = ({
459459
classNamePrefix: 'compare-with-environment-selector',
460460
inputId: 'compare-with-environment-selector',
461461
name: 'compare-with-environment-selector',
462-
variant: SelectPickerVariantType.BORDER_LESS,
462+
variant: SelectPickerVariantType.COMPACT,
463463
value: getSelectPickerOptionByValue(compareEnvironmentSelectorOptions, chartRefId || compareWith, {
464464
label: BASE_CONFIGURATIONS.name,
465465
value: '',
@@ -497,7 +497,7 @@ export const DeploymentConfigCompare = ({
497497
classNamePrefix: 'environment-config-type-selector',
498498
inputId: `environment-config-type-selector-${isCompare ? 'compare' : 'current'}`,
499499
name: `environment-config-type-selector-${isCompare ? 'compare' : 'current'}`,
500-
variant: SelectPickerVariantType.BORDER_LESS,
500+
variant: SelectPickerVariantType.COMPACT,
501501
isSearchable: false,
502502
disableDescriptionEllipsis: true,
503503
value: getSelectPickerOptionByValue(

src/Pages/Applications/DevtronApps/Details/AppConfigurations/MainContent/DeploymentTemplate/DTChartSelector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ const DTChartSelector = ({
253253
value={selectedOption}
254254
onChange={onSelectChartVersion}
255255
isSearchable={false}
256-
variant={SelectPickerVariantType.BORDER_LESS}
256+
variant={SelectPickerVariantType.COMPACT}
257257
size={ComponentSizeType.small}
258258
placeholder="Select version"
259259
isDisabled={migratedFrom === PipelineMigratedFromType.ARGO_APPLICATION}

src/Pages/Applications/DevtronApps/Details/AppConfigurations/MainContent/SelectMergeStrategy.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const SelectMergeStrategy = ({
7878
value={selectedOption}
7979
options={options}
8080
isDisabled={isDisabled}
81-
variant={SelectPickerVariantType.BORDER_LESS}
81+
variant={SelectPickerVariantType.COMPACT}
8282
isSearchable={false}
8383
size={ComponentSizeType.small}
8484
isOptionDisabled={getIsOptionDisabled}

src/Pages/Applications/DevtronApps/Details/AppConfigurations/Navigation/EnvConfigurationsNav.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ export const EnvConfigurationsNav = ({
404404
<SelectPicker<number, false>
405405
inputId="env-config-selector"
406406
classNamePrefix="env-config-selector"
407-
variant={SelectPickerVariantType.BORDER_LESS}
407+
variant={SelectPickerVariantType.COMPACT}
408408
isClearable={false}
409409
value={getSelectPickerOptionByValue(envOptions, parsedResourceId, baseEnvOption[0])}
410410
options={envOptions}

src/components/CIPipelineN/ConditionContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ export const ConditionContainer = ({ type }: { type: ConditionContainerType }) =
322322
?.filter((variable) => variable.name)
323323
.map((variable) => ({ label: variable.name, value: variable.id }))}
324324
isSearchable={false}
325-
variant={SelectPickerVariantType.BORDER_LESS}
325+
variant={SelectPickerVariantType.COMPACT}
326326
/>
327327
</div>
328328
<SelectPicker

src/components/CIPipelineN/EnvironmentList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export const EnvironmentList = ({
106106
value={getSelectedEnvironment()}
107107
onChange={selectEnvironment}
108108
size={ComponentSizeType.large}
109-
variant={isBorderLess ? SelectPickerVariantType.BORDER_LESS : SelectPickerVariantType.DEFAULT}
109+
variant={isBorderLess ? SelectPickerVariantType.COMPACT : SelectPickerVariantType.DEFAULT}
110110
/>
111111
</div>
112112
</div>

src/components/CIPipelineN/PluginDetailHeader/PluginVersionSelect.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const PluginVersionSelect = ({ handlePluginVersionChange }: PluginVersionSelectP
5959
classNamePrefix="plugin-detail-header__version-select"
6060
inputId="plugin-detail-header__version-select"
6161
placeholder="Version"
62-
variant={SelectPickerVariantType.BORDER_LESS}
62+
variant={SelectPickerVariantType.COMPACT}
6363
onChange={handleChange}
6464
onKeyDown={stopPropagation}
6565
/>

src/components/app/details/appDetails/utils.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export const ThroughputSelect = (props) => {
105105
]}
106106
onChange={props.handleStatusChange}
107107
onCreateOption={onCreateOption}
108-
variant={SelectPickerVariantType.BORDER_LESS}
108+
variant={SelectPickerVariantType.COMPACT}
109109
menuPosition="absolute"
110110
/>
111111
)
@@ -130,7 +130,7 @@ export const LatencySelect = (props) => {
130130
]}
131131
onChange={props.handleLatencyChange}
132132
onCreateOption={onCreateOption}
133-
variant={SelectPickerVariantType.BORDER_LESS}
133+
variant={SelectPickerVariantType.COMPACT}
134134
menuPosition="absolute"
135135
/>
136136
)

src/components/app/details/triggerView/PipelineConfigDiff/usePipelineDeploymentConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ export const usePipelineDeploymentConfig = ({
327327
classNamePrefix: 'deployment-config-selector',
328328
inputId: 'deployment-config-selector',
329329
name: 'deployment-config-selector',
330-
variant: SelectPickerVariantType.BORDER_LESS,
330+
variant: SelectPickerVariantType.COMPACT,
331331
isSearchable: false,
332332
disableDescriptionEllipsis: true,
333333
value: getSelectPickerOptionByValue(

0 commit comments

Comments
 (0)