Irev-Dev / cadhub

We're out to raise awareness and put CodeCAD on the map. The success of CadHub can be measured by the amount it promotes the use of CodeCAD within the mechanical/manufacturing industry and the strength the CadHub community.
https://cadhub.xyz
GNU General Public License v3.0
319 stars 60 forks source link

"Download STL" should use project title. #568

Closed Irev-Dev closed 2 years ago

Irev-Dev commented 3 years ago

When Downloading the STL image We try and pull a title from the first comment in the script for the saved file name, this dates back to when did didn't have saved projects, it would be good to use the project title instead.

Changes need to be made in app/web/src/components/EditorMenu/menuConfig.tsx

You should be able to get access to the current project and therefore title with const { project } = useIdeContext(), search for useIdeContext to see where it's imported from.

Make sure the string has .stl suffix on it too!

Follow the instructions in CONTRIBUTING.md to get setup, and of course ask for help here or in the dev-help discord channel.

If you'd like to contribute the CadHub but this issue is taken or you'd prefer something else, have a look at #535 to see if there's something else you would like

Irev-Dev commented 3 years ago

CC @koodistrom

koodistrom commented 3 years ago

Comment for assigning the issue to me 😎

Irev-Dev commented 2 years ago

Resolved by #570