Skip to content

fix: reset NFT image on url change#3046

Merged
takenagain merged 3 commits intobugfix/nft-image-loadingfrom
codex/implement-didupdatewidget-in-nftimagestates
Aug 4, 2025
Merged

fix: reset NFT image on url change#3046
takenagain merged 3 commits intobugfix/nft-image-loadingfrom
codex/implement-didupdatewidget-in-nftimagestates

Conversation

@takenagain
Copy link
Copy Markdown
Contributor

@takenagain takenagain commented Aug 4, 2025

Summary

  • reset NFT image bloc when media URL changes
  • reload videos on URL updates

Testing

  • dart format lib/views/nfts/common/widgets/nft_image.dart
  • flutter pub get --enforce-lockfile --offline
  • flutter analyze

https://chatgpt.com/codex/tasks/task_e_689083341eb4833195b2eb0763e772a6

Summary by CodeRabbit

  • Bug Fixes
    • Improved reliability when updating NFT images and videos, ensuring that media reloads correctly if the URL changes. This enhances consistency and prevents display issues when content is updated.

Copilot AI review requested due to automatic review settings August 4, 2025 10:54
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Aug 4, 2025

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

Walkthrough

The update introduces explicit keys for image and video fallback widgets in the NFT image component to ensure correct widget identity. It also adds didUpdateWidget overrides to handle URL changes, resetting and reloading the media through bloc events and, for videos, disposing the controller before reloading.

Changes

Cohort / File(s) Change Summary
NFT Image Widget State Management
lib/views/nfts/common/widgets/nft_image.dart
Added explicit ValueKey for image/video fallback widgets; implemented didUpdateWidget in state classes to reset and reload media on URL changes, including controller disposal for videos.

Sequence Diagram(s)

sequenceDiagram
    participant UI as NftImage Widget
    participant Bloc as NftImageBloc
    participant State as _NftImageWithFallbackState/_NftVideoWithFallbackState

    Note over UI: User triggers image/video URL change
    UI->>State: didUpdateWidget called
    State->>Bloc: NftImageResetRequested
    State->>Bloc: NftImageLoadRequested(newUrl)
    alt Video Widget
        State->>State: Dispose and clear video controller
    end
    Bloc-->>State: Updated media state
    State-->>UI: Render updated image/video
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Suggested labels

bug, QA

Suggested reviewers

  • smk762
  • CharlVS

Poem

A widget hops with nimble feet,
Now keyed to keep its state so neat.
When URLs change, it knows the score—
Resets, reloads, and shows once more.
With blocs in sync and videos new,
The NFT display feels fresh as dew!
🐇✨

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d9bb03c and 8575e6c.

📒 Files selected for processing (1)
  • lib/views/nfts/common/widgets/nft_image.dart (4 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: unit_tests
  • GitHub Check: Test web-app-linux-profile
  • GitHub Check: Test web-app-macos
🔇 Additional comments (4)
lib/views/nfts/common/widgets/nft_image.dart (4)

30-30: Good implementation of ValueKey for widget identity.

The addition of ValueKey(imageUrl!) correctly ensures that Flutter recognizes the widget as different when the imageUrl changes, enabling proper state management and rebuilding.


40-40: Good implementation of ValueKey for video widget identity.

The addition of ValueKey(imageUrl!) ensures proper widget identity management for video components, allowing Flutter to correctly handle URL changes.


89-97: Excellent implementation of URL change handling.

The didUpdateWidget override correctly detects URL changes and properly resets the bloc state before requesting a new load. This ensures clean state management when the image URL changes.


216-227: Comprehensive video URL change handling with proper resource cleanup.

The implementation correctly handles video URL changes by disposing the controller, clearing state, and resetting the bloc. This prevents memory leaks and ensures proper video reloading, fully addressing the PR objectives.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch codex/implement-didupdatewidget-in-nftimagestates

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes an issue where NFT images and videos were not properly resetting when their media URLs changed. The solution involves adding proper widget lifecycle handling to ensure content reloads when the URL updates.

  • Adds Key widgets to force recreation of image and video components when URLs change
  • Implements didUpdateWidget lifecycle methods to detect URL changes and reset/reload content
  • Ensures proper disposal and resetting of video controllers when video URLs change

takenagain and others added 2 commits August 4, 2025 12:57
Using Key(imageUrl!) creates a new Key object on every build. Consider using ValueKey(imageUrl!) instead, which is more semantically appropriate for value-based keys and may have better performance characteristics.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@takenagain
Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Aug 4, 2025

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@takenagain
Copy link
Copy Markdown
Contributor Author

image

@takenagain takenagain merged commit b1ca168 into bugfix/nft-image-loading Aug 4, 2025
2 of 5 checks passed
@takenagain takenagain deleted the codex/implement-didupdatewidget-in-nftimagestates branch August 4, 2025 11:04
CharlVS pushed a commit that referenced this pull request Aug 6, 2025
… NFT image loading (#3020)

* feat(nft): tolerate activation failures

* fix(nft): skip missing parents in firstWhere

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* refactor(nft-main-repo): fix parent coin filter and use logging package

* fix(nft): don't return an error if there are no NFTs returned

* fix(nft): revert map-based error responses in favor of manual activation

* fix(skeleton-list-tile): add height constraint to fix renderflex assert

* fix(coin): temporarily skip calling deactivation RPC

circumvent "NoSuchCoin" error when re-enabling the coin in the same session.

* fix(activation): use more complete coin conversion function

* feat(nft): add nft image bloc for url resolution, fallbacks and retry

* fix(ipfs-gateway-manager): move gateway match above subdomain

gateway pattern matches subdomain due to loose alphanumeric requirement

* test: add unit tests for ipfs url normaliser and fix case sensitivity

* refactor(nft-image): remove dead code & move url testing out of bloc

* fix(nft): delegate IpfsGatewayManager disposal to root provider (#3047)

* fix: delegate IpfsGatewayManager disposal to root provider

* refactor: remove unnecessary line break

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix(nft): reset NFT image on url change (#3046)

* fix: reset NFT image on url change

* refactor(nft-image): use ValueKey instead of Key

Using Key(imageUrl!) creates a new Key object on every build. Consider using ValueKey(imageUrl!) instead, which is more semantically appropriate for value-based keys and may have better performance characteristics.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* refactor(nft-image): use ValueKey instead of Key

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* style: apply updated dart formatting to modified files

* fix(coins): filter excluded and testnet coins out of price updates

* fix(nft-image): reduce the number of success events fired

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
smk762 pushed a commit that referenced this pull request Aug 8, 2025
… NFT image loading (#3020)

* feat(nft): tolerate activation failures

* fix(nft): skip missing parents in firstWhere

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* refactor(nft-main-repo): fix parent coin filter and use logging package

* fix(nft): don't return an error if there are no NFTs returned

* fix(nft): revert map-based error responses in favor of manual activation

* fix(skeleton-list-tile): add height constraint to fix renderflex assert

* fix(coin): temporarily skip calling deactivation RPC

circumvent "NoSuchCoin" error when re-enabling the coin in the same session.

* fix(activation): use more complete coin conversion function

* feat(nft): add nft image bloc for url resolution, fallbacks and retry

* fix(ipfs-gateway-manager): move gateway match above subdomain

gateway pattern matches subdomain due to loose alphanumeric requirement

* test: add unit tests for ipfs url normaliser and fix case sensitivity

* refactor(nft-image): remove dead code & move url testing out of bloc

* fix(nft): delegate IpfsGatewayManager disposal to root provider (#3047)

* fix: delegate IpfsGatewayManager disposal to root provider

* refactor: remove unnecessary line break

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix(nft): reset NFT image on url change (#3046)

* fix: reset NFT image on url change

* refactor(nft-image): use ValueKey instead of Key

Using Key(imageUrl!) creates a new Key object on every build. Consider using ValueKey(imageUrl!) instead, which is more semantically appropriate for value-based keys and may have better performance characteristics.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* refactor(nft-image): use ValueKey instead of Key

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* style: apply updated dart formatting to modified files

* fix(coins): filter excluded and testnet coins out of price updates

* fix(nft-image): reduce the number of success events fired

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
smk762 pushed a commit that referenced this pull request Aug 12, 2025
… NFT image loading (#3020)

* feat(nft): tolerate activation failures

* fix(nft): skip missing parents in firstWhere

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* refactor(nft-main-repo): fix parent coin filter and use logging package

* fix(nft): don't return an error if there are no NFTs returned

* fix(nft): revert map-based error responses in favor of manual activation

* fix(skeleton-list-tile): add height constraint to fix renderflex assert

* fix(coin): temporarily skip calling deactivation RPC

circumvent "NoSuchCoin" error when re-enabling the coin in the same session.

* fix(activation): use more complete coin conversion function

* feat(nft): add nft image bloc for url resolution, fallbacks and retry

* fix(ipfs-gateway-manager): move gateway match above subdomain

gateway pattern matches subdomain due to loose alphanumeric requirement

* test: add unit tests for ipfs url normaliser and fix case sensitivity

* refactor(nft-image): remove dead code & move url testing out of bloc

* fix(nft): delegate IpfsGatewayManager disposal to root provider (#3047)

* fix: delegate IpfsGatewayManager disposal to root provider

* refactor: remove unnecessary line break

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix(nft): reset NFT image on url change (#3046)

* fix: reset NFT image on url change

* refactor(nft-image): use ValueKey instead of Key

Using Key(imageUrl!) creates a new Key object on every build. Consider using ValueKey(imageUrl!) instead, which is more semantically appropriate for value-based keys and may have better performance characteristics.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* refactor(nft-image): use ValueKey instead of Key

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* style: apply updated dart formatting to modified files

* fix(coins): filter excluded and testnet coins out of price updates

* fix(nft-image): reduce the number of success events fired

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
smk762 pushed a commit that referenced this pull request Aug 12, 2025
… NFT image loading (#3020)

* feat(nft): tolerate activation failures

* fix(nft): skip missing parents in firstWhere

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* refactor(nft-main-repo): fix parent coin filter and use logging package

* fix(nft): don't return an error if there are no NFTs returned

* fix(nft): revert map-based error responses in favor of manual activation

* fix(skeleton-list-tile): add height constraint to fix renderflex assert

* fix(coin): temporarily skip calling deactivation RPC

circumvent "NoSuchCoin" error when re-enabling the coin in the same session.

* fix(activation): use more complete coin conversion function

* feat(nft): add nft image bloc for url resolution, fallbacks and retry

* fix(ipfs-gateway-manager): move gateway match above subdomain

gateway pattern matches subdomain due to loose alphanumeric requirement

* test: add unit tests for ipfs url normaliser and fix case sensitivity

* refactor(nft-image): remove dead code & move url testing out of bloc

* fix(nft): delegate IpfsGatewayManager disposal to root provider (#3047)

* fix: delegate IpfsGatewayManager disposal to root provider

* refactor: remove unnecessary line break

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix(nft): reset NFT image on url change (#3046)

* fix: reset NFT image on url change

* refactor(nft-image): use ValueKey instead of Key

Using Key(imageUrl!) creates a new Key object on every build. Consider using ValueKey(imageUrl!) instead, which is more semantically appropriate for value-based keys and may have better performance characteristics.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* refactor(nft-image): use ValueKey instead of Key

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* style: apply updated dart formatting to modified files

* fix(coins): filter excluded and testnet coins out of price updates

* fix(nft-image): reduce the number of success events fired

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
smk762 pushed a commit that referenced this pull request Aug 12, 2025
… NFT image loading (#3020)

* feat(nft): tolerate activation failures

* fix(nft): skip missing parents in firstWhere

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* refactor(nft-main-repo): fix parent coin filter and use logging package

* fix(nft): don't return an error if there are no NFTs returned

* fix(nft): revert map-based error responses in favor of manual activation

* fix(skeleton-list-tile): add height constraint to fix renderflex assert

* fix(coin): temporarily skip calling deactivation RPC

circumvent "NoSuchCoin" error when re-enabling the coin in the same session.

* fix(activation): use more complete coin conversion function

* feat(nft): add nft image bloc for url resolution, fallbacks and retry

* fix(ipfs-gateway-manager): move gateway match above subdomain

gateway pattern matches subdomain due to loose alphanumeric requirement

* test: add unit tests for ipfs url normaliser and fix case sensitivity

* refactor(nft-image): remove dead code & move url testing out of bloc

* fix(nft): delegate IpfsGatewayManager disposal to root provider (#3047)

* fix: delegate IpfsGatewayManager disposal to root provider

* refactor: remove unnecessary line break

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix(nft): reset NFT image on url change (#3046)

* fix: reset NFT image on url change

* refactor(nft-image): use ValueKey instead of Key

Using Key(imageUrl!) creates a new Key object on every build. Consider using ValueKey(imageUrl!) instead, which is more semantically appropriate for value-based keys and may have better performance characteristics.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* refactor(nft-image): use ValueKey instead of Key

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* style: apply updated dart formatting to modified files

* fix(coins): filter excluded and testnet coins out of price updates

* fix(nft-image): reduce the number of success events fired

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
cursor bot pushed a commit that referenced this pull request Aug 20, 2025
… NFT image loading (#3020)

* feat(nft): tolerate activation failures

* fix(nft): skip missing parents in firstWhere

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* refactor(nft-main-repo): fix parent coin filter and use logging package

* fix(nft): don't return an error if there are no NFTs returned

* fix(nft): revert map-based error responses in favor of manual activation

* fix(skeleton-list-tile): add height constraint to fix renderflex assert

* fix(coin): temporarily skip calling deactivation RPC

circumvent "NoSuchCoin" error when re-enabling the coin in the same session.

* fix(activation): use more complete coin conversion function

* feat(nft): add nft image bloc for url resolution, fallbacks and retry

* fix(ipfs-gateway-manager): move gateway match above subdomain

gateway pattern matches subdomain due to loose alphanumeric requirement

* test: add unit tests for ipfs url normaliser and fix case sensitivity

* refactor(nft-image): remove dead code & move url testing out of bloc

* fix(nft): delegate IpfsGatewayManager disposal to root provider (#3047)

* fix: delegate IpfsGatewayManager disposal to root provider

* refactor: remove unnecessary line break

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix(nft): reset NFT image on url change (#3046)

* fix: reset NFT image on url change

* refactor(nft-image): use ValueKey instead of Key

Using Key(imageUrl!) creates a new Key object on every build. Consider using ValueKey(imageUrl!) instead, which is more semantically appropriate for value-based keys and may have better performance characteristics.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* refactor(nft-image): use ValueKey instead of Key

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* style: apply updated dart formatting to modified files

* fix(coins): filter excluded and testnet coins out of price updates

* fix(nft-image): reduce the number of success events fired

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
CharlVS added a commit that referenced this pull request Sep 10, 2025
* fix impossible nested condition logic

* handle uninitialized logger exceptions gratefully

* caches `typeName` to avoid unneccesary `getCoinTypeName` calls

* adds caching for `isParent`

* set parents as native; use cached coin values

* special case to cover ARB

* chore: roll SDK (#3036)

Roll SDK for critical KMD API pricing fix

* chore: remove FEEDBACK_TEST_URL references

* fix(ui): close dropdown on window resize

* Fix null safety issues in UiDropdown widget

Co-authored-by: charl <charl@vanstaden.info>

* fix(build): correct env vars passing to Docker and Dart via --dart-define (#3037)

* refactor: simplify Docker env vars and build command logic

- Remove unnecessary environment variables from Docker container
- Keep only GITHUB_API_PUBLIC_READONLY_TOKEN as env var
- Replace hardcoded build logic with conditional credential handling
- Add proper validation for Trello and Cloudflare feedback services
- Use dart-define flags instead of environment variables for build configs
- Add warning messages for incomplete credential sets

* fix executable rights on build.sh

* remove the redundant FEEDBACK_TEST_URL, as it will no longer be used in the GUI

* swap BUILD_COMMAND and BUILD_CMD (important)

BUILD_CMD, which is built dynamically with --dart-define= arguments, should be called last (not during the assets-fetch stage) to ensure the app is actually built with the required defines and that all String.fromEnvironment(...) statements in the Dart code work as expected.

* fix(nft): add IPFS gateway resolution, retry, and fallback to improve NFT image loading (#3020)

* feat(nft): tolerate activation failures

* fix(nft): skip missing parents in firstWhere

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* refactor(nft-main-repo): fix parent coin filter and use logging package

* fix(nft): don't return an error if there are no NFTs returned

* fix(nft): revert map-based error responses in favor of manual activation

* fix(skeleton-list-tile): add height constraint to fix renderflex assert

* fix(coin): temporarily skip calling deactivation RPC

circumvent "NoSuchCoin" error when re-enabling the coin in the same session.

* fix(activation): use more complete coin conversion function

* feat(nft): add nft image bloc for url resolution, fallbacks and retry

* fix(ipfs-gateway-manager): move gateway match above subdomain

gateway pattern matches subdomain due to loose alphanumeric requirement

* test: add unit tests for ipfs url normaliser and fix case sensitivity

* refactor(nft-image): remove dead code & move url testing out of bloc

* fix(nft): delegate IpfsGatewayManager disposal to root provider (#3047)

* fix: delegate IpfsGatewayManager disposal to root provider

* refactor: remove unnecessary line break

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix(nft): reset NFT image on url change (#3046)

* fix: reset NFT image on url change

* refactor(nft-image): use ValueKey instead of Key

Using Key(imageUrl!) creates a new Key object on every build. Consider using ValueKey(imageUrl!) instead, which is more semantically appropriate for value-based keys and may have better performance characteristics.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* refactor(nft-image): use ValueKey instead of Key

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* style: apply updated dart formatting to modified files

* fix(coins): filter excluded and testnet coins out of price updates

* fix(nft-image): reduce the number of success events fired

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix(build): add --no-web-resources-cdn to the web build in build.sh (#3055)

* Remove .dgph build artifacts from iOS project (#3058)

* remove dgph binaries

* Ignore .dgph build artifacts in iOS

* fix arb parent ticker

* include qtum parent

* chore(sdk): bump submodule to 170aab4 for parent display name suffix

Pulls in AssetId.displayName and CoinSubClass.tokenStandardSuffix

* feat(ui): disambiguate parent chain names via SDK displayName

- Use AssetId.displayName for top-level assets (SDK)\n- Update UI to show e.g. Ethereum (ARB20) for parents\n- Keep protocol pill consistent using coin.typeName (NATIVE for parents)\n- Search compares against displayName\n\nRefs: #2988 (comment)

---------

Co-authored-by: Charl (Nitride) <77973576+CharlVS@users.noreply.github.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: charl <charl@vanstaden.info>
Co-authored-by: DeckerSU <deckersu@protonmail.com>
Co-authored-by: Francois <takenagain@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants