kz930 opened a new pull request, #8350:
URL: https://github.com/apache/texera/pull/8350

   ### What changes were proposed in this PR?
   
   A button on the workflow toolbar asks the compiling service to translate the 
canvas into a Python script and shows what comes back, with a copy control so 
the script can be taken somewhere that runs it.
   
   The translation is a round trip, so the button disables itself while one is 
in flight. A workflow the translator cannot express comes back with a reason 
rather than an empty modal, and that reason is what the notification says.
   
   The route is added in the two places a browser reaches the compiling service 
from: the dev server's proxy and the single-node nginx. Without them the button 
reaches nothing.
   
   ### Any related issues, documentation, discussions?
   
   Part of #8325. The endpoint this calls, `GET /workflow-to-python`, is added 
in #8327, so this needs that one first.
   
   ### How was this PR tested?
   
   `menu.component.spec.ts` covers the three ways the click can end: the script 
comes back and opens in the modal, the translation refuses and its reason is 
reported instead, and the copy control puts the script on the clipboard. 104 
tests in the file, all passing.
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (Opus 5)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to