Corpus Management - v2 Empty state
What does this MR do and why?
Describe in detail what your merge request does and why.
This MR solves #347272 (closed)
- In order to make empty state for corpus management consistent with other empty states of security configuration, I have created empty state component according to required design.
- Previously adding new corpus via GlModal was a part of corpus-upload component and was used only in this component.
- New empty state has to provide a button allowing us to create new corpus as well.
- I have extracted add new corpus functionality to separate component and reused it in new empty state and old corpus- upload component via slots.
- Tests were added and updated accordingly.
- Backend was updated with extra property for new illustration
Screenshots or screen recordings
before |
---|
after |
---|
These are strongly recommended to assist reviewers and reduce the time to merge your change.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Go to any project /root/$PROJECT/
- Go to /root/$PROJECT/-/security/configuration
- Scroll to bottom and select Manage Corpuses.
- You will be at /root/$PROJECT/-/security/configuration/corpus_management.
- If you already have corpuses, you should delete all in order to see empty state
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #347272 (closed)
Edited by Artur Fedorov