NPM installation: enable instance level switch
What does this MR do?
Related Issue:
Description:
On the package detail page of a npm package https://gitlab.com/<group>/<project>/-/packages/<packageId>
, there is a Registry setup step, of which this step is only applicable for instance-level endpoints
When using a project-level endpoint this is not always correct, and causes problems with authentication.
This change adds a radio button selector to allow you to switch between the setup steps for project-level and instance-level. Please see the screenshot below.
The npm registry docs have also been update to include this detail.
Risk:
Additional frontend test cases were added to cover the changes. The change itself has little risk as it mainly focuses on the presentation layer.
Screenshots (strongly suggested)
Before | After |
---|---|
Video:
Does this MR meet the acceptance criteria?
Conformity
-
have included changelog trailers, or none are needed. (Does this MR need a changelog?) -
I have added/updated documentation, or it's not needed. (Is documentation required?) -
I have self-reviewed this MR per code review guidelines. -
This MR does not harm performance, or I have asked a reviewer to help assess the performance impact. (Merge request performance guidelines) -
I have followed the style guides. -
This change is backwards compatible across updates, or this does not apply.
Availability and Testing
-
I have added/updated tests following the Testing Guide, or it's not needed. (Consider all test levels. See the Test Planning Process.) -
I have tested this MR in all supported browsers, or it's not needed.
Edited by Nicolò Maria Mezzopera