Use the url hash of the renderer to manage code objects visibility (Abandonned) #120
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
All this started with the issue #113, about helping users to find their code object among others in the programmer view.
In the process of introducing a "solo" mode we identified the need of an interface between the programmer view and the renderer.
This PR is about implementing this interface using the URL of the renderer:
Here are the supported options, as an example with a playground named pg:
https://paysage.xyz/playground/pg#only=myCodeId
to show only one code,https://paysage.xyz/playground/pg#
to show all codes,https://paysage.xyz/playground/pg#only=
to show none.This PR is also providing a mean to show a specific list of codeIds what is not be necessary for implementing the solo mode, but might be useful for more advanced behaviours:
https://paysage.xyz/playground/pg#only=codeId1,codeId2
This last point is open to comment (among any other review comments). Do we want to keep this ?