Skip to content

Comments

Release: v2.5.1#672

Merged
kvhnuke merged 2 commits intomainfrom
develop
Apr 15, 2025
Merged

Release: v2.5.1#672
kvhnuke merged 2 commits intomainfrom
develop

Conversation

@kvhnuke
Copy link
Contributor

@kvhnuke kvhnuke commented Apr 15, 2025

Summary by CodeRabbit

  • New Features
    • Added Coingecko ID support for the COTI network, enabling improved asset tracking.
  • Bug Fixes
    • Ensured onboarding windows close automatically after the onboarding process completes, providing a smoother user experience.
  • Chores
    • Updated extension version to 2.5.1.

@coderabbitai
Copy link

coderabbitai bot commented Apr 15, 2025

Walkthrough

This update increments the version of the extension package and makes several code changes. It modifies the openOnboard utility to return the promise from the browser tab creation process, enabling asynchronous handling. The onboarding flow in UI components is updated to close the window only after onboarding completes. Additionally, a coingeckoID property is added to the COTI network configuration.

Changes

File(s) Change Summary
packages/extension/package.json Version incremented from 2.5.0 to 2.5.1.
packages/extension/src/libs/utils/open-onboard.ts Modified default export to return the promise from Browser.tabs.create for async control.
packages/extension/src/providers/ethereum/networks/coti.ts Added coingeckoID: 'coti' property to the COTI network configuration object.
packages/extension/src/ui/action/App.vue Updated onboarding logic to close the window after openOnboard() completes asynchronously.
packages/extension/src/ui/action/views/reset-wallet/index.vue Changed reset action to close the window after openOnboard() completes via promise chaining.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant App.vue
    participant openOnboard
    participant Browser
    participant Window

    User->>App.vue: Triggers onboarding (keyring not initialized)
    App.vue->>openOnboard: Call openOnboard()
    openOnboard->>Browser: tabs.create()
    Browser-->>openOnboard: Promise resolved
    openOnboard-->>App.vue: Return promise
    App.vue->>Window: window.close() (after promise resolves)
Loading

Possibly related PRs

  • enkryptcom/enKrypt#630: Modifies calls to openOnboard() to handle its returned promise and close the window after onboarding, related by use of openOnboard.
  • enkryptcom/enKrypt#670: Makes identical changes across the same files and functions, including asynchronous onboarding flow and coingeckoID addition.

Suggested reviewers

  • gamalielhere

Tip

⚡💬 Agentic Chat (Pro Plan, General Availability)
  • We're introducing multi-step agentic chat in review comments and issue comments, within and outside of PR's. This feature enhances review and issue discussions with the CodeRabbit agentic chat by enabling advanced interactions, including the ability to create pull requests directly from comments and add commits to existing pull requests.
✨ Finishing Touches
  • 📝 Generate Docstrings

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.
    • Generate unit testing code for this file.
    • 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 generate unit testing code for this file.
    • @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 generate unit testing code.
    • @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.

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

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.

@github-actions
Copy link

github-actions bot commented Apr 15, 2025

💼 Build Files
chrome: enkrypt-chrome-35a2cd2a.zip
firefox: enkrypt-firefox-35a2cd2a.zip

💉 Virus total analysis
chrome: 35a2cd2a
firefox: 35a2cd2a

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
packages/extension/src/ui/action/App.vue (1)

299-301: Proper handling of the onboarding process. LGTM!

This change improves the onboarding flow by ensuring the window closes only after the onboarding process completes. This is good asynchronous control that prevents potential race conditions where the window might close too early.

Consider adding error handling to handle potential failures in the onboarding process:

-openOnboard().then(() => {
+openOnboard().then(() => {
   window.close();
+}).catch((error) => {
+  console.error('Failed to complete onboarding:', error);
+  // Handle the error appropriately
 });
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between c11549f and 35a2cd2.

📒 Files selected for processing (5)
  • packages/extension/package.json (1 hunks)
  • packages/extension/src/libs/utils/open-onboard.ts (1 hunks)
  • packages/extension/src/providers/ethereum/networks/coti.ts (1 hunks)
  • packages/extension/src/ui/action/App.vue (1 hunks)
  • packages/extension/src/ui/action/views/reset-wallet/index.vue (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: buildAll
🔇 Additional comments (4)
packages/extension/src/libs/utils/open-onboard.ts (1)

11-11: Improved asynchronous handling by returning the promise

This change is beneficial as it returns the Promise from Browser.tabs.create, allowing callers to handle asynchronous tab creation and chain further operations after tab creation completes.

packages/extension/package.json (1)

3-3: Version bump for release 2.5.1

The version number has been properly incremented from 2.5.0 to 2.5.1 for this release.

packages/extension/src/providers/ethereum/networks/coti.ts (1)

18-18: Added CoinGecko ID for COTI network

Adding the coingeckoID property enables price data fetching and other integrations with the CoinGecko API for the COTI network.

packages/extension/src/ui/action/views/reset-wallet/index.vue (1)

71-73: Improved window closing logic during onboarding

The window is now closed only after the onboarding tab has been successfully created, taking advantage of the Promise returned by openOnboard(). This ensures proper flow control in the UI.

@kvhnuke kvhnuke merged commit 6094148 into main Apr 15, 2025
4 of 5 checks passed
@coderabbitai coderabbitai bot mentioned this pull request Sep 16, 2025
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.

3 participants