Revert "Migrate to Storefront API 2026-07 + remove deprecated fields (v3.0.0)" - #146
Merged
Conversation
imsujan276
pushed a commit
that referenced
this pull request
Jul 17, 2026
Re-applies PR #143 (reverted in #146) together with the fixes for the issues found in review. Squashed re-land on top of the revert so the migration is fully restored (a plain re-merge of the branch would not re-introduce the reverted commits). Fixes since the revert: - CartAddressInput is a Storefront "one of" input; toJson emitted both fields, so adding a cart delivery address failed with "'CartAddressInput' requires exactly one argument, but 2 were provided". The null field is now omitted. (This is the delivery error from the revert note.) - Example collection tab hard-coded a price {min:500,max:600} filter that hid all products on most stores (the "collections show no products" from the revert note). Removed it. - Example Blog/Pages tabs spun forever on a failed fetch (catch cleared the flag without setState); they now clear the spinner and show the error or an empty state. - Example builds on the Java 25 / AGP 9 toolchain (Gradle 9.6.1, AGP 9.3.0, built-in Kotlin; flutter_inappwebview 6.2.0-beta.3 for AGP 9). - Dependency floors bumped to current versions (intl kept >=0.20.2 for flutter_localizations compatibility). Verified every migrated document and both delivery paths against a live 2026-07 storefront, ran the example app end-to-end, and confirmed model parsing on real responses. flutter analyze clean; tests pass. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reverts #143