Handle when user cannot push code
Description
This MR handles the case where the user cannot push code to the Web IDE repository, so it needs to open in a read-only view and show a warning to the user.
Screenshots
User has fork | User does not have fork, but can fork | User cannot fork |
---|---|---|
How to test?
In the example app (by running yarn start:example
):
- Enter Type:
Client only
, GitLab URL:https://gitlab.com
, Project Path:inkscape/inkscape
(or any other project you don't have write access to) - Notice the warning message when it starts
- To simulate what would happen if the User already has a fork, revisit the example app URL and add
?forkInfo.ide_path=idepath
as a query parameter. - To simulate what would happen if the User does not have a fork, but can fork, revisit the example app URL and add
?forkInfo.fork_path=forkpath
as a query parameter.
References
Edited by Paul Slaughter