texera
texera copied to clipboard
Enable taking snapshot of the workflow editor
This PR enables the feature that could take a snapshot of the workflow editor and present the snapshots on the user dashboard. Taking the snapshot will be triggered in the following three cases:
-
Any changes made to the editor. It might take a few seconds to successfully take a snapshot. But I think once this issue https://github.com/Texera/texera/issues/1364 is solved, the efficiency will be improved. (Currently, two requests would be sent for each update.)
-
Workflow Name is changed (when the change is made by the top left corner input box)
-
The save button is clicked.
The snapshot will cut the left and right widths by twenty percent and cut the top and bottom heights by fifteen percent. The red square area is the approximate snapshot area.

Group discussion 1/11: @Yicong-Huang will merge this PR soon
Discussion 2022.05.12: @Yicong-Huang will merge it.
@Yicong-Huang the team is wondering when will this PR be merged?
closed for now as the functionality is very time-consuming (see PR #1634 and #1695). Will look for alternatives in the future.