-
Notifications
You must be signed in to change notification settings - Fork 543
[TOOL-3689] Dashboard: Keep switch in disabled state if field value is empty in Sponsorship rules form #6535
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
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. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6535 +/- ##
=======================================
Coverage 55.02% 55.02%
=======================================
Files 881 881
Lines 55304 55304
Branches 3787 3787
=======================================
Hits 30429 30429
Misses 24780 24780
Partials 95 95
🚀 New features to boost your workflow:
|
size-limit report 📦
|
Merge activity
|
…s empty in Sponsorship rules form (#6535) <!-- start pr-codex --> ## PR-Codex overview This PR focuses on improving the handling of various policy attributes in the `transformedQueryData` object within the `AccountAbstractionSettingsPage` component. The changes ensure that only non-empty values are included, addressing potential issues with null or empty arrays. ### Detailed summary - Refactored `transformedQueryData` to filter out empty values from `allowedContractAddresses`, `allowedWallets`, `blockedWallets`, and `allowedChainIds`. - Simplified conditionals for returning values by directly using filtered results. - Updated the handling of `allowedChainIds` to default to an empty array instead of null. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
958e8a1
to
69927c9
Compare
…s empty in Sponsorship rules form (#6535) <!-- start pr-codex --> ## PR-Codex overview This PR focuses on improving the handling of various policy attributes in the `transformedQueryData` object within the `AccountAbstractionSettingsPage` component. The changes ensure that only non-empty values are included, addressing potential issues with null or empty arrays. ### Detailed summary - Refactored `transformedQueryData` to filter out empty values from `allowedContractAddresses`, `allowedWallets`, `blockedWallets`, and `allowedChainIds`. - Simplified conditionals for returning values by directly using filtered results. - Updated the handling of `allowedChainIds` to default to an empty array instead of null. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
…s empty in Sponsorship rules form (#6535) <!-- start pr-codex --> ## PR-Codex overview This PR focuses on improving the `transformedQueryData` computation by filtering out empty values from the `policy` properties. It enhances data handling for `allowedContractAddresses`, `allowedWallets`, `blockedWallets`, and `allowedChainIds`, ensuring cleaner and more accurate data is returned. ### Detailed summary - Refactored `transformedQueryData` to filter out empty values from `allowedContractAddresses`, `allowedWallets`, `blockedWallets`, and `allowedChainIds`. - Simplified return conditions for these properties. - Changed handling of `allowedChainIds` to return an empty array instead of null to prevent API issues. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
751044a
to
f1df19e
Compare
PR-Codex overview
This PR focuses on refactoring the data transformation logic in the
transformedQueryData
object to improve the handling ofallowedContractAddresses
,allowedWallets
,blockedWallets
, andallowedChainIds
, ensuring that empty values are filtered out properly.Detailed summary
transformedQueryData
to filter out empty strings and zeros fromallowedContractAddresses
,allowedWallets
,blockedWallets
, andallowedChainIds
.allowedChainIds
defaults to an empty array instead of null in the parsed values.