Add panel to preview panel page
What does this MR do?
This feature is behind a feature flag:metrics_dashboard_new_panel_page
See: &2882
Part of #228761 (closed) This MR adds the first iteration of panel builder component. This MR depends on !37563 (merged)
This change adds a new panel builder component that will show a panel in the future, this panel builder is connected to the URL query parameters and calls a stubbed endpoint that does not work yet.
Features:
- Copy panel
- Stores the yml in the URL
Next step:
- Integrate with backend endpoint !37930 (merged)
- Add other components to the page
Screenshots
Updated version (with improved margins and font sizes):
UX behaviors:
before | after: initial view | after: clicking on review panel | after: copy panel feature |
---|---|---|---|
Does this MR meet the acceptance criteria?
Conformity
- [-] Changelog entry
- [-] Documentation (if required)
-
Code review guidelines -
Merge request performance guidelines -
Style guides - [-] Database guides
- [-] Separation of EE specific content
Availability and Testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process. -
Tested in all supported browsers -
Informed Infrastructure department of a default or new setting change, if applicable per definition of done
Security
If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:
-
Label as security and @ mention @gitlab-com/gl-security/appsec
-
The MR includes necessary changes to maintain consistency between UI, API, email, or other methods -
Security reports checked/validated by a reviewer from the AppSec team
Closes #228761 (closed)
Edited by Miguel Rincon