Skip to content

feat(wallet): allow underscores and rename invalid#2889

Merged
CharlVS merged 1 commit intocodex/add-wallet-name-validationfrom
codex/allow-underscores-in-wallet-names
Jul 8, 2025
Merged

feat(wallet): allow underscores and rename invalid#2889
CharlVS merged 1 commit intocodex/add-wallet-name-validationfrom
codex/allow-underscores-in-wallet-names

Conversation

@CharlVS
Copy link
Copy Markdown
Collaborator

@CharlVS CharlVS commented Jul 8, 2025

Summary

  • permit underscores and hyphens in wallet names
  • prompt to rename imported wallets with invalid names
  • allow renaming legacy wallets before migration
  • update translations

Testing

  • flutter analyze

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

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Jul 8, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


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 03b2ca0 into codex/add-wallet-name-validation Jul 8, 2025
2 of 5 checks passed
@CharlVS CharlVS deleted the codex/allow-underscores-in-wallet-names branch July 8, 2025 19:58
CharlVS added a commit that referenced this pull request Sep 25, 2025
* feat(wallet): restrict wallet name characters

* feat(wallet): allow hyphens in names (#2889)

* fix(merge): misc merge fixes

* fix(wallet-file-import): remove legacy wallet name validation

early return skipped the new wallet renaming dialog, preventing it from appearing

* feat(wallets): add unicode alphanumeric wallet name support

KDF is_alphanumeric check supports unicode text characters alongside ASCII. Emoji's and other special characters should still trigger the validation errors

* refactor(wallet-rename): replace deprecated dispatcher with appdialog

* fix(screenshot-sensitivity): notify listeners in postFrameCallback

fixes "setState() or markNeedsBuild() called when widget tree was locked. This ScreenshotSensitivity widget cannot be marked as needing to build because the framework is locked."  and "DartError: setState() or markNeedsBuild() called during build.
This ScreenshotSensitivity widget cannot be marked as needing to build because the framework is already in the process of building widgets. A widget can be marked as needing to be built during the build phase only if one of its ancestors is currently building. This exception is allowed because the framework builds parent widgets before children, which means a dirty descendant will always be built. Otherwise, the framework might not visit this widget during this build phase."

* fix(wallet-import): defer wallet file name validation to click handler

* Refactor wallet name validation and renaming logic

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

* fix(ci): unblock Android release build by including integration_test plugin and add cupertino_icons to satisfy font requirements

* chore: update SDK submodule to latest dev commit

* refactor(wallets-manager): fetch wallet names on demand; remove pre-cache warm-ups

- Remove cache warm-ups in wallet import and rename dialog
- Keep validation using fresh repository fetches
- Reverted unintended global formatting; formatted only edited files
- No Bloc introduced (repo methods suffice)

* refactor(wallets-manager): remove no-op initState overrides in import widgets

* chore(sdk): update submodule to latest dev

* refactor: fix minor context warning

TODO: More fixes of the same warning type (stale context)

* fix(wallets): avoid mutating Wallet instances during login and export\n\n- Replace wallet.name assignment with copyWith + setState in iguana manager\n- Use wallet.copy() to avoid shared references during login flow\n- Avoid widget.wallet.config.type mutation; pass copied wallet to onLogin\n- Avoid mutating wallet.config.seedPhrase in downloadEncryptedWallet; use working copy\n\nKeeps immutability and consistent state updates in BLoC flows.

* fix: check both validation and uniqueness before prompting for wallet rename

- Combine validation and uniqueness checks before showing rename dialog
- Remove duplicate uniqueness check after validation
- Improves flow by avoiding unnecessary prompts when both checks fail

---------

Co-authored-by: Francois <takenagain@users.noreply.github.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.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.

1 participant