Skip to content

feat(example): integrate dragon logs#177

Merged
CharlVS merged 1 commit intoadd/flutter-web-wasmfrom
codex/integrate-dragon_logs-into-sdk-example-app
Aug 5, 2025
Merged

feat(example): integrate dragon logs#177
CharlVS merged 1 commit intoadd/flutter-web-wasmfrom
codex/integrate-dragon_logs-into-sdk-example-app

Conversation

@CharlVS
Copy link
Copy Markdown
Collaborator

@CharlVS CharlVS commented Aug 5, 2025

Summary

  • integrate dragon_logs into the SDK example app and expose a log export option

Testing

  • flutter analyze | tail -n 20
  • flutter test packages/dragon_logs/test (fails: cannot run without a dependency on either "package:flutter_test" or "package:test")

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

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Aug 5, 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.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch codex/integrate-dragon_logs-into-sdk-example-app

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

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Bugbot free trial expires on August 9, 2025
Learn more in the Cursor dashboard.

const SnackBar(content: Text('Logs exported')),
);
},
),
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Bug: Log Export Button Missing Error Handling

The 'Export Logs' button's onPressed callback lacks error handling for the dragon.DragonLogs.exportLogsToDownload() operation. If the log export fails (throws an exception), the success SnackBar is not displayed, no error feedback is provided to the user, and the unhandled exception can cause the application to crash. A try-catch block is needed to handle failures gracefully and provide appropriate user feedback.

Fix in Cursor Fix in Web

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Aug 5, 2025

Visit the preview URL for this PR (updated for commit 204c953):

https://komodo-defi-sdk--pr177-codex-integrate-drag-f2zz6nmh.web.app

(expires Tue, 12 Aug 2025 20:05:08 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 7f9f5ac39928f333b6e8fcefb7138575e24ed347

@CharlVS CharlVS merged commit 8f180f4 into add/flutter-web-wasm Aug 5, 2025
4 of 6 checks passed
@CharlVS CharlVS deleted the codex/integrate-dragon_logs-into-sdk-example-app branch August 5, 2025 22:08
CharlVS added a commit that referenced this pull request Aug 5, 2025
* fix(types): comprehensive bip39 validation

* fix(market-data-price): try fetch current price from komodo price repository first before cex repository (#167)

* fix(market-data-manager): default to KomodoPriceRepository

Binance CexRepository supports a limited number of symbols and no longer lists KMD price history after the delisting

* refactor(market-data-manager): deduplicate and clarify intent

* refactor(review): remove zero check and add log statements

also simplify the priceIfKnown function

* chore: switch KDF to `dev`

Switch KDF to `dev` to allow usage of unreleased changes (particularly related to fees/priorities)

* feat: add Flutter Web WASM support with OPFS interop extensions

This commit implements comprehensive Flutter Web WASM support by:

- Adding opfs_interop.dart with FileSystemDirectoryHandle extensions for values(), keys(), and entries() methods
- Implementing JSAsyncIterator type definitions for proper JavaScript interop
- Creating WebLogStorageWasm implementation compatible with both JS and WASM targets
- Consolidating platform implementations to use unified WASM-compatible storage
- Removing redundant WebLogStorage in favor of cross-compatible implementation
- Updating platform configuration files for seamless WASM integration

The implementation provides backwards compatibility with JavaScript compilation while
enabling full WASM support through browser File System APIs that work consistently
across both compilation targets.

BREAKING CHANGE: WebLogStorage class has been removed in favor of WebLogStorageWasm

* Update packages/dragon_logs/lib/src/storage/opfs_interop.dart

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

* docs: update repo url

* docs: remove repo archive notice

* feat(example): integrate dragon_logs (#177)

* fix: dart wasm type errors

* chore: revert skipped build steps

* fix: add GitHub token authentication to prevent API rate limiting

Add GitHub authentication token support across all components that make
GitHub API requests to resolve rate limiting issues during builds.

Changes:
- feat(coin-updates): add githubToken parameter to CoinConfigProvider
- feat(coin-updates): support GitHub auth in CoinConfigRepository.withDefaults
- fix(build-transformer): add debug logging for GitHub API authentication
- fix(wallet-cli): auto-use GITHUB_API_PUBLIC_READONLY_TOKEN env variable
- style(build-transformer): fix lint issues with cascade operations

The CoinConfigProvider was making unauthenticated GitHub API requests,
contributing to rate limit errors. All GitHub API clients now properly
use the GITHUB_API_PUBLIC_READONLY_TOKEN environment variable when
available, increasing rate limits from 60 to 5,000 requests per hour.

Fixes: Rate limit exceeded errors during build process

* chore(kdf): roll KDF to latest `dev`

Roll KDF to the latest `dev` to ensure we are using the latest revision of all unreleased features.

* fix: apply cursor fixes

---------

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.

1 participant