kibana/x-pack/plugins/features/server
Candace Park 28ba652c3d
[Security][Features] Adds subtext option to Kibana feature and sub-feature controls (#147709)
## Summary
- [x] Allow plugins to configure a description subtext underneath kibana
features
- [x] Allow plugins to configure a description subtext underneath kibana
subfeatures
- [x] Adjusts subfeature form UI so privilege buttons have fullwidth,
adjusts padding/margins
- [x] Adds unit tests

# Screen Shots
<img width="752" alt="image"
src="https://user-images.githubusercontent.com/56409205/211621510-83769516-4a04-4442-8d96-92f5b6708a45.png">


Privilege button group before

![image](https://user-images.githubusercontent.com/56409205/208610978-557d1881-f222-4a29-9ae3-d60baf34e1ac.png)

Privilege button group after
<img width="666" alt="image"
src="https://user-images.githubusercontent.com/56409205/211621622-36b7a388-f1f5-4cb4-810d-48adbf7f0155.png">


Example to test:
1. In `x-pack/plugins/security_solution/server/features.ts` before
`privilegeGroups` on line 254, add `description: 'some subfeature
description here'` and before `management` on line 551, add
`description: 'some feature description here'`.
3. Stack Management > Roles > edit Kibana Privileges > Security >
Security see descriptions show up underneath Security and underneath
Endpoint List sub feature
2023-01-17 15:25:19 -07:00
..
__snapshots__ [Files] Add default file kind (#144803) 2022-11-23 04:37:05 -07:00
feature_privilege_iterator [Cases][ResponseOps] Splitting out cases privileges (#134860) 2022-06-29 10:47:06 -04:00
routes Change ContextContainer to lazily initialize providers (#129896) 2022-04-22 13:15:58 +02:00
feature_registry.test.ts fix all violations 2022-04-16 01:37:30 -05:00
feature_registry.ts fix all violations 2022-04-16 01:37:30 -05:00
feature_schema.ts [Security][Features] Adds subtext option to Kibana feature and sub-feature controls (#147709) 2023-01-17 15:25:19 -07:00
index.ts fix all violations 2022-04-16 01:37:30 -05:00
mocks.ts Remove circular dependency between features and security (#100206) 2021-05-19 11:33:44 -04:00
oss_features.test.ts fix all violations 2022-04-16 01:37:30 -05:00
oss_features.ts [Files] Add default file kind (#144803) 2022-11-23 04:37:05 -07:00
plugin.test.ts [Files] Add default file kind (#144803) 2022-11-23 04:37:05 -07:00
plugin.ts fix all violations 2022-04-16 01:37:30 -05:00
types.ts Change ContextContainer to lazily initialize providers (#129896) 2022-04-22 13:15:58 +02:00
ui_capabilities_for_features.test.ts Elastic License 2.0 (#90099) 2021-02-03 18:12:39 -08:00
ui_capabilities_for_features.ts fix all violations 2022-04-16 01:37:30 -05:00