aglinxinyuan opened a new pull request, #9522: URL: https://github.com/apache/texera/pull/9522
### What changes were proposed in this PR? Extracts shared templates, stylesheets, settings-tab structure, upload-tuning loaders, Formly field builders, and test fixtures across dataset and model management UI components with no user-facing behavior change: - **Detail page styles and Data/Model Card statistics (`FE-3`)**: consolidated duplicated detail/version-browser SCSS into `_resource-detail-shared.scss`, rendered Data Card and Model Card statistics rows via `overviewStatistics` (`@for`), and simplified `user-dataset-version-filetree.component.html` icon binding alongside a shared `createFiletreeFixture` helper. - **Detail Settings tab (`FE-3`)**: extracted the common General (rename + editable description) and Access & visibility cards into `ResourceDetailSettingsComponent` (`div[texeraResourceDetailSettings]`), projecting resource-specific sections (`Model type` between cards, `Delete` trailing), and shared `saveTextSetting` on `ModelDetailComponent`. - **Resource & contributor forms (`FE-454`)**: extracted `resourceNameAndDescriptionFields` and `contributorInput` builders for the dataset/model creator modals and contributor editor, plus a shared `createFormlyModalFixture` helper across their specs. - **Version uploader (`FE-346`)**: drove `loadUploadSettings` with a endpoint-key-to-field table and consolidated `stageFile`/`mount`/`expectAbortRequest`/`abortInFlight` helpers in `version-uploader.component.spec.ts`. ### Any related issues, documentation, discussions? Closes #9520. ### How was this PR tested? Ran in `frontend/` on `63e9447924` (after final edits): - `yarn format:ci` — passed - `yarn tsc --noEmit -p src/tsconfig.app.json` — passed - `yarn tsc --noEmit -p src/tsconfig.spec.json` — passed - `yarn test:ci` — `254 passed (254)` files, `7290 passed | 1 skipped (7291)` tests (exact JUnit parity with baseline) - `yarn ng run gui:test-browser --watch=false --progress=false` — `3 passed (3)` files, `23 passed (23)` tests in Chromium - `yarn build:ci --skip-nx-cache` — production build succeeded - **Visual verification (Playwright Chromium, `1280x980` against `ng serve` with stubbed `/api/**`)**: verified `/user/dataset/1` (`Data Card`, `Versions & Files`, `Settings`) and `/user/model/1` (`Model Card`, `Settings`) before and after the refactor. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Antigravity IDE (Gemini 3.8 Flash) -- 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]
