Compare commits

..

9 Commits

Author SHA1 Message Date
MokireddySampath
6a55fedf02 Update DataTableBindingManager.ts 2023-06-06 23:45:04 +05:30
MokireddySampath
54eb320965 Update DataTableBindingManager.ts 2023-06-06 23:43:49 +05:30
MokireddySampath
aefa46c7f4 Update AddCollectionPanel.test.tsx.snap 2023-06-06 23:39:50 +05:30
MokireddySampath
f80927e853 Update PanelComponent.less 2023-06-06 23:39:20 +05:30
MokireddySampath
2911cd8de0 Update AddCollectionPanel.tsx 2023-06-06 23:38:50 +05:30
MokireddySampath
898cb4b79e Update AddCollectionPanel.tsx 2023-06-06 23:36:17 +05:30
MokireddySampath
e17be27186 Update ThroughputInput.less 2023-06-06 23:35:09 +05:30
MokireddySampath
5339b1ddc9 Update TableEntity.tsx 2023-06-06 23:34:38 +05:30
MokireddySampath
745fd3a6e5 Update queryBuilder.less 2023-06-06 23:34:04 +05:30
5 changed files with 10 additions and 15 deletions

View File

@@ -1,6 +1,5 @@
import { DatePicker, TextField } from "@fluentui/react"; import { DatePicker, TextField } from "@fluentui/react";
import React, { FunctionComponent } from "react"; import React, { FunctionComponent } from "react";
import { attributeValueLabel } from "../Explorer/Panes/Tables/Validators/EntityTableHelper";
export interface TableEntityProps { export interface TableEntityProps {
entityValueLabel?: string; entityValueLabel?: string;
@@ -56,13 +55,11 @@ export const EntityValue: FunctionComponent<TableEntityProps> = ({
label={entityValueLabel && entityValueLabel} label={entityValueLabel && entityValueLabel}
className="addEntityTextField" className="addEntityTextField"
id="entityValueId" id="entityValueId"
autoFocus
disabled={isEntityValueDisable} disabled={isEntityValueDisable}
type={entityValueType} type={entityValueType}
placeholder={entityValuePlaceholder} placeholder={entityValuePlaceholder}
value={typeof entityValue === "string" ? entityValue : ""} value={typeof entityValue === "string" ? entityValue : ""}
onChange={onEntityValueChange} onChange={onEntityValueChange}
ariaLabel={attributeValueLabel}
/> />
); );
}; };

View File

