Compare commits

...

39 Commits

Author SHA1 Message Date
MokireddySampath
902199d9ce Update tsconfig.strict.json 2023-08-02 16:54:11 +05:30
MokireddySampath
fa0a508973 Update tsconfig.strict.json 2023-08-02 16:44:28 +05:30
MokireddySampath
985aa2e9ac Update tsconfig.strict.json 2023-08-02 16:29:18 +05:30
MokireddySampath
2283aa8d94 Update TableEntity.tsx 2023-07-04 09:22:03 +05:30
MokireddySampath
32373a0ead Update TableEntity.tsx 2023-07-04 09:16:57 +05:30
MokireddySampath
36777b5a16 Update TableEntity.tsx 2023-06-27 20:30:52 +05:30
MokireddySampath
1d481d1740 Update TableEntity.tsx 2023-06-26 16:48:23 +05:30
MokireddySampath
f87cdac062 Update TableEntity.tsx 2023-06-26 16:47:16 +05:30
MokireddySampath
dc16ff2dfc Update QueryTablesTab.html 2023-06-08 18:53:05 +05:30
MokireddySampath
9edb5a6bb5 Update DataTableBindingManager.ts 2023-06-08 18:52:00 +05:30
MokireddySampath
0fcb2f9669 Update DataTableBindingManager.ts 2023-06-08 18:50:50 +05:30
MokireddySampath
fdfdc4a3de Update AddCollectionPanel.test.tsx.snap 2023-06-08 15:16:36 +05:30
MokireddySampath
39c55c1607 Update PanelComponent.less 2023-06-08 15:14:57 +05:30
MokireddySampath
db2caf9a81 Update AddCollectionPanel.tsx 2023-06-08 15:14:23 +05:30
MokireddySampath
c858c1042d Update AddCollectionPanel.tsx 2023-06-08 15:11:48 +05:30
MokireddySampath
e243d87310 Update ThroughputInput.less 2023-06-08 15:09:46 +05:30
MokireddySampath
e0123656d7 Update ThroughputInputAutoPilotV3Component.test.tsx.snap 2023-06-08 15:09:24 +05:30
MokireddySampath
6068194d26 Update ThroughputInputAutoPilotV3Component.tsx 2023-06-07 20:30:18 +05:30
MokireddySampath
c6ef6ba02d Update TableEntity.tsx 2023-06-07 20:27:04 +05:30
MokireddySampath
9095e39f94 Update queryBuilder.less 2023-06-07 20:24:38 +05:30
Sampath
437a9835f8 aria labels added to add table row dialog elements appropriately 2023-06-07 20:23:17 +05:30
Sampath
75176550f0 role and alt text has been added to presentation images 2023-06-07 01:23:09 +05:30
Sampath
bbf89eaed8 aria label has been changed for the screen readers to read placeholder text along with label text 2023-06-07 00:50:37 +05:30
Sampath
4cb7c3eb26 Column header is populated with text 2023-06-06 23:32:16 +05:30
Sampath
21e2ecefc1 learn more link under analytical store 2023-06-06 19:42:27 +05:30
Sampath
b48c3d7735 keyboard accessibility added to rows in table entities 2023-06-06 17:22:27 +05:30
Sampath
45b9f6b244 outline for edit entity has been added on focus 2023-06-06 16:20:00 +05:30
MokireddySampath
fe40e77ef8 Update TableEntity.tsx 2023-06-06 16:16:01 +05:30
MokireddySampath
8c062cd5de Update SplashScreen.tsx 2023-05-22 18:10:53 +05:30
MokireddySampath
2bbd63f0b6 Update QuickstartCarousel.tsx 2023-05-22 18:09:28 +05:30
Sampath
c8310021bc outline has been restored to choose columns link in entities page 2023-05-22 18:05:39 +05:30
Sampath
93392c8795 heading role has been addedd and tag has been changed to h1 2023-05-22 17:04:36 +05:30
Sampath
f98cdf39d6 arialabel has been added to close button of invitational youtube video 2023-05-17 18:57:51 +05:30
MokireddySampath
ba66aa939b Defect 2280249 (#1432)
* autoscale and manual radiobuutton fixes

* alt text attribute for images

* Revert "alt text attribute for images"

This reverts commit 5a660551c6.

* alt text for decorative images

* sev2 accessibilitydefects in data explorer

* Commit to my local branch

* role has been added to graphic tag

* Update TableEntity.tsx

* Update ThroughputInput.tsx

* Update ThroughputInput.test.tsx.snap

* Update TreeComponent.tsx

* Update TableEntity.tsx

* Update AddCollectionPanel.tsx

* Update AddCollectionPanel.tsx

* Update AddCollectionPanel.tsx

* Update AddCollectionPanel.tsx

* Update AddCollectionPanel.tsx

* Update SplashScreen.tsx

* Update TreeComponent.test.tsx.snap

* Update TreeComponent.test.tsx.snap
2023-05-09 23:42:04 +05:30
MokireddySampath
f9af595eee 2276949test (#1433)
* autoscale and manual radiobuutton fixes

* alt text attribute for images

* Revert "alt text attribute for images"

This reverts commit 5a660551c6.

* alt text for decorative images

* sev2 accessibilitydefects in data explorer

* Commit to my local branch

* Autofocus removed

* Update TableEntity.tsx

* Update TableEntity.tsx

* Update TableEntity.tsx

* Update ThroughputInput.tsx

* Update ThroughputInput.test.tsx.snap

* Update TreeComponent.tsx

* Update TreeComponent.test.tsx.snap

* Update AddCollectionPanel.tsx

* Update SplashScreen.tsx
2023-05-09 23:33:05 +05:30
MokireddySampath
7ce8c7a5a1 anchor link removed, since interactive elements cannot be nested (#1434)
* anchor link removed, since interactive elements cannot be nested

* Update Tabs.tsx
2023-05-09 23:32:36 +05:30
MokireddySampath
9ad3f589cc aria required and asterisk has been added to indicate mandatory input for new vertex key input (#1435) 2023-05-09 23:32:09 +05:30
MokireddySampath
9267b2cc18 role has been corrected to combobox for the dropdown (#1438) 2023-05-09 23:29:56 +05:30
MokireddySampath
c7d1b2dcdb Defect2280542 (#1441)
* Changes made for the screenreader to readout the label and suffix associated with the input

* Added an empty href to restore the chactristics of link in high contrast mode

* Update SubSettingsComponent.tsx

* Update SubSettingsComponent.tsx

* Update SubSettingsComponent.tsx

* Update SubSettingsComponent.tsx

* Update SubSettingsComponent.test.tsx.snap

* Update SubSettingsComponent.test.tsx.snap

* Update SubSettingsComponent.test.tsx.snap
2023-05-09 23:29:25 +05:30
8 changed files with 29 additions and 22 deletions

View File

@@ -1,5 +1,6 @@
import { DatePicker, TextField } from "@fluentui/react";
import React, { FunctionComponent } from "react";
import { attributeValueLabel } from "../Explorer/Panes/Tables/Validators/EntityTableHelper";
export interface TableEntityProps {
entityValueLabel?: string;
@@ -61,6 +62,7 @@ export const EntityValue: FunctionComponent<TableEntityProps> = ({
placeholder={entityValuePlaceholder}
value={typeof entityValue === "string" ? entityValue : ""}
onChange={onEntityValueChange}
ariaLabel={attributeValueLabel}
/>
);
};

View File

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

View File

@@ -729,6 +729,7 @@ export class D3ForceGraph implements GraphRenderer {
var iconGroup = newNodes
.append("g")
.attr("class", "iconContainer")
.attr("role", "group")
.attr("tabindex", 0)
.attr("aria-label", (d: D3Node) => {
return this.retrieveNodeCaption(d);

View File

@@ -107,11 +107,11 @@ describe("New Vertex Component", () => {
it("should call onTypeChange method on type dropdown change", () => {
const DOWN_ARROW = { keyCode: 40 };
const onTypeChange = jest.fn();
const dropdown = screen.getByRole("listbox");
const dropdown = screen.getByRole("combobox");
dropdown.onclick = onTypeChange();
dropdown.onkeydown = onTypeChange();
fireEvent.keyDown(screen.getByRole("listbox"), DOWN_ARROW);
fireEvent.keyDown(screen.getByRole("combobox"), DOWN_ARROW);
fireEvent.click(screen.getByText(/number/));
expect(onTypeChange).toHaveBeenCalled();
});

View File

@@ -145,6 +145,7 @@ export const NewVertexComponent: FunctionComponent<INewVertexComponentProps> = (
type="text"
id="propertyKeyNewVertexPane"
componentRef={input}
aria-required="true"
placeholder="Key"
autoComplete="off"
aria-label={`Enter value for propery ${index + 1}`}
@@ -152,6 +153,8 @@ export const NewVertexComponent: FunctionComponent<INewVertexComponentProps> = (
onChange={(event: React.ChangeEvent<HTMLInputElement>) => onKeyChange(event, index)}
/>
</div>
<span className="mandatoryStar">*&nbsp;</span>
<div className="valueCol">
<TextField
className="edgeInput"
@@ -165,7 +168,7 @@ export const NewVertexComponent: FunctionComponent<INewVertexComponentProps> = (
</div>
<div>
<Dropdown
role="listbox"
role="combobox"
placeholder="Select an option"
defaultSelectedKey={data.values[0].type}
style={{ width: 100 }}

View File

@@ -134,6 +134,7 @@
data-bind="click: selectQueryOptions, event: { keydown: onselectQueryOptionsKeyDown }"
tabindex="0"
role="button"
href=""
>
<span>Choose Columns... </span>
</a>

View File

@@ -7,10 +7,10 @@ import { SplashScreen } from "Explorer/SplashScreen/SplashScreen";
import { ConnectTab } from "Explorer/Tabs/ConnectTab";
import { PostgresConnectTab } from "Explorer/Tabs/PostgresConnectTab";
import { QuickstartTab } from "Explorer/Tabs/QuickstartTab";
import { userContext } from "UserContext";
import { useTeachingBubble } from "hooks/useTeachingBubble";
import ko from "knockout";
import React, { MutableRefObject, useEffect, useRef, useState } from "react";
import { userContext } from "UserContext";
import loadingIcon from "../../../images/circular_loader_black_16x16.gif";
import errorIcon from "../../../images/close-black.svg";
import { useObservable } from "../../hooks/useObservable";
@@ -102,22 +102,20 @@ function TabNav({ tab, active, tabKind }: { tab?: Tab; active: boolean; tabKind?
ref={focusTab}
>
<span className="tabNavContentContainer">
<a data-toggle="tab" href={"#" + tabId} tabIndex={-1}>
<div className="tab_Content">
<span className="statusIconContainer" style={{ width: tabKind === ReactTabKind.Home ? 0 : 18 }}>
{useObservable(tab?.isExecutionError || ko.observable(false)) && <ErrorIcon tab={tab} active={active} />}
{useObservable(tab?.isExecuting || ko.observable(false)) && (
<img className="loadingIcon" title="Loading" src={loadingIcon} alt="Loading" />
)}
</span>
<span className="tabNavText">{useObservable(tab?.tabTitle || ko.observable(ReactTabKind[tabKind]))}</span>
{tabKind !== ReactTabKind.Home && (
<span className="tabIconSection">
<CloseButton tab={tab} active={active} hovering={hovering} tabKind={tabKind} />
</span>
<div className="tab_Content">
<span className="statusIconContainer" style={{ width: tabKind === ReactTabKind.Home ? 0 : 18 }}>
{useObservable(tab?.isExecutionError || ko.observable(false)) && <ErrorIcon tab={tab} active={active} />}
{useObservable(tab?.isExecuting || ko.observable(false)) && (
<img className="loadingIcon" title="Loading" src={loadingIcon} alt="Loading" />
)}
</div>
</a>
</span>
<span className="tabNavText">{useObservable(tab?.tabTitle || ko.observable(ReactTabKind[tabKind]))}</span>
{tabKind !== ReactTabKind.Home && (
<span className="tabIconSection">
<CloseButton tab={tab} active={active} hovering={hovering} tabKind={tabKind} />
</span>
)}
</div>
</span>
</li>
);

View File

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