mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Add aria lables to pod drop down and tables of PG resources (#16229)
* Add aria labels to pod drop down on resource health and tables on overview * Added roles * Fix strings * Added role to table headers * Added heading levels
This commit is contained in:
@@ -73,6 +73,7 @@ export const grafanaDashboard = localize('arc.grafanaDashboard', "Grafana Dashbo
|
|||||||
export const kibanaDashboardDescription = localize('arc.kibanaDashboardDescription', "Dashboard for viewing logs");
|
export const kibanaDashboardDescription = localize('arc.kibanaDashboardDescription', "Dashboard for viewing logs");
|
||||||
export const grafanaDashboardDescription = localize('arc.grafanaDashboardDescription', "Dashboard for viewing metrics");
|
export const grafanaDashboardDescription = localize('arc.grafanaDashboardDescription', "Dashboard for viewing metrics");
|
||||||
export const serviceEndpoints = localize('arc.serviceEndpoints', "Service endpoints");
|
export const serviceEndpoints = localize('arc.serviceEndpoints', "Service endpoints");
|
||||||
|
export const serviceEndpointsTable = localize('arc.serviceEndpointsTable', "Service endpoints table");
|
||||||
export const databases = localize('arc.databases', "Databases");
|
export const databases = localize('arc.databases', "Databases");
|
||||||
export const endpoint = localize('arc.endpoint', "Endpoint");
|
export const endpoint = localize('arc.endpoint', "Endpoint");
|
||||||
export const description = localize('arc.description', "Description");
|
export const description = localize('arc.description', "Description");
|
||||||
@@ -207,6 +208,8 @@ export const noWorkerPods = localize('arc.noWorkerPods', "No worker pods in this
|
|||||||
export const podsReady = localize('arc.podsReady', "pods ready");
|
export const podsReady = localize('arc.podsReady', "pods ready");
|
||||||
export const podsPresent = localize('arc.podsPresent', "Pods Present");
|
export const podsPresent = localize('arc.podsPresent', "Pods Present");
|
||||||
export const podsUsedDescription = localize('arc.podsUsedDescription', "Select a pod in the dropdown below for detailed health information.");
|
export const podsUsedDescription = localize('arc.podsUsedDescription', "Select a pod in the dropdown below for detailed health information.");
|
||||||
|
export const podsUsedDescriptionAria = localize('arc.podsUsedDescriptionAria', "Select a pod in the dropdown below for detailed health information");
|
||||||
|
export const podConditionsTable = localize('arc.podConditionsTable', "Pod conditions table");
|
||||||
export const connectToPostgresDescription = localize('arc.connectToPostgresDescription', "A connection to the server is required to show and set database engine settings, which will require the PostgreSQL Extension to be installed.");
|
export const connectToPostgresDescription = localize('arc.connectToPostgresDescription', "A connection to the server is required to show and set database engine settings, which will require the PostgreSQL Extension to be installed.");
|
||||||
export const postgresExtension = localize('arc.postgresExtension', "microsoft.azuredatastudio-postgresql");
|
export const postgresExtension = localize('arc.postgresExtension', "microsoft.azuredatastudio-postgresql");
|
||||||
export const podInitialized = localize('arc.podInitialized', "Pod is initialized.");
|
export const podInitialized = localize('arc.podInitialized', "Pod is initialized.");
|
||||||
|
|||||||
@@ -81,7 +81,8 @@ export class PostgresOverviewPage extends DashboardPage {
|
|||||||
const titleCSS = { ...cssStyles.title, 'margin-block-start': '2em', 'margin-block-end': '0' };
|
const titleCSS = { ...cssStyles.title, 'margin-block-start': '2em', 'margin-block-end': '0' };
|
||||||
content.addItem(this.modelView.modelBuilder.text().withProps({
|
content.addItem(this.modelView.modelBuilder.text().withProps({
|
||||||
value: loc.serviceEndpoints,
|
value: loc.serviceEndpoints,
|
||||||
CSSStyles: titleCSS
|
CSSStyles: titleCSS,
|
||||||
|
headingLevel: 1
|
||||||
}).component());
|
}).component());
|
||||||
|
|
||||||
this.kibanaLink = this.modelView.modelBuilder.hyperlink().component();
|
this.kibanaLink = this.modelView.modelBuilder.hyperlink().component();
|
||||||
@@ -107,6 +108,7 @@ export class PostgresOverviewPage extends DashboardPage {
|
|||||||
|
|
||||||
const endpointsTable = this.modelView.modelBuilder.declarativeTable().withProps({
|
const endpointsTable = this.modelView.modelBuilder.declarativeTable().withProps({
|
||||||
width: '100%',
|
width: '100%',
|
||||||
|
ariaLabel: loc.serviceEndpoints,
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
displayName: loc.name,
|
displayName: loc.name,
|
||||||
@@ -148,13 +150,15 @@ export class PostgresOverviewPage extends DashboardPage {
|
|||||||
// Server Group Nodes
|
// Server Group Nodes
|
||||||
content.addItem(this.modelView.modelBuilder.text().withProps({
|
content.addItem(this.modelView.modelBuilder.text().withProps({
|
||||||
value: loc.serverGroupNodes,
|
value: loc.serverGroupNodes,
|
||||||
CSSStyles: titleCSS
|
CSSStyles: titleCSS,
|
||||||
|
headingLevel: 1
|
||||||
}).component());
|
}).component());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.podStatusTable = this.modelView.modelBuilder.declarativeTable().withProps({
|
this.podStatusTable = this.modelView.modelBuilder.declarativeTable().withProps({
|
||||||
width: '100%',
|
width: '100%',
|
||||||
|
ariaLabel: loc.serverGroupNodes,
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
displayName: loc.name,
|
displayName: loc.name,
|
||||||
|
|||||||
@@ -90,6 +90,7 @@ export class PostgresResourceHealthPage extends DashboardPage {
|
|||||||
this.podConditionsContainer = this.modelView.modelBuilder.divContainer().component();
|
this.podConditionsContainer = this.modelView.modelBuilder.divContainer().component();
|
||||||
this.podConditionsTable = this.modelView.modelBuilder.declarativeTable().withProps({
|
this.podConditionsTable = this.modelView.modelBuilder.declarativeTable().withProps({
|
||||||
width: '100%',
|
width: '100%',
|
||||||
|
ariaLabel: loc.podConditionsTable,
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
displayName: loc.condition,
|
displayName: loc.condition,
|
||||||
@@ -122,7 +123,10 @@ export class PostgresResourceHealthPage extends DashboardPage {
|
|||||||
dataValues: this.createPodConditionsDataValues(this.coordinatorData)
|
dataValues: this.createPodConditionsDataValues(this.coordinatorData)
|
||||||
}).component();
|
}).component();
|
||||||
|
|
||||||
this.podDropDown = this.modelView.modelBuilder.dropDown().withProps({ width: '150px' }).component();
|
this.podDropDown = this.modelView.modelBuilder.dropDown().withProps({
|
||||||
|
width: '150px',
|
||||||
|
ariaLabel: loc.podsUsedDescriptionAria
|
||||||
|
}).component();
|
||||||
this.disposables.push(
|
this.disposables.push(
|
||||||
this.podDropDown.onValueChanged(() => {
|
this.podDropDown.onValueChanged(() => {
|
||||||
this.podConditionsTable.setFilter(this.podConditionsTableIndexes.get(String(this.podDropDown.value)));
|
this.podConditionsTable.setFilter(this.podConditionsTableIndexes.get(String(this.podDropDown.value)));
|
||||||
|
|||||||
Reference in New Issue
Block a user