-
+
)
@@ -329,7 +317,7 @@ export const DynamicDataTableRow =
{renderCellIcon(row, key, true)}
- {renderCellContent(row, key)}
+ {renderCellContent(row, key, index)}
{renderAsterisk(row, key)}
{renderCellIcon(row, key)}
{renderErrorMessages(row, key)}
@@ -383,7 +371,7 @@ export const DynamicDataTableRow = }
+ icon={}
disabled={disableDeleteRow || row.disableDelete}
onClick={onDelete(row)}
variant={ButtonVariantType.borderLess}
diff --git a/src/Shared/Components/DynamicDataTable/styles.scss b/src/Shared/Components/DynamicDataTable/styles.scss
index bea6f38b1..015d955f1 100644
--- a/src/Shared/Components/DynamicDataTable/styles.scss
+++ b/src/Shared/Components/DynamicDataTable/styles.scss
@@ -69,21 +69,21 @@
height: 36px;
width: 100%;
background: inherit;
-
- &--add {
- resize: none;
- border-radius: 4px;
- outline: none;
- }
}
&__cell {
min-width: 0;
- &__select-picker__control {
- gap: 6px !important;
- padding: 8px !important;
- max-height: 160px !important;
+ &__select-picker {
+ &__control {
+ gap: 6px !important;
+ padding: 8px !important;
+ max-height: 160px !important;
+ }
+
+ &__single-value {
+ font-weight: 400 !important;
+ }
}
&__select-picker-text-area {
diff --git a/src/Shared/Components/DynamicDataTable/types.ts b/src/Shared/Components/DynamicDataTable/types.ts
index 3e9574cb1..a7b8b3981 100644
--- a/src/Shared/Components/DynamicDataTable/types.ts
+++ b/src/Shared/Components/DynamicDataTable/types.ts
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-import { DetailedHTMLProps, Dispatch, ReactElement, ReactNode, SetStateAction } from 'react'
+import { DetailedHTMLProps, ReactElement, ReactNode } from 'react'
import { ResizableTagTextAreaProps } from '@Common/CustomTagSelector'
import { UseStateFiltersReturnType } from '@Common/Hooks'
@@ -228,6 +228,12 @@ export type DynamicDataTableProps>
@@ -261,7 +267,5 @@ export interface DynamicDataTableRowProps {
- isAddRowButtonClicked: boolean
- setIsAddRowButtonClicked: Dispatch>
-}
+ | 'shouldAutoFocusOnMount'
+ > {}
diff --git a/src/Shared/Components/Icon/Icon.tsx b/src/Shared/Components/Icon/Icon.tsx
index 0a543e5fe..64ab92468 100644
--- a/src/Shared/Components/Icon/Icon.tsx
+++ b/src/Shared/Components/Icon/Icon.tsx
@@ -136,6 +136,7 @@ import { ReactComponent as ICSortDescending } from '@IconsV2/ic-sort-descending.
import { ReactComponent as ICSortable } from '@IconsV2/ic-sortable.svg'
import { ReactComponent as ICSparkleColor } from '@IconsV2/ic-sparkle-color.svg'
import { ReactComponent as ICSpinny } from '@IconsV2/ic-spinny.svg'
+import { ReactComponent as ICSprayCan } from '@IconsV2/ic-spray-can.svg'
import { ReactComponent as ICStack } from '@IconsV2/ic-stack.svg'
import { ReactComponent as ICStamp } from '@IconsV2/ic-stamp.svg'
import { ReactComponent as ICSuccess } from '@IconsV2/ic-success.svg'
@@ -298,6 +299,7 @@ export const iconMap = {
'ic-sortable': ICSortable,
'ic-sparkle-color': ICSparkleColor,
'ic-spinny': ICSpinny,
+ 'ic-spray-can': ICSprayCan,
'ic-stack': ICStack,
'ic-stamp': ICStamp,
'ic-success': ICSuccess,
diff --git a/src/Shared/Components/KeyValueTable/KeyValueTable.component.tsx b/src/Shared/Components/KeyValueTable/KeyValueTable.component.tsx
index e43a693a9..6b11c369a 100644
--- a/src/Shared/Components/KeyValueTable/KeyValueTable.component.tsx
+++ b/src/Shared/Components/KeyValueTable/KeyValueTable.component.tsx
@@ -41,6 +41,7 @@ export const KeyValueTable = ({
headerComponent,
onChange,
isAdditionNotAllowed,
+ shouldAutoFocusOnMount,
readOnly,
showError,
validationSchema: parentValidationSchema,
@@ -180,6 +181,7 @@ export const KeyValueTable = ({
headerComponent={headerComponent}
readOnly={readOnly}
isAdditionNotAllowed={isAdditionNotAllowed}
+ shouldAutoFocusOnMount={shouldAutoFocusOnMount}
sortingConfig={{
sortBy,
sortOrder,
diff --git a/src/Shared/Components/KeyValueTable/KeyValueTable.types.ts b/src/Shared/Components/KeyValueTable/KeyValueTable.types.ts
index fff70a1b0..a245542b7 100644
--- a/src/Shared/Components/KeyValueTable/KeyValueTable.types.ts
+++ b/src/Shared/Components/KeyValueTable/KeyValueTable.types.ts
@@ -85,7 +85,7 @@ export interface KeyValueTableData extends Pick {
*/
export type KeyValueTableProps = Pick<
DynamicDataTableProps,
- 'isAdditionNotAllowed' | 'readOnly' | 'headerComponent'
+ 'isAdditionNotAllowed' | 'readOnly' | 'headerComponent' | 'shouldAutoFocusOnMount'
> & {
/**
* The label for the table header.
diff --git a/src/Shared/DocLink/constants.ts b/src/Shared/DocLink/constants.ts
index 9df6d6791..ed342b4c4 100644
--- a/src/Shared/DocLink/constants.ts
+++ b/src/Shared/DocLink/constants.ts
@@ -33,6 +33,7 @@ export const DOCUMENTATION = {
EXTERNAL_SECRET: 'usage/applications/creating-application/secrets#external-secrets',
HOME_PAGE: 'https://devtron.ai',
KUBE_CONFIG: 'usage/resource-browser#running-kubectl-commands-locally',
+ TAINT: 'usage/resource-browser#taint-a-node',
// Global Configurations
GLOBAL_CONFIG_API_TOKEN: 'getting-started/global-configurations/authorization/api-tokens',