3 Commits
Author SHA1 Message Date
google-labs-jules[bot] 6e5c303650 Update model recommendations in READMEs (#62)
- Update `README.md` to recommend "Nano Banana (non-Pro)" for Asset Extraction, with "Nano Banana Pro" as a fallback.
- Update `README_CN.md` with the same recommendation translated into Chinese.
- Fix typo "Nanao" to "Nano" in `README_CN.md` and ensure consistent use of "Nano Banana Pro".

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2026-02-22 17:31:20 +08:00
google-labs-jules[bot]andyiling ji a44ab5168d Refactor Extractor Workflow (#60)
* Refactor Extractor workflow to use atomic extraction

* Refactor Extractor workflow to use atomic extraction

* Refactor Extractor workflow to use atomic, sequential extraction

* fix(extractor): resolve overflow issues in SelectionStage

- Constrain `ScrollArea` in `SelectionStage` with `min-h-0` to ensure proper scrolling within flex container.
- Add `overflow-hidden` to `SelectionStage` container.
- Add `overflow-hidden` to `ExtractorDialog` content area to prevent content spillover.
- Ensure header in `SelectionStage` does not shrink (`shrink-0`).

* fix: ensure equipment is updated on re-extraction

- Verified that `src/api/extract.ts` uses `equipmentService.updateEquipment` when `previousEquipmentId` is provided.
- Confirmed that `src/service/equipment.ts` performs an SQL UPDATE and cleans up the old asset file.
- No new code changes were needed as the previous submission already covered this requirement.

* fix: use default extract model in re-extract dialog

- Updated `ExtractorDialog` to fetch `default_extract_model` from settings.
- Passed `defaultModel` to `ExtractionStage`.
- Updated `ExtractionStage` to initialize the re-extract model selection with `defaultModel`.

* fix: correct setting key for default extract model

- Updated `ExtractorDialog` to use `step_refine_model` instead of `default_extract_model` to fetch the default extraction model from settings, as confirmed by the `ExtractionFlowDesigner` configuration.

* fix: update extraction stage layout and buttons

- Enforced a square aspect ratio for the image container in extraction cards using `aspect-square`.
- Removed the "Cancel" button from the footer in `ExtractionStage`.
- Updated the footer to be always visible.
- Changed the "Finish" button to display "Extracting..." and be disabled while extraction is in progress, and "Finish" when complete.

* fix: resolve lint errors and refine extraction UI

- Removed unused `onCancel` prop from `ExtractionStage` to fix linting error.
- Updated `ExtractorDialog` to remove the unused `onCancel` callback passed to `ExtractionStage`.
- Ensured consistent image sizing (square aspect ratio) in extraction cards.
- Refined footer behavior to always show actions, with dynamic "Extracting..." state.

* refine ui

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: yiling ji <njjyl723@gmail.com>
2026-02-22 16:37:03 +08:00
google-labs-jules[bot] b99d1c6e06 Add Chinese README and language switcher (#58)
* Add Chinese README and language switcher

* Add Chinese README and language switcher

* Update READMEs with model recommendation for Refine Asset step

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2026-02-20 11:28:54 +08:00