coleam00 / bolt.new-any-llm

Prompt, run, edit, and deploy full-stack web applications using any LLM you want!
https://bolt.new
MIT License
3.89k stars 1.6k forks source link

feat: add custom unique filename when download as zip #312

Open lassecapel opened 4 days ago

lassecapel commented 4 days ago

Description

This pull request introduces a new functionality that enhances the user experience when downloading ZIP files. When a user clicks the "Download ZIP" button, a prompt is displayed to allow the user to edit the filename before proceeding with the download. By default, the filename is pre-filled with a unique project name that includes a hash, ensuring uniqueness.

Key Features

Pre-filled Default Filename:

afbeelding

wonderwhy-er commented 2 days ago

I am not sure I like that prompt part, person can rename later, I don't want to confirm saving file each time.

lassecapel commented 2 days ago

@wonderwhy-er I'm happy to adjust the functionality to always have a more descriptive filename without a prompt if that fits better within the application.

Edit: updated the code to always use the project description as filename with a unique hash attached

wonderwhy-er commented 2 days ago

Tested, looks and works good