Skip to content

Revert "chore(release): v0.9.1 release - Trezor login hot-fix"#2781

Merged
CharlVS merged 1 commit intomainfrom
revert-2743-release/hot-fix-trezor-login
Jun 15, 2025
Merged

Revert "chore(release): v0.9.1 release - Trezor login hot-fix"#2781
CharlVS merged 1 commit intomainfrom
revert-2743-release/hot-fix-trezor-login

Conversation

@CharlVS
Copy link
Copy Markdown
Collaborator

@CharlVS CharlVS commented Jun 15, 2025

Reverts #2743

Summary by CodeRabbit

  • New Features
    • Internal implementations now handle price data and password management, replacing external dependencies.
  • UI/UX Improvements
    • Simplified wallet main page with a two-tab layout and unified animated portfolio charts.
    • Refined portfolio and asset management sections, including streamlined statistic displays and improved button/icon sizes.
    • Unified mobile and desktop UI elements for asset and coin lists.
    • Minor formatting adjustments for clearer display of balances and addresses.
  • Bug Fixes
    • Improved Trezor wallet login flow by removing secure storage dependency and enhancing SegWit coin support detection.
  • Performance
    • Removed redundant price updates and aggregate calculations from portfolio growth logic for better efficiency.
  • Chores
    • Updated documentation to reflect supported Flutter versions.
    • Adjusted version numbers and dependencies for consistency.
  • Refactor
    • Simplified and consolidated state management and widget structures, removing unused or redundant parameters and methods.
    • Replaced external SDK price and password utilities with custom logic.
  • Style
    • Updated text and button labels for clarity and consistency.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Jun 15, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

This update removes all code and state related to portfolio-wide price changes and 24h change calculations, eliminates secure password storage from Trezor login flows, and replaces external password utilities with custom logic. It also simplifies wallet UI by reducing tabs, unifying portfolio charts, and removing mobile-specific or redundant UI components. Some dependencies and versioning are reverted.

Changes

Files/Groups Change Summary
lib/bloc/cex_market_data/portfolio_growth/portfolio_growth_bloc.dart
lib/bloc/cex_market_data/portfolio_growth/portfolio_growth_repository.dart
lib/bloc/cex_market_data/portfolio_growth/portfolio_growth_state.dart
Removed price update calls, aggregate portfolio calculations, and related state fields and methods from portfolio growth logic.
lib/model/cex_price.dart Replaced external SDK types with internal CexPrice class and CexDataProvider enum; added JSON serialization and equality.
lib/bloc/app_bloc_root.dart Changed initial price chart symbol from 'BTC' to 'KMD'.
lib/bloc/cex_market_data/price_chart/models/price_chart_interval.dart
lib/bloc/cex_market_data/price_chart/models/time_period.dart
Renamed or removed formatting methods for chart intervals and time periods.
lib/bloc/coins_bloc/coins_repo.dart Removed getCachedPrice method.
lib/bloc/trezor_init_bloc/trezor_init_bloc.dart Removed FlutterSecureStorage and password persistence; hardcoded password and simplified auth options for Trezor login.
lib/model/coin.dart Updated hasTrezorSupport getter to exclude SegWit coins.
lib/shared/utils/password.dart Replaced external password utilities with custom password generator and validator enforcing complexity and repetition rules.
lib/shared/widgets/coin_balance.dart Removed extra space in fiat balance display.
lib/views/wallet/wallet_page/common/asset_list_item.dart
lib/views/wallet/wallet_page/common/assets_list.dart
Removed 24h price change percentage parameter from asset list item and its usage.
lib/views/wallet/wallet_page/common/expandable_coin_list_item.dart Removed mobile-specific UI, unified title layout, and simplified address row.
lib/views/wallet/wallet_page/wallet_main/active_coins_list.dart Changed SliverList construction to use SliverChildBuilderDelegate.
lib/views/wallet/wallet_page/wallet_main/wallet_main.dart Refactored wallet main page: reduced tabs from three to two, unified portfolio charts, and simplified coin list logic.
lib/views/wallet/wallet_page/wallet_main/wallet_manage_section.dart Adjusted Card widget placement and UI text for mobile and desktop manage sections.
lib/views/wallet/wallet_page/wallet_main/wallet_overview.dart Removed PortfolioGrowthBloc usage and statistics carousel; simplified overview to use only AssetOverviewBloc data.
packages/komodo_ui_kit/lib/src/display/statistic_card.dart Increased icon size in StatisticCard.
CHANGELOG.md
pubspec.yaml
docs/FLUTTER_VERSION.md
Removed v0.9.1 release notes, reverted version numbers, and updated Flutter version description.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant WalletUI
    participant TrezorInitBloc
    participant SDK

    User->>WalletUI: Initiate Trezor login
    WalletUI->>TrezorInitBloc: Login event
    TrezorInitBloc->>SDK: signIn/register (password: 'hidden-login', derivation: iguana)
    SDK-->>TrezorInitBloc: Success/Failure
    TrezorInitBloc-->>WalletUI: Login result
