mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-29 13:51:49 +00:00
Compare commits
26 Commits
users/aisa
...
2271490
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a516d9ec45 | ||
|
|
61a0433c40 | ||
|
|
0fd7129d2f | ||
|
|
b4c0e29c04 | ||
|
|
8e723df3fb | ||
|
|
9e2ab607f7 | ||
|
|
7108c9b1ba | ||
|
|
e3632b734c | ||
|
|
881efd965c | ||
|
|
84b73d5bb6 | ||
|
|
9e7beff184 | ||
|
|
a0b6d71507 | ||
|
|
e267b5c1cc | ||
|
|
85bd63f1a4 | ||
|
|
ccd817e432 | ||
|
|
34611bdbdf | ||
|
|
15388fb03e | ||
|
|
c8310021bc | ||
|
|
93392c8795 | ||
|
|
f98cdf39d6 | ||
|
|
ba66aa939b | ||
|
|
f9af595eee | ||
|
|
7ce8c7a5a1 | ||
|
|
9ad3f589cc | ||
|
|
9267b2cc18 | ||
|
|
c7d1b2dcdb |
@@ -650,4 +650,4 @@ tr:hover td.nameColumnText {
|
|||||||
|
|
||||||
.context-menu-item.icon-customize-columns {
|
.context-menu-item.icon-customize-columns {
|
||||||
background-image: url(../../images/Options.svg);
|
background-image: url(../../images/Options.svg);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -55,7 +55,6 @@ 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}
|
||||||
|
|||||||
@@ -729,6 +729,7 @@ export class D3ForceGraph implements GraphRenderer {
|
|||||||
var iconGroup = newNodes
|
var iconGroup = newNodes
|
||||||
.append("g")
|
.append("g")
|
||||||
.attr("class", "iconContainer")
|
.attr("class", "iconContainer")
|
||||||
|
.attr("role", "group")
|
||||||
.attr("tabindex", 0)
|
.attr("tabindex", 0)
|
||||||
.attr("aria-label", (d: D3Node) => {
|
.attr("aria-label", (d: D3Node) => {
|
||||||
return this.retrieveNodeCaption(d);
|
return this.retrieveNodeCaption(d);
|
||||||
|
|||||||
@@ -107,11 +107,11 @@ describe("New Vertex Component", () => {
|
|||||||
it("should call onTypeChange method on type dropdown change", () => {
|
it("should call onTypeChange method on type dropdown change", () => {
|
||||||
const DOWN_ARROW = { keyCode: 40 };
|
const DOWN_ARROW = { keyCode: 40 };
|
||||||
const onTypeChange = jest.fn();
|
const onTypeChange = jest.fn();
|
||||||
const dropdown = screen.getByRole("listbox");
|
const dropdown = screen.getByRole("combobox");
|
||||||
dropdown.onclick = onTypeChange();
|
dropdown.onclick = onTypeChange();
|
||||||
dropdown.onkeydown = onTypeChange();
|
dropdown.onkeydown = onTypeChange();
|
||||||
|
|
||||||
fireEvent.keyDown(screen.getByRole("listbox"), DOWN_ARROW);
|
fireEvent.keyDown(screen.getByRole("combobox"), DOWN_ARROW);
|
||||||
fireEvent.click(screen.getByText(/number/));
|
fireEvent.click(screen.getByText(/number/));
|
||||||
expect(onTypeChange).toHaveBeenCalled();
|
expect(onTypeChange).toHaveBeenCalled();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -145,6 +145,7 @@ export const NewVertexComponent: FunctionComponent<INewVertexComponentProps> = (
|
|||||||
type="text"
|
type="text"
|
||||||
id="propertyKeyNewVertexPane"
|
id="propertyKeyNewVertexPane"
|
||||||
componentRef={input}
|
componentRef={input}
|
||||||
|
aria-required="true"
|
||||||
placeholder="Key"
|
placeholder="Key"
|
||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
aria-label={`Enter value for propery ${index + 1}`}
|
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)}
|
onChange={(event: React.ChangeEvent<HTMLInputElement>) => onKeyChange(event, index)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<span className="mandatoryStar">* </span>
|
||||||
|
|
||||||
<div className="valueCol">
|
<div className="valueCol">
|
||||||
<TextField
|
<TextField
|
||||||
className="edgeInput"
|
className="edgeInput"
|
||||||
@@ -165,7 +168,7 @@ export const NewVertexComponent: FunctionComponent<INewVertexComponentProps> = (
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<Dropdown
|
<Dropdown
|
||||||
role="listbox"
|
role="combobox"
|
||||||
placeholder="Select an option"
|
placeholder="Select an option"
|
||||||
defaultSelectedKey={data.values[0].type}
|
defaultSelectedKey={data.values[0].type}
|
||||||
style={{ width: 100 }}
|
style={{ width: 100 }}
|
||||||
|
|||||||
@@ -32,14 +32,8 @@ export const PanelInfoErrorComponent: React.FunctionComponent<PanelInfoErrorProp
|
|||||||
return (
|
return (
|
||||||
<Stack className="panelInfoErrorContainer" horizontal verticalAlign="center">
|
<Stack className="panelInfoErrorContainer" horizontal verticalAlign="center">
|
||||||
{icon}
|
{icon}
|
||||||
<span className="panelWarningErrorDetailsLinkContainer">
|
<span className="panelWarningErrorDetailsLinkContainer" role="alert" aria-live="assertive">
|
||||||
<Text
|
<Text aria-label={message} className="panelWarningErrorMessage" variant="small">
|
||||||
role="alert"
|
|
||||||
aria-live="assertive"
|
|
||||||
aria-label={message}
|
|
||||||
className="panelWarningErrorMessage"
|
|
||||||
variant="small"
|
|
||||||
>
|
|
||||||
{message}
|
{message}
|
||||||
{link && linkText && (
|
{link && linkText && (
|
||||||
<Link target="_blank" href={link}>
|
<Link target="_blank" href={link}>
|
||||||
|
|||||||
@@ -134,6 +134,7 @@
|
|||||||
data-bind="click: selectQueryOptions, event: { keydown: onselectQueryOptionsKeyDown }"
|
data-bind="click: selectQueryOptions, event: { keydown: onselectQueryOptionsKeyDown }"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
role="button"
|
role="button"
|
||||||
|
href=""
|
||||||
>
|
>
|
||||||
<span>Choose Columns... </span>
|
<span>Choose Columns... </span>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -7,10 +7,10 @@ import { SplashScreen } from "Explorer/SplashScreen/SplashScreen";
|
|||||||
import { ConnectTab } from "Explorer/Tabs/ConnectTab";
|
import { ConnectTab } from "Explorer/Tabs/ConnectTab";
|
||||||
import { PostgresConnectTab } from "Explorer/Tabs/PostgresConnectTab";
|
import { PostgresConnectTab } from "Explorer/Tabs/PostgresConnectTab";
|
||||||
import { QuickstartTab } from "Explorer/Tabs/QuickstartTab";
|
import { QuickstartTab } from "Explorer/Tabs/QuickstartTab";
|
||||||
|
import { userContext } from "UserContext";
|
||||||
import { useTeachingBubble } from "hooks/useTeachingBubble";
|
import { useTeachingBubble } from "hooks/useTeachingBubble";
|
||||||
import ko from "knockout";
|
import ko from "knockout";
|
||||||
import React, { MutableRefObject, useEffect, useRef, useState } from "react";
|
import React, { MutableRefObject, useEffect, useRef, useState } from "react";
|
||||||
import { userContext } from "UserContext";
|
|
||||||
import loadingIcon from "../../../images/circular_loader_black_16x16.gif";
|
import loadingIcon from "../../../images/circular_loader_black_16x16.gif";
|
||||||
import errorIcon from "../../../images/close-black.svg";
|
import errorIcon from "../../../images/close-black.svg";
|
||||||
import { useObservable } from "../../hooks/useObservable";
|
import { useObservable } from "../../hooks/useObservable";
|
||||||
@@ -102,22 +102,20 @@ function TabNav({ tab, active, tabKind }: { tab?: Tab; active: boolean; tabKind?
|
|||||||
ref={focusTab}
|
ref={focusTab}
|
||||||
>
|
>
|
||||||
<span className="tabNavContentContainer">
|
<span className="tabNavContentContainer">
|
||||||
<a data-toggle="tab" href={"#" + tabId} tabIndex={-1}>
|
<div className="tab_Content">
|
||||||
<div className="tab_Content">
|
<span className="statusIconContainer" style={{ width: tabKind === ReactTabKind.Home ? 0 : 18 }}>
|
||||||
<span className="statusIconContainer" style={{ width: tabKind === ReactTabKind.Home ? 0 : 18 }}>
|
{useObservable(tab?.isExecutionError || ko.observable(false)) && <ErrorIcon tab={tab} active={active} />}
|
||||||
{useObservable(tab?.isExecutionError || ko.observable(false)) && <ErrorIcon tab={tab} active={active} />}
|
{useObservable(tab?.isExecuting || ko.observable(false)) && (
|
||||||
{useObservable(tab?.isExecuting || ko.observable(false)) && (
|
<img className="loadingIcon" title="Loading" src={loadingIcon} alt="Loading" />
|
||||||
<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>
|
</span>
|
||||||
</a>
|
<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>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user