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

   ### What changes were proposed in this PR?
   
   Closes #8023. Part of the Form View stack (parent issue #8011), stacked on 
#8438 (PR11) and #8437 (PR10).
   
   The Form View can now render inputs and write them back. This PR makes it 
usable end to end: it runs the workflow, and shows the author's instruction 
above the inputs.
   
   - **Run.** A Run button that shares the operator canvas's disable conditions 
(an invalid or empty workflow, a unit still connecting, or no unit chosen each 
disable it and say why), but deliberately simplifies the execution states a 
reader needs down to Run and Stop, with no pause/resume. The unit is chosen in 
the embedded computing-unit selector. Running is the same execution call the 
canvas makes, so empty or invalid inputs surface as a real engine error rather 
than a client-side gate; a run clock counts off the engine's own event, and a 
failed run collapses an opaque trace to one plain sentence (a required input 
left empty reads as "please fill in the required fields").
   - **Instruction.** The author's optional instruction renders above the 
inputs as a collapsible, read-only markdown card, shown only when there is 
text. It is bound through `[innerHTML]` with Angular's default sanitizer, so 
author markdown cannot inject script. Editing it is part of the authoring PR.
   
   Showing the chosen results is the next PR (#8024).
   
   ### Any related issues, documentation, discussions?
   
   Closes #8023. Part of the Form View feature (parent issue #8011).
   
   ### How was this PR tested?
   
   Unit tests (vitest). Direct-construction tests cover every run-button 
precedence branch, `onRun` (kill while running, no-op when disabled, else 
execute and clear the error), the five failed-run message paths, the run clock 
and its tick, and the status/validation/connection subscriptions; the 
instruction is covered for the markdown render, `hasInstruction`, and the 
toggle. TestBed template tests stand up the instruction card, the run bar, and 
the run-button click binding. 100% statement and function coverage on the 
changed source (the remaining uncovered branches are the pre-existing defensive 
`??`/`||` fallbacks). `ng test` (99 tests), `ng build gui`, eslint and prettier 
all pass, in both the single-user and collaboration paths.
   
   #### Screenshot
   
   The run bar (Run button + computing-unit selector + clock) and the author's 
instruction card above the inputs.
   
   <!-- paste the screenshot below this line -->
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Yes. Co-authored with Claude (Anthropic), reviewed line by line by the 
author before submission.
   


-- 
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