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

   ### What changes were proposed in this PR?
   
   Remove unreachable code from dataset creation, dashboard search, and file 
previews. **+108/−243 lines across eight files.**
   
   - The dashboard and result export both open the modal to create a dataset. 
Versions are created on the dataset detail page.
   - Dashboard search has no callers for the public or all scopes.
   - HTML, PDF, MS Word, and MS PowerPoint suffixes already fall through to the 
unsupported-preview notice. The preview guard rejects binary files before the 
size lookup.
   
   | Code | Introduced by | Usage removed by |
   | --- | --- | --- |
   | Modal version mode | #3296 | #3659 |
   | Dashboard search scopes | #2987 | #3129 |
   | Binary preview size limit | #2413 | #3149 |
   | Unsupported MIME aliases | #2413 | Never selected a viewer |
   
   The modal mode has been unreachable since August 2025, the search scopes 
since January 2025, and the binary size limit since December 2024.
   
   ### Any related issues, documentation, discussions?
   
   Closes #9462.
   
   ### How was this PR tested?
   
   From `frontend/` on Node 24
   
   ```sh
   NODE_OPTIONS=--max-old-space-size=8192 yarn test --progress=false \
     
--include='**/{user-dataset-file-renderer,user-dataset-version-creator,user-dataset,result-exportation,result-table-frame,context-menu,dataset-detail,version-uploader}.component.spec.ts'
   yarn exec tsc --noEmit -p src/tsconfig.app.json
   yarn exec tsc --noEmit -p src/tsconfig.spec.json
   yarn format:ci
   yarn build
   ```
   
   497 tests passed across eight suites. The preview test now checks that the 
four affected suffixes still show the unsupported-preview state without a 
request to the backend. Both creation entry points and the dataset version 
uploader are covered by the targeted run.
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: Codex (GPT-6)
   
   


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