-
Notifications
You must be signed in to change notification settings - Fork 10
Pr upload download #373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Pr upload download #373
Conversation
| items={menuItems} | ||
| onClick={handleClick} | ||
| /> | ||
| {showUploadAndDownload ? ( |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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 => { |
There was a problem hiding this comment.
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?
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)