Skip to content

feat(manager): explain import outcomes - #82

Merged
dh0er merged 2 commits into
mainfrom
codex/mod-manager-v1-import-outcome-ux
Aug 12, 2026
Merged

feat(manager): explain import outcomes#82
dh0er merged 2 commits into
mainfrom
codex/mod-manager-v1-import-outcome-ux

Conversation

@dh0er

@dh0er dh0er commented Aug 12, 2026

Copy link
Copy Markdown
Owner

Summary

  • expose typed created/updated/unchanged import outcomes and verified match reasons
  • publish success only after an authoritative Native Store reload, without stealing user selection
  • add bounded, sanitized, keyboard-accessible feedback in all 12 locales
  • let Native classify all selected files, with clear archive/corruption guidance

Validation

  • flutter test — 246 passed
  • flutter analyze — no issues
  • flutter gen-l10n — generated output clean
  • git diff --check — clean

Note

Medium Risk
Changes library mutation and FFI error handling for import; race and reload-fail-closed logic affect selection and authority, but behavior is heavily tested and UI-only for most paths.

Overview
Mod import now surfaces Native’s created / updated / unchanged disposition and match reason (source, content, entry ID), with success shown only after an authoritative library reload and selection updated only when the user hasn’t changed selection during the import.

The FFI layer adds MgrImportOutcome, structured MgrFfiException.details for duplicate-ambiguous and identity-conflict refusals (bounded candidates), and stricter validation of import responses. LibraryNotifier.import reloads the store after every attempt, returns an authoritative outcome or rethrows without polluting library error banners for import-only failures.

Home centralizes pick-and-import (injectable ImportSourcePicker, no extension filter so Native classifies all files), snackbar success/failure via import_feedback, and blocks duplicate imports while a request is active. 12 locales add strings for outcomes, refusals, picker failures, and supported-source guidance.

Reviewed by Cursor Bugbot for commit c999d87. Bugbot is set up for automated code reviews on this repo. Configure here.

@dh0er

dh0er commented Aug 12, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@dh0er

dh0er commented Aug 12, 2026

Copy link
Copy Markdown
Owner Author

@cursor review

Comment thread apps/mod-manager/lib/home_page.dart
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: f3e967518f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@dh0er

dh0er commented Aug 12, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: c999d87d54

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@dh0er

dh0er commented Aug 12, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@dh0er

dh0er commented Aug 12, 2026

Copy link
Copy Markdown
Owner Author

@cursor review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: c999d87d54

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit c999d87. Configure here.

@dh0er
dh0er merged commit e40bb11 into main Aug 12, 2026
2 checks passed
@dh0er
dh0er deleted the codex/mod-manager-v1-import-outcome-ux branch August 12, 2026 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant