Skip to content

Conversation

@alan412
Copy link
Collaborator

@alan412 alan412 commented Jan 2, 2026

Fixes #362

This uses the already existing download/upload but adds a UI around it including name conflict resolution on upload.

Note that the automatic changing to the new project exposes a bug (fixed in #372) but that is not a bug in this PR.

After downloading and uploading the same, I went through the pr checklist and it all passes on my machine.
(I substituted the upload for the making a new project)

@alan412 alan412 requested a review from lizlooney January 2, 2026 14:00
items={menuItems}
onClick={handleClick}
/>
{showUploadAndDownload ? (
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove this old UI.

const [noProjects, setNoProjects] = React.useState<boolean>(false);
const [aboutDialogVisible, setAboutDialogVisible] = React.useState<boolean>(false);
const [themeModalOpen, setThemeModalOpen] = React.useState<boolean>(false);
const [showUploadAndDownload, _setShowUploadAndDownload] = React.useState(false);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove this old code.

}
};

// TODO: Add UI for the download action.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove the TODO comment.


// TODO: Add UI for the upload action.
/** Handles the upload action to upload a previously downloaded project. */
const handleUploadClick = (): void => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

We already have handleUpload (line 520). Can you update the existing handleUpload (if necessary) instead of adding this new function?

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.

Add download / upload of entire blocks project

2 participants