mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 10:01:00 +01:00
Backend: - Drop the HashPolicy enum: FULL had no caller and INCREMENTAL was the default, so refresh_rom_files uses the existing_files knob directly. - Narrow RomFilesRefresh to the counters callers read. - Build ParsedRomFiles once so the incremental return stops dropping the title id fields. - Give the assembling suffix one home in config, read by both the assembler and the scanner's excluded extensions. - Fold the duplicated destination collision check into one helper, and branch /start on the upload target itself. - Load the lighter rom for the refresh emit and the upload endpoints, keep the flat file stat off the event loop, and reuse the directory listing for the RA hash lookup. Frontend: - Route the platform scan dialog and the scan view through useScanTrigger, so a scan started while one runs is refused rather than emitted and rejected by the backend. - Rename the socket payload type to ScanRequest, away from the useScanProviders type of the same name. - Drop the dead uploading prop and folder icon, reuse singleRomTitle, and resolve each file's relative path once per listing. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>