Skip to content
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

feat: Add moveBefore and moveAfter for array-nature collection #31

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

tangentlin
Copy link
Owner

feat: Add moveBefore and moveAfter for array-nature collection

Summary:

  • Add moveBefore and moveAfter API on IndexedCollection
  • Additional documentations on SignalObserver

Test Plan:

  • Verify unit tests have passed
  • Create a collection with nature as Array
  • Populate the collection with a sequence of items
  • Call moveBefore or moveAfter API
  • Verify the .items property reflect the movement

Summary:
* Add moveBefore and moveAfter API on IndexedCollection
* Additional documentations on SignalObserver

Test Plan:
* Verify unit tests have passed
* Create a collection with nature as Array
* Populate the collection with a sequence of items
* Call moveBefore or moveAfter API
* Verify the .items property reflect the movement
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 80.00000% with 6 lines in your changes are missing coverage. Please review.

Project coverage is 94.64%. Comparing base (6e91bfe) to head (1fe75b2).

Files Patch % Lines
src/core/internals/InternalSetList.ts 0.00% 4 Missing ⚠️
src/collections/IndexedCollectionBase.ts 50.00% 2 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #31      +/-   ##
==========================================
- Coverage   95.24%   94.64%   -0.61%     
==========================================
  Files          18       18              
  Lines         421      448      +27     
  Branches       68       70       +2     
==========================================
+ Hits          401      424      +23     
- Misses         12       16       +4     
  Partials        8        8              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tangentlin tangentlin merged commit 5cff501 into main Mar 22, 2024
1 check passed
@tangentlin tangentlin deleted the pr31 branch March 22, 2024 15:45
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.

2 participants