Skip to content

Commit

Permalink
Merge branch 'refactor/compare-manifest' of github.com:devtron-labs/d…
Browse files Browse the repository at this point in the history
…ashboard into feat/rjsf-field-selector
  • Loading branch information
Elessar1802 committed Oct 3, 2024
2 parents eafdada + 56c2141 commit d781a76
Show file tree
Hide file tree
Showing 12 changed files with 1,525 additions and 707 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const ConfigDryRun = ({
handleChangeDryRunEditorMode,
isDraftPresent,
isPublishedConfigPresent,
isApprovalPending,
}: ConfigDryRunProps) => {
const { envId, appId } = useParams<BaseURLParams>()

Expand Down Expand Up @@ -72,7 +73,7 @@ const ConfigDryRun = ({
<div className="py-6 px-12 flexbox dc__content-space dc__border-bottom">
<div className="flexbox dc__gap-8">
<ICFileCode className="dc__no-shrink scn-9 icon-dim-16" />
{DryRunEditorModeSelect && isDraftPresent ? (
{DryRunEditorModeSelect && isApprovalPending ? (
<DryRunEditorModeSelect
selectedOptionValue={dryRunEditorMode}
handleChangeDryRunEditorMode={handleChangeDryRunEditorMode}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const ChartSelectorDropdown = ({
/>
</span>
</PopupMenu.Button>
<PopupMenu.Body rootClassName="chart-selector-container dc__border br-4">
<PopupMenu.Body rootClassName="dc__overflow-scroll mh-350 w-400 dc__border br-4">
<>
{customCharts.length > 0 && (
<div
Expand Down Expand Up @@ -150,8 +150,8 @@ const ChartSelectorDropdown = ({
<div
// eslint-disable-next-line react/no-array-index-key
key={`${selectedChartTypeTab}-${index}`}
className={`p-12 pointer chart-row ${
chart.name === selectedChart?.name ? ' bcb-1' : ''
className={`p-12 pointer chart-row ${
chart.name === selectedChart?.name ? ' bcb-1' : 'dc__hover-n50'
}`}
data-testid={`select-chart-type-menu-${index}`}
onClick={() => onSelectChartType(chart.name)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const DeleteOverrideDialog = ({
environmentConfigId,
handleReload,
handleClose,
handleShowDeleteDraftOverrideDialog,
handleProtectionError,
reloadEnvironments,
}: DeleteOverrideDialogProps) => {
const { appId, envId } = useParams<BaseURLParams>()
Expand All @@ -35,12 +35,9 @@ const DeleteOverrideDialog = ({
handleClose()
handleReload()
} catch (error) {
// TODO: Remove this later
showError(error)
// handleConfigProtectionError(2, error, dispatch, reloadEnvironments)
// TODO: Use util from above
if (error.code === 423) {
handleShowDeleteDraftOverrideDialog()
handleProtectionError()
reloadEnvironments()
}
} finally {
Expand Down
Loading

0 comments on commit d781a76

Please sign in to comment.