UI: remove references to comma separation for string array edit types (#20163)

* remove intercepting helpText

* add subtext directly to StringList input component

* update tests and add coverage for new openapi-attrs util

* update test

* add warning validation to input

* lol is this right i dont know go

* literally no idea what im doing

* add Description to display attrs struct

* update struct comment

* add descriptions to remaining go fields

* add missing comma

* remaining commas..."

* add description to display attrs

* update tests

* update tests

* add changelog;

* Update ui/app/utils/openapi-to-attrs.js

* update tests following backend changes

* clearly name variable

* format files

* no longer need to test for modified tooltip since coming from backend now
This commit is contained in:
claire bontempo
2023-04-19 09:16:30 -07:00
committed by GitHub
parent fae1bffd1c
commit 9afac14f08
27 changed files with 183 additions and 102 deletions

View File

@@ -59,7 +59,7 @@ export default class PkiCertificateBaseModel extends Model {
@attr('string', {
label: 'Subject Alternative Names (SANs)',
subText:
'The requested Subject Alternative Names; if email protection is enabled for the role, this may contain email addresses. Add one per row.',
'The requested Subject Alternative Names; if email protection is enabled for the role, this may contain email addresses.',
editType: 'stringArray',
})
altNames;
@@ -67,20 +67,18 @@ export default class PkiCertificateBaseModel extends Model {
// SANs below are editType: stringArray from openApi
@attr('string', {
label: 'IP Subject Alternative Names (IP SANs)',
subText: 'Only valid if the role allows IP SANs (which is the default). Add one per row.',
subText: 'Only valid if the role allows IP SANs (which is the default).',
})
ipSans;
@attr('string', {
label: 'URI Subject Alternative Names (URI SANs)',
subText:
'If any requested URIs do not match role policy, the entire request will be denied. Add one per row.',
subText: 'If any requested URIs do not match role policy, the entire request will be denied.',
})
uriSans;
@attr('string', {
subText:
'Requested other SANs with the format <oid>;UTF8:<utf8 string value> for each entry. Add one per row.',
subText: 'Requested other SANs with the format <oid>;UTF8:<utf8 string value> for each entry.',
})
otherSans;