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

Add a useSelection hook #4067

Merged
merged 1 commit into from
Jun 14, 2024
Merged

Add a useSelection hook #4067

merged 1 commit into from
Jun 14, 2024

Conversation

bjoernricks
Copy link
Contributor

What

Add a useSelection hook

Why

The useSelection hook implements the entity selection at a entities list table. It is possible to select/deselect specific entities from the list/table, to select all entities displayed at the page or all entities for the current filter (filter without rows value applied).

References

HOCless entities pages

Checklist

  • Tests

@bjoernricks bjoernricks requested a review from a team as a code owner June 13, 2024 13:35
Copy link

github-actions bot commented Jun 13, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA 17559ad.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

@bjoernricks bjoernricks enabled auto-merge (rebase) June 13, 2024 13:35
Copy link

github-actions bot commented Jun 13, 2024

Conventional Commits Report

Type Number
Added 1

🚀 Conventional commits found.

Copy link

codecov bot commented Jun 13, 2024

Codecov Report

Attention: Patch coverage is 96.55172% with 2 lines in your changes missing coverage. Please review.

Project coverage is 72.66%. Comparing base (5a78a99) to head (17559ad).

Files Patch % Lines
src/web/hooks/useSelection.js 96.55% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4067      +/-   ##
==========================================
+ Coverage   72.65%   72.66%   +0.01%     
==========================================
  Files        1062     1063       +1     
  Lines      120912   120970      +58     
  Branches     5990     6001      +11     
==========================================
+ Hits        87843    87899      +56     
- Misses      33040    33041       +1     
- Partials       29       30       +1     

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

The useSelection hook implements the entity selection at a entities list
table. It is possible to select/deselect specific entities from the
list/table, to select all entities displayed at the page or all entities
for the current filter (filter without rows value applied).
@bjoernricks bjoernricks marked this pull request as draft June 13, 2024 14:10
auto-merge was automatically disabled June 13, 2024 14:10

Pull request was converted to draft

@bjoernricks bjoernricks marked this pull request as ready for review June 13, 2024 14:12
@bjoernricks bjoernricks enabled auto-merge (rebase) June 13, 2024 14:12
@bjoernricks bjoernricks merged commit 2528ea5 into main Jun 14, 2024
13 checks passed
@bjoernricks bjoernricks deleted the use-selection branch June 14, 2024 07:42
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