Skip to content

Commit

Permalink
NAS-129824: Global Search | Accessibility Improvements (#10273)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKarpov98 authored Jul 3, 2024
1 parent 6c304de commit 68f82fc
Show file tree
Hide file tree
Showing 119 changed files with 157 additions and 116 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h2 class="section">
[attr.tabindex]="result.section === GlobalSearchSection.RecentSearches ? i + 1 : 0"
[class.highlighted-result]="isSearchInputFocused && isSameHierarchyResult(firstAvailableSearchResult, result)"
[ixTest]="['search-result', result.hierarchy.join('-')]"
[attr.aria-label]="result.hierarchy[result.hierarchy.length - 1]"
[attr.aria-label]="'UI Search Result: {result}' | translate: { result: result.hierarchy.join(' ') }"
(click)="selectElement(result)"
(keydown.enter)="selectElement(result)"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export const groupListElements = {
synonyms: [T('Local Groups')],
},
add: {
hierarchy: [T('Add')],
synonyms: [T('Add Group'), T('New Group'), T('Create Group'), T('Group'), T('Add Local Group')],
hierarchy: [T('Add Group')],
synonyms: [T('New Group'), T('Create Group'), T('Group'), T('Add Local Group')],
anchor: 'add-group',
},
showBuiltIn: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const privilegesListElements = {
elements: {
list: {},
add: {
hierarchy: [T('Add')],
hierarchy: [T('Add Privilege')],
synonyms: [T('Add Privilege'), T('New Privilege'), T('Create Privilege'), T('Privilege')],
anchor: 'add-privilege',
},
Expand Down
4 changes: 2 additions & 2 deletions src/app/pages/account/users/user-list/user-list.elements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export const userListElements = {
],
},
add: {
hierarchy: [T('Add')],
synonyms: [T('Add User'), T('New User'), T('Create User'), T('User'), T('Add Local User')],
hierarchy: [T('Add User')],
synonyms: [T('New User'), T('Create User'), T('User'), T('Add Local User')],
anchor: 'add-user',
},
showBuiltIn: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ export const cloudCredentialsCardElements = {
anchor: 'cloud-credentials',
},
add: {
hierarchy: [T('Add')],
hierarchy: [T('Add Cloud Credential')],
synonyms: [
T('Add Credential'),
T('Add Cloud Credential'),
T('Add Backup Credential'),
T('New Credential'),
T('New Could Credential'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export const sshConnectionsCardElements = {
anchor: 'ssh-connections',
},
add: {
hierarchy: [T('Add')],
synonyms: [T('Add SSH Connection'), T('New SSH Connection'), T('Create SSH Connection'), T('SSH Connection')],
hierarchy: [T('Add SSH Connection')],
synonyms: [T('New SSH Connection'), T('Create SSH Connection'), T('SSH Connection')],
anchor: 'add-ssh-connection',
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ export const sshKeypairsCardElements = {
anchor: 'ssh-keypairs',
},
add: {
hierarchy: [T('Add')],
hierarchy: [T('Add SSH Keypair')],
synonyms: [
T('Add SSH Keypair'),
T('New SSH Keypair'),
T('Create SSH Keypair'),
T('SSH Keypair'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ export const acmeDnsAuthenticatorListElements = {
anchor: 'acme-dns-authenticator-list',
},
add: {
hierarchy: [T('Add')],
hierarchy: [T('Add ACME DNS-Authenticator')],
synonyms: [
T('Add ACME DNS-Authenticator'),
T('New ACME DNS-Authenticator'),
T('Create ACME DNS-Authenticator'),
T('ACME DNS-Authenticator'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ export const certificateAuthorityListElements = {
anchor: 'certificate-authority-list',
},
add: {
hierarchy: [T('Add')],
hierarchy: [T('Add Certificate Authority')],
synonyms: [
T('Add Certificate Authority'),
T('New Certificate Authority'),
T('Create Certificate Authority'),
T('Certificate Authority'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ export const certificateListElements = {
anchorRouterLink: ['/credentials', 'certificates'],
elements: {
add: {
hierarchy: [T('Add')],
hierarchy: [T('Add Certificate')],
anchor: 'add-certificate',
synonyms: [
T('Create Certificate'),
T('New Certificate'),
T('Add Certificate'),
T('Generate Certificate'),
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ export const csrListElements = {
synonyms: [T('CSRs')],
},
add: {
hierarchy: [T('Add')],
hierarchy: [T('Add CSR')],
anchor: 'add-csr',
synonyms: [
T('Create CSR'),
T('New CSR'),
T('Add CSR'),
T('Generate CSR'),
T('Create Certificate Signing Requests'),
T('New Certificate Signing Requests'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ export const cloudBackupListElements = {
synonyms: [T('Data Protection'), T('Tasks'), T('Cloud Backup')],
},
add: {
hierarchy: [T('Add')],
hierarchy: [T('Add TrueCloud Backup Task')],
anchor: 'add-cloud-backup',
synonyms: [
T('Add TrueCloud Backup Task'),
T('Add Cloud Backup'),
T('Create TrueCloud Backup Task'),
T('Create Cloud Backup'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ export const cloudSyncListElements = {
],
},
add: {
hierarchy: [T('Add')],
hierarchy: [T('Add Cloud Sync Task')],
synonyms: [
T('Add Cloud Sync Task'),
T('Create Cloud Sync Task'),
T('New Cloud Sync Task'),
T('Task'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ export const replicationListElements = {
synonyms: [T('Data Protection'), T('Tasks')],
},
add: {
hierarchy: [T('Add')],
hierarchy: [T('Add Replication Task')],
synonyms: [
T('Add Replication Task'),
T('Create Replication Task'),
T('New Replication Task'),
T('Task'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ export const rsyncTaskListElements = {
synonyms: [T('Data Protection'), T('Tasks')],
},
add: {
hierarchy: [T('Add')],
hierarchy: [T('Add Rsync Task')],
synonyms: [
T('Add Rsync Task'),
T('Create Rsync Task'),
T('New Rsync Task'),
T('Task'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ export const scrubListElements = {
synonyms: [T('Data Protection'), T('Tasks')],
},
add: {
hierarchy: [T('Add')],
hierarchy: [T('Add Scrub Task')],
synonyms: [
T('Add Scrub Task'),
T('Create Scrub Task'),
T('New Scrub Task'),
T('Task'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const smartTaskListElements = {
],
},
add: {
hierarchy: [T('Add')],
hierarchy: [T('Add S.M.A.R.T. Test')],
anchor: 'add-smart-test',
synonyms: [
T('Add Periodic S.M.A.R.T. Test'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@ export const snapshotTaskListElements = {
synonyms: [T('Data Protection'), T('Tasks')],
},
add: {
hierarchy: [T('Add')],
hierarchy: [T('Add Snapshot Task')],
anchor: 'add-snapshot-task',
synonyms: [
T('Add Periodic Snapshot Task'),
T('Create Periodic Snapshot Task'),
T('New Periodic Snapshot Task'),
T('Add Snapshot Task'),
T('Create Snapshot Task'),
T('New Snapshot Task'),
T('Snapshot'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ export const idMapElements = {
elements: {
idMap: {},
add: {
hierarchy: [T('Add')],
hierarchy: [T('Add Idmap')],
anchor: 'add-idmap',
synonyms: [
T('Add Idmap'),
T('Create Idmap'),
T('New Idmap'),
T('Idmap'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ export const kerberosKeytabsListElements = {
elements: {
kerberosKeytabs: {},
add: {
hierarchy: [T('Add')],
hierarchy: [T('Add Kerberos Keytab')],
anchor: 'add-kerberos-keytab',
synonyms: [
T('Add Kerberos Keytab'),
T('Create Kerberos Keytab'),
T('New Kerberos Keytab'),
T('Kerberos Keytab'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ export const kerberosRealmsListElements = {
elements: {
kerberosRealms: {},
add: {
hierarchy: [T('Add')],
hierarchy: [T('Add Kerberos Realm')],
anchor: 'add-kerberos-realm',
synonyms: [
T('Add Kerberos Realm'),
T('Create Kerberos Realm'),
T('New Kerberos Realm'),
T('Kerberos Realm'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ export const staticRoutesCardElements = {
synonyms: [T('Routing'), T('Static Routing')],
},
add: {
hierarchy: [T('Static Routes'), T('Add')],
synonyms: [T('Add Static Route'), T('Create Static Route'), T('New Static Route')],
hierarchy: [T('Static Routes'), T('Add Static Route')],
synonyms: [
T('Create Static Route'),
T('New Static Route'),
],
anchor: 'add-static-route',
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ export const reportingExportersElements = {
elements: {
exporters: {},
add: {
hierarchy: [T('Add')],
hierarchy: [T('Add Reporting Exporter')],
anchor: 'add-reporting-exporter',
synonyms: [
T('Add Exporter'),
T('New Exporter'),
T('Create Exporter'),
T('Exporter'),
T('Add Reporting Exporter'),
T('New Reporting Exporter'),
T('Create Reporting Exporter'),
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ export const cronCardElements = {
anchorRouterLink: ['/system', 'advanced'],
elements: {
addCronJob: {
hierarchy: [T('Add')],
hierarchy: [T('Add Cron Job')],
anchor: 'add-cron-job',
synonyms: [
T('Add Cron Job'),
T('Create Cron Job'),
T('New Cron Job'),
T('Setup Cron Job'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ export const initShutdownCardElements = {
anchorRouterLink: ['/system', 'advanced'],
elements: {
addInitShutdownScript: {
hierarchy: [T('Add')],
hierarchy: [T('Add Init/Shutdown Script')],
anchor: 'add-init-shutdown-script',
synonyms: [
T('Add Init/Shutdown Script'),
T('Create Init/Shutdown Script'),
T('New Init/Shutdown Script'),
T('Init/Shutdown Script'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ export const sysctlCardElements = {
anchor: 'sysctl',
},
addSysctl: {
hierarchy: [T('Add')],
hierarchy: [T('Add Sysctl')],
anchor: 'add-sysctl',
synonyms: [
T('Add Sysctl'),
T('Create Sysctl'),
T('New Sysctl'),
T('Sysctl'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ export const alertServiceListElements = {
elements: {
alertServiceList: {},
add: {
hierarchy: [T('Add')],
hierarchy: [T('Add Alert')],
anchor: 'add-alert-service',
synonyms: [
T('Alerts'),
T('Configure Alerts'),
T('Create Alert'),
T('Add Alert'),
T('New Alert'),
T('Notifications'),
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export const emailCardElements = {
anchor: 'email-card',
},
settings: {
hierarchy: [T('Configure')],
synonyms: [T('Send Test Email'), T('Config Email'), T('Set email'), T('Configure Email')],
hierarchy: [T('Configure Email')],
synonyms: [T('Send Test Email'), T('Config Email'), T('Set email')],
},
sendMethod: {
hierarchy: [T('Send Method')],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ export const ntpServerElements = {
anchor: 'ntp-card',
},
addNtpServer: {
hierarchy: [T('Add')],
hierarchy: [T('Add NTP Server')],
anchor: 'add-ntp-server',
synonyms: [
T('Add NTP Server'),
T('Create NTP Server'),
T('New NTP Server'),
T('NTP Server'),
Expand Down
3 changes: 1 addition & 2 deletions src/app/pages/vm/vm-list/vm-list.elements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ export const vmListElements = {
synonyms: [T('VM'), T('Virtualization')],
},
add: {
hierarchy: [T('Add')],
hierarchy: [T('Add VM')],
anchor: 'add-vm',
synonyms: [
T('Add VM'),
T('Create VM'),
T('New VM'),
T('VM'),
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/af.json
Original file line number Diff line number Diff line change
Expand Up @@ -4463,6 +4463,7 @@
"Type of Microsoft acount. Logging in to a Microsoft account automatically chooses the correct account type.": "",
"UDP port number on the system receiving SNMP trap notifications. The default is <i>162</i>.": "",
"UI": "",
"UI Search Result: {result}": "",
"UID": "",
"UNASSIGNED": "",
"UNIX (NFS) Shares": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -4463,6 +4463,7 @@
"Type of Microsoft acount. Logging in to a Microsoft account automatically chooses the correct account type.": "",
"UDP port number on the system receiving SNMP trap notifications. The default is <i>162</i>.": "",
"UI": "",
"UI Search Result: {result}": "",
"UID": "",
"UNASSIGNED": "",
"UNIX (NFS) Shares": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/ast.json
Original file line number Diff line number Diff line change
Expand Up @@ -4463,6 +4463,7 @@
"Type of Microsoft acount. Logging in to a Microsoft account automatically chooses the correct account type.": "",
"UDP port number on the system receiving SNMP trap notifications. The default is <i>162</i>.": "",
"UI": "",
"UI Search Result: {result}": "",
"UID": "",
"UNASSIGNED": "",
"UNIX (NFS) Shares": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/az.json
Original file line number Diff line number Diff line change
Expand Up @@ -4463,6 +4463,7 @@
"Type of Microsoft acount. Logging in to a Microsoft account automatically chooses the correct account type.": "",
"UDP port number on the system receiving SNMP trap notifications. The default is <i>162</i>.": "",
"UI": "",
"UI Search Result: {result}": "",
"UID": "",
"UNASSIGNED": "",
"UNIX (NFS) Shares": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/be.json
Original file line number Diff line number Diff line change
Expand Up @@ -4463,6 +4463,7 @@
"Type of Microsoft acount. Logging in to a Microsoft account automatically chooses the correct account type.": "",
"UDP port number on the system receiving SNMP trap notifications. The default is <i>162</i>.": "",
"UI": "",
"UI Search Result: {result}": "",
"UID": "",
"UNASSIGNED": "",
"UNIX (NFS) Shares": "",
Expand Down
Loading

0 comments on commit 68f82fc

Please sign in to comment.