@@ -12,7 +12,6 @@ import {
import React, { FunctionComponent } from "react"; import React, { FunctionComponent } from "react";
import DeleteIcon from "../../images/delete.svg"; import DeleteIcon from "../../images/delete.svg";
import EditIcon from "../../images/Edit_entity.svg"; import EditIcon from "../../images/Edit_entity.svg";
import { attributeNameLabel, dataTypeLabel } from "../Explorer/Panes/Tables/Validators/EntityTableHelper";
import { CassandraType, TableType } from "../Explorer/Tables/Constants"; import { CassandraType, TableType } from "../Explorer/Tables/Constants";
import { userContext } from "../UserContext"; import { userContext } from "../UserContext";
import { EntityValue } from "./EntityValue"; import { EntityValue } from "./EntityValue";
@@ -37,7 +36,7 @@ export interface TableEntityProps {
onDeleteEntity?: () => void; onDeleteEntity?: () => void;
onEditEntity?: () => void; onEditEntity?: () => void;
onEntityPropertyChange: (event: React.FormEvent<HTMLElement>, newInput?: string) => void; onEntityPropertyChange: (event: React.FormEvent<HTMLElement>, newInput?: string) => void;
onEntityTypeChange: (event: React.FormEvent<HTMLElement>, selectedParam: IDropdownOption) => void onEntityTypeChange: (event: React.FormEvent<HTMLElement>, selectedParam: IDropdownOption) => void;
onEntityValueChange: (event: React.FormEvent<HTMLElement>, newInput?: string) => void; onEntityValueChange: (event: React.FormEvent<HTMLElement>, newInput?: string) => void;
onSelectDate: (date: Date | null | undefined) => void; onSelectDate: (date: Date | null | undefined) => void;
onEntityTimeValueChange: (event: React.FormEvent<HTMLElement>, newInput?: string) => void; onEntityTimeValueChange: (event: React.FormEvent<HTMLElement>, newInput?: string) => void;
@@ -114,7 +113,6 @@ export const TableEntity: FunctionComponent<TableEntityProps> = ({
value={entityProperty} value={entityProperty}
onChange={onEntityPropertyChange} onChange={onEntityPropertyChange}
required required
ariaLabel={attributeNameLabel}
/> />
<Dropdown <Dropdown
label={entityTypeLabel && entityTypeLabel} label={entityTypeLabel && entityTypeLabel}
@@ -124,7 +122,6 @@ export const TableEntity: FunctionComponent<TableEntityProps> = ({
disabled={isPropertyTypeDisable} disabled={isPropertyTypeDisable}
id="entityTypeId" id="entityTypeId"
styles={dropdownStyles} styles={dropdownStyles}
ariaLabel={dataTypeLabel}
/> />
<EntityValue <EntityValue
entityValueLabel={entityValueLabel} entityValueLabel={entityValueLabel}

View File

@@ -24,6 +24,8 @@ import { calculateEstimateNumber, usageInGB } from "../../../../../Utils/Pricing
import { Int32 } from "../../../../Panes/Tables/Validators/EntityPropertyValidationCommon"; import { Int32 } from "../../../../Panes/Tables/Validators/EntityPropertyValidationCommon";
import { import {
AutoscaleEstimatedSpendingDisplayProps, AutoscaleEstimatedSpendingDisplayProps,
ManualEstimatedSpendingDisplayProps,
PriceBreakdown,
checkBoxAndInputStackProps, checkBoxAndInputStackProps,
getAutoPilotV3SpendElement, getAutoPilotV3SpendElement,
getChoiceGroupStyles, getChoiceGroupStyles,
@@ -31,16 +33,14 @@ import {
getRuPriceBreakdown, getRuPriceBreakdown,
getTextFieldStyles, getTextFieldStyles,
getToolTipContainer, getToolTipContainer,
ManualEstimatedSpendingDisplayProps,
manualToAutoscaleDisclaimerElement, manualToAutoscaleDisclaimerElement,
messageBarStyles, messageBarStyles,
noLeftPaddingCheckBoxStyle, noLeftPaddingCheckBoxStyle,
PriceBreakdown,
saveThroughputWarningMessage, saveThroughputWarningMessage,
titleAndInputStackProps, titleAndInputStackProps,
transparentDetailsHeaderStyle, transparentDetailsHeaderStyle,
} from "../../SettingsRenderUtils"; } from "../../SettingsRenderUtils";
import { getSanitizedInputValue, IsComponentDirtyResult, isDirty } from "../../SettingsUtils"; import { IsComponentDirtyResult, getSanitizedInputValue, isDirty } from "../../SettingsUtils";
import { ToolTipLabelComponent } from "../ToolTipLabelComponent"; import { ToolTipLabelComponent } from "../ToolTipLabelComponent";
export interface ThroughputInputAutoPilotV3Props { export interface ThroughputInputAutoPilotV3Props {
@@ -218,7 +218,7 @@ export class ThroughputInputAutoPilotV3Component extends React.Component<
const estimatedSpendingColumns: IColumn[] = [ const estimatedSpendingColumns: IColumn[] = [
{ {
key: "costType", key: "costType",
name: "", name: "Cost Type",
fieldName: "costType", fieldName: "costType",
minWidth: 100, minWidth: 100,
maxWidth: 200, maxWidth: 200,
@@ -312,7 +312,7 @@ export class ThroughputInputAutoPilotV3Component extends React.Component<
const estimatedSpendingColumns: IColumn[] = [ const estimatedSpendingColumns: IColumn[] = [
{ {
key: "costType", key: "costType",
name: "", name: "Cost type",
fieldName: "costType", fieldName: "costType",
minWidth: 100, minWidth: 100,
maxWidth: 200, maxWidth: 200,

View File

@@ -311,7 +311,7 @@ exports[`ThroughputInputAutoPilotV3Component spendAck checkbox visible 1`] = `
"key": "costType", "key": "costType",
"maxWidth": 200, "maxWidth": 200,
"minWidth": 100, "minWidth": 100,
"name": "", "name": "Cost type",
"styles": Object { "styles": Object {
"root": Object { "root": Object {
"selectors": Object { "selectors": Object {
@@ -586,7 +586,7 @@ exports[`ThroughputInputAutoPilotV3Component throughput input visible 1`] = `
"key": "costType", "key": "costType",
"maxWidth": 200, "maxWidth": 200,
"minWidth": 100, "minWidth": 100,
"name": "", "name": "Cost type",
"styles": Object { "styles": Object {
"root": Object { "root": Object {
"selectors": Object { "selectors": Object {

View File

@@ -135,6 +135,7 @@
"./src/quickstart.ts", "./src/quickstart.ts",
"./src/setupTests.ts", "./src/setupTests.ts",
"./src/userContext.test.ts", "./src/userContext.test.ts",
"src/Common/EntityValue.tsx",
"./src/Platform/Hosted/Components/SwitchAccount.tsx", "./src/Platform/Hosted/Components/SwitchAccount.tsx",
"./src/Platform/Hosted/Components/SwitchSubscription.tsx" "./src/Platform/Hosted/Components/SwitchSubscription.tsx"
], ],
@@ -162,4 +163,4 @@
"src/Terminal/**/*", "src/Terminal/**/*",
"src/Utils/arm/**/*" "src/Utils/arm/**/*"
] ]
} }