TheSpaghettiDetective / obico-server

Obico is a community-built, open-source smart 3D printing platform used by makers, enthusiasts, and tinkerers around the world.
https://obico.io
GNU Affero General Public License v3.0
1.47k stars 297 forks source link

[Feature] Filemanager improvements - filename Title text on mouseover + Rename + Download #681

Open tyeth opened 2 years ago

tyeth commented 2 years ago

Hi, had a chat last year with Kenneth and mentioned that I use very long filenames with Obico on a laptop (uploading and sometimes starting), and via my phone (for starting of the prints). It doesn't work well with the UI on the main gcode page, but otherwise is okay.

I mostly think if you could add the filename as a TITLE attribute to the filename div, as well as leaving as text content / innerText, then mouseover would work for displaying the filenames. I can't remember if that works for touch too, maybe single or long press on the cell/div/text. image

I mentioned in our chat that it would be helpful to be able to rename files after the upload. This is for two reasons. I may upload a subsequent version and need to rename the older file to include the difference in parameters (eg _ly016 being 0.16mm layer height after uploading a new file at 0.2mm). I also have a filenaming plugin for cura (I use other slicers too) that creates names with most of the parameters, but the wrong prefix for two of my machines (snapmaker original) as they share their older brothers (Snapmaker 2.0 A350) machine profile. This mostly gets done on the laptop but occasionally after the fact, and sometimes I don't have the original file as I am on another laptop without my files. I can easily avoid renaming through the interface if I have access to or could download the original gcode file, then rename locally and upload again, deleting the old copy. A simple rename flow would refine this process and avoid the need to add download for the gcode files.

Adding download for the gcode files could be useful for all sorts of reasons 🤷

I'm imagining two more glyphs/icons next to delete/remove for Rename (pencil icon) and download (no suggestion for icon).

At the time of the chat I thought there may have been mention of things in the pipeline, but memory fails me so apologies for re-treading old ground.

kennethjiang commented 2 years ago

Thank you for opening this issue and providing all the details.

We have had a task on our roadmap to revamp how the G-Code and print history are handled to make it more intuitive. This task has been pushed out a few times to make room for other priorities. When we get around to it, we will be sure to take your input into considerations!