The GitHub Actions job "Required Checks" on texera.git/main has failed.
Run started by GitHub user github-merge-queue[bot] (triggered by 
github-merge-queue[bot]).

Head commit for run:
99c5ba3a25e04fe77472fa8a82fca365fc0f723d / Xinyuan Lin <[email protected]>
refactor(frontend): share resource creation forms (#9376)

### What changes were proposed in this PR?
Dataset and Model creation repeat the same form markup and styling. Both
creators now render a new `texera-resource-creator-form` component,
which holds the Formly fields, the visibility and downloadability
switches, and the Create and Cancel buttons. Each creator passes in its
form, model and flags and handles the component's events. The component
and the contributor editor share one Sass mixin for the form width and
the button styles, removing 67 net lines.

The rendered controls behave as before, and the version creator still
hides the switches. The one visible change: the model creator's Create
button now hovers in the dataset creator's `#0062cc` instead of
`#0069d9`.

### Any related issues, documentation, discussions?
Closes #9374.

### How was this PR tested?
- The 37 existing creator and contributor-editor tests pass before and
after, with the same names in the same order. They drive the new
component through each creator's rendered buttons and switches,
including the version mode without switches.
- Compiled each stylesheet with Sass and compared it with main: the
contributor editor's CSS is identical, the dataset creator's matches the
new component's apart from the two renamed classes, and the model
creator's differs only in that hover color.
- Full frontend formatting/lint and the application AOT build pass.

```sh
cd frontend
node --max-old-space-size=8192 node_modules/@angular/cli/bin/ng.js test gui 
--watch=false --progress=false \
  --include 
src/app/dashboard/component/user/user-dataset/user-dataset-explorer/user-dataset-version-creator/user-dataset-version-creator.component.spec.ts
 \
  --include 
src/app/dashboard/component/user/user-model/user-model-creator/user-model-creator.component.spec.ts
 \
  --include 
src/app/dashboard/component/user/user-dataset/user-dataset-explorer/user-dataset-contributor-editor/user-dataset-contributor-editor.component.spec.ts
node .yarn/releases/yarn-4.14.1.cjs run format:ci
node --max-old-space-size=8192 node_modules/@angular/cli/bin/ng.js build gui 
--aot=true --progress=false
```

### Was this PR authored or co-authored using generative AI tooling?
Generated-by: Codex (GPT-6) and Claude Code (Claude Opus 5.5)

Report URL: https://github.com/apache/texera/actions/runs/42746954233

With regards,
GitHub Actions via GitBox

Reply via email to