Loading
sequenceDiagram
    participant WalletUI
    participant PortfolioGrowthBloc
    participant PortfolioGrowthRepository

    WalletUI->>PortfolioGrowthBloc: Load portfolio growth event
    PortfolioGrowthBloc->>PortfolioGrowthRepository: Fetch growth chart
    PortfolioGrowthRepository-->>PortfolioGrowthBloc: Chart data
    PortfolioGrowthBloc-->>WalletUI: Chart data only (no aggregate balance/24h change)
Loading

Possibly related PRs

Suggested reviewers

  • takenagain
  • DeckerSU
  • smk762
  • ca333

Poem

A bunny hopped through code so wide,
Tidied wallets, set charts aside.
Passwords now with custom flair,
Trezor logs in, no secrets to share.
Tabs reduced, the UI’s neat—
With every hop, more code complete!
🐇✨


📜 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 19dff7d and 9a8e4a1.

⛔ Files ignored due to path filters (2)
  • packages/komodo_ui_kit/pubspec.lock is excluded by !**/*.lock
  • pubspec.lock is excluded by !**/*.lock
📒 Files selected for processing (23)
  • CHANGELOG.md (0 hunks)
  • docs/FLUTTER_VERSION.md (1 hunks)
  • lib/bloc/app_bloc_root.dart (1 hunks)
  • lib/bloc/cex_market_data/portfolio_growth/portfolio_growth_bloc.dart (2 hunks)
  • lib/bloc/cex_market_data/portfolio_growth/portfolio_growth_repository.dart (1 hunks)
  • lib/bloc/cex_market_data/portfolio_growth/portfolio_growth_state.dart (0 hunks)
  • lib/bloc/cex_market_data/price_chart/models/price_chart_interval.dart (1 hunks)
  • lib/bloc/cex_market_data/price_chart/models/time_period.dart (0 hunks)
  • lib/bloc/coins_bloc/coins_repo.dart (0 hunks)
  • lib/bloc/trezor_init_bloc/trezor_init_bloc.dart (2 hunks)
  • lib/model/cex_price.dart (1 hunks)
  • lib/model/coin.dart (1 hunks)
  • lib/shared/utils/password.dart (1 hunks)
  • lib/shared/widgets/coin_balance.dart (1 hunks)
  • lib/views/wallet/wallet_page/common/asset_list_item.dart (0 hunks)
  • lib/views/wallet/wallet_page/common/assets_list.dart (0 hunks)
  • lib/views/wallet/wallet_page/common/expandable_coin_list_item.dart (2 hunks)
  • lib/views/wallet/wallet_page/wallet_main/active_coins_list.dart (1 hunks)
  • lib/views/wallet/wallet_page/wallet_main/wallet_main.dart (6 hunks)
  • lib/views/wallet/wallet_page/wallet_main/wallet_manage_section.dart (2 hunks)
  • lib/views/wallet/wallet_page/wallet_main/wallet_overview.dart (2 hunks)
  • packages/komodo_ui_kit/lib/src/display/statistic_card.dart (1 hunks)
  • pubspec.yaml (2 hunks)

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.
    • @coderabbitai modularize this function.
  • 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.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

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

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

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 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.

@CharlVS CharlVS merged commit 9b400fa into main Jun 15, 2025
7 of 12 checks passed
@CharlVS CharlVS deleted the revert-2743-release/hot-fix-trezor-login branch June 15, 2025 15:59
@github-actions
Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit 9a8e4a1):

https://walletrc--pull-2781-merge-byhd70rq.web.app

(expires Sun, 22 Jun 2025 16:01:58 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: f66a4ff03faa546f12f0ae5a841bd9eff2714dcc

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