pxt icon indicating copy to clipboard operation
pxt copied to clipboard

Importing tutorial URLs via import button throws error

Open joernalraun opened this issue 6 months ago • 3 comments

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

  1. Open MakeCode on a mobile device or desktop.
  2. Click on the import button.
  3. Paste a valid tutorial URL into the import field.
  4. 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 avatar Jun 30 '25 13:06 joernalraun

@joernalraun can users directly go to the tutorial URL? What is the scenario they have to import the tutorial?

abchatra avatar Jul 02 '25 20:07 abchatra

@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.

joernalraun avatar Jul 02 '25 20:07 joernalraun

I see this is within the app.

abchatra avatar Jul 02 '25 20:07 abchatra