Repository navigation
refactor: cleanup js - #396
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## tests/js-backports #396 +/- ##
========================================================
+ Coverage 86.21% 90.77% +4.56%
- Complexity 0 887 +887
========================================================
Files 14 51 +37
Lines 631 3338 +2707
Branches 190 190
========================================================
+ Hits 544 3030 +2486
- Misses 33 254 +221
Partials 54 54
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Kallyan01
approved these changes
Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Brings the settings screen code in line with OneDesign:
@wordpress/dependency-groupESLint rule and its "External / WordPress / Internal dependencies" comment blocks are gone, so each file has one block of imports.@wordpress/elementinstead ofreact./onesearch/v1/...paths, andrestNamespaceis gone from the localizedOneSearchSettings.Why
Related Issue(s):
setUpin docblocks)@wordpress/element)restNamespace)How
test_registering_a_script_again_keeps_its_dependencies(), andtest_get_localized_data_returns_expected_keys()comparesarray_keys()withassertEqualsCanonicalizing().../js/utilsimports switch to@/js/utils.apiFetchcalls use/onesearch/v1/...directly.AI Disclosure
Backported initial draft and reviewed with Opus 5.5
Testing Instructions
Screenshots
Additional Info
Checklist