| feat: store generation history in Room database
Replace the per-record JSON sidecar files with a Room-backed history
table so we can record information the old layout could not represent
(generation mode, denoise strength, upscaler id, etc.) and filter on it.
- Add Room 2.6.1 + KSP for entity / DAO generation
- Run a one-shot blocking MigrationScreen at first launch that imports
the existing on-disk JSON history into the database, then writes a
done flag to DataStore so it never re-runs
- Rework the third pager tab into a filterable history view: top
current/all chips plus a bottom-sheet filter (modes, models, sizes,
time range, schedulers, devices, prompt substring, sort order)
backed by a RawQuery
- Show mode and denoise strength in both the result and history
parameter detail dialogs
- Persist upscaled images through HistoryManager so they show up as
first-class history entries with the upscaler id recorded
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
| 21 天前 |