mengw15 opened a new issue, #6747: URL: https://github.com/apache/texera/issues/6747
### Task Summary `DatasetDetailComponent` sits at codecov ~80% (73 uncovered lines) — its access predicates and view/upload-state handlers are largely untested. Extend the spec, mocking `DatasetService`. jsdom/Vitest; see `frontend/TESTING.md`. ### Behavior to add **DatasetDetailComponent** (`frontend/src/app/dashboard/component/user/user-dataset/user-dataset-explorer/dataset-detail.component.ts`, codecov ~80% — EXTEND) - Pure predicates / view state: `isDownloadAllowed` / `userHasWriteAccess` / `getUploadStatus` — assert the boolean/status for representative dataset + permission inputs; `changeViewDisplayStyle` switches the display mode. - Status/description handlers: `onPublicStatusChange` / `onDownloadableStatusChange` / `onDatasetDescriptionChange` / `onSetCoverImage` — assert the resulting state update and any `DatasetService` call. - Version + selection handlers: `onVersionSelected` / `onVersionFileTreeNodeSelected` / `toggleLike` — assert selection state / like toggle. - Pending-upload queue helpers: `removeFromPendingQueue` / `refreshPendingChanges` / `trackByPendingFile` / `trackByTask` — assert the queue mutation / trackBy identity. Out of scope: the actual upload pipeline (`processNextQueuedUpload` / `onUploadComplete` / `cancelExistingUpload`) and `retrieveDatasetInfo` / `retrieveDatasetVersionList` HTTP fetches — scope to the pure/handler branches with a mocked service. ### Task Type - [ ] Refactor / Cleanup - [ ] DevOps / Deployment / CI - [x] Testing / QA - [ ] Documentation - [ ] Performance - [ ] Other -- 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]
