Skip to content

Conversation

glastonbridge
Copy link
Collaborator

@glastonbridge glastonbridge commented Sep 12, 2025

This is currently set up to open a shared project if the URL path

  • Does not match a predefined app path
  • Begins with an underscore

For instance, running on localhost, this link should load a project with some samples: http://localhost:5173/_fDpWJaY67cgR
https://review-createai.microbit.org/open-shared-makecode-project/_fDpWJaY67cgR

Once loaded, the UI shows you a preview.

image

Note that this differs slightly from the Miro board, as some of the design leans on styling from Microbit Classroom, e.g. this page.

If there is an error while trying to fetch the preview, you will see

image

TODO: needs an e2e test.

Copy link

github-actions bot commented Sep 12, 2025

@microbit-matt-hillsdon
Copy link

We need to think about the URL handling.

The key thing is that after the user has imported the project they no longer have the URL with the id in their history. So we need to do a replaceState-style URL update at some point. Otherwise you go back and start an import process again which isn't helpful.

@glastonbridge glastonbridge force-pushed the open-shared-makecode-project branch from 950e839 to dcca968 Compare September 23, 2025 14:34
element: <CodePage />,
},
{
path: createImportSharedURLPageUrl(),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We missed this rename. Needs to be createOpenSharedProjectPageUrl() now.

@@ -0,0 +1,51 @@
/**

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

e2e file names also need aligning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants