Importing tutorial URLs via import button throws error
Description
When attempting to paste a tutorial URL using the import button in MakeCode, the system throws an error indicating that the project URL is invalid. This issue impacts users who wish to access tutorials on mobile devices, as the current process is cumbersome without direct URL support.
Steps to Reproduce
- Open MakeCode on a mobile device or desktop.
- Click on the import button.
- Paste a valid tutorial URL into the import field.
- Attempt to open the URL.
Expected Behavior
The tutorial should be successfully loaded and accessible through the import button, similar to how project URLs are handled.
Actual Behavior
An error message is displayed stating that the project URL is invalid, and the tutorial does not open.
Is there an other way to open the tutorial within MakeCode?
Impact
This issue affects mobile users who rely on URLs to access tutorials, making the process unnecessarily complicated and less user-friendly.
@joernalraun can users directly go to the tutorial URL? What is the scenario they have to import the tutorial?
@abchatra sorry, for not mentioning the use case. This is a frequent scenario: You have set up a tutorial and want to share it to students within the iOS app, right now the link will open in the browser so you can't immediately flash the hex at the end of the tutorial.
This is likely pending to/fixed with issue #326, though from a user experience point I would also expect that the import button generally imports all MakeCode urls.
I see this is within the app.