-
Notifications
You must be signed in to change notification settings - Fork 618
[CORE-645] Nebula - Add active chain in context filters #5782
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CORE-645] Nebula - Add active chain in context filters #5782
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
size-limit report 📦
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5782 +/- ##
=======================================
Coverage 52.99% 52.99%
=======================================
Files 1102 1102
Lines 59107 59107
Branches 4809 4809
=======================================
Hits 31323 31323
Misses 27066 27066
Partials 718 718
*This pull request uses carry forward flags. Click here to find out more. |
ea0c5ba to
77c8836
Compare
Merge activity
|
## Problem solved
Short description of the bug fixed or feature added
<!-- start pr-codex -->
---
## PR-Codex overview
This PR enhances the `ChatPageContent` component by integrating the `useActiveWalletChain` hook, which allows the component to manage context filters based on the user's active wallet chain. It refines state management and ensures context filters are updated appropriately.
### Detailed summary
- Added `useActiveWalletChain` to track the active wallet chain.
- Renamed the state variable `_contextFilters` to `contextFilters`.
- Updated the `setContextFilters` function to use `useCallback`.
- Modified the logic to update context filters based on active wallet address and chain ID.
- Simplified the effect to set context filters conditionally based on user interactions and active chain.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
77c8836 to
ecb4571
Compare

Problem solved
Short description of the bug fixed or feature added
PR-Codex overview
This PR enhances the
ChatPageContentcomponent by integrating theuseActiveWalletChainhook, improving context filter management, and ensuring the current user's wallet address and chain ID are correctly set in the context filters.Detailed summary
useActiveWalletChainto retrieve the active wallet chain._contextFilterstocontextFiltersfor clarity.setContextFiltersto auseCallbackfunction.