Skip to content

Conversation

@bencodeorg
Copy link
Contributor

@bencodeorg bencodeorg commented Feb 6, 2026

In preparation for turning on Sketch Lab S3 image storage everywhere, this PR adds a flag to successful uploads (uploaded).

To take the save to S3 feature out of experiment, we need to delete the base64 encoding of the image every time we save sources (which is scary!). I only want to do this for images that we are sure have been uploaded successfully, so we can use this flag to only delete the base64 encoding if we have a successful upload to S3.

Testing story

I tested manually that the uploaded boolean was successfully set and stored to sources when an image is uploaded successfully.

};

export type SketchlabProjectFile = Pick<ProjectFile, 'id' | 'url'> & {
uploadFailed?: boolean;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

uploadFailed was something I added a while ago and is no longer being set or used.

@bencodeorg bencodeorg requested a review from a team February 6, 2026 17:31
@bencodeorg bencodeorg merged commit c5e054e into staging Feb 6, 2026
5 checks passed
@bencodeorg bencodeorg deleted the ben/mark-files-on-successful-upload branch February 6, 2026 20:05
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