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

Refactor PortLists page to a HOC less entities page #4074

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

bjoernricks
Copy link
Contributor

What

Refactor PortLists page to a HOC less entities page

Why

Use the PortLists page as an example on howto refactor an entities page to use the new hooks instead of the withEntitiesContainer HOC. Despite having some more lines of code it should be easier to understand then before.

References

HOC less entities pages

@bjoernricks bjoernricks requested a review from a team as a code owner June 18, 2024 09:03
@bjoernricks bjoernricks enabled auto-merge (rebase) June 18, 2024 09:03
Copy link

github-actions bot commented Jun 18, 2024

Dependency Review

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

Snapshot Warnings

⚠️: No snapshots were found for the head SHA 03bab8c.
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

Copy link

Conventional Commits Report

Type Number
Changed 1

🚀 Conventional commits found.

Copy link

codecov bot commented Jun 18, 2024

Codecov Report

Attention: Patch coverage is 12.41611% with 261 lines in your changes missing coverage. Please review.

Project coverage is 72.33%. Comparing base (0347710) to head (762f9ab).

Current head 762f9ab differs from pull request most recent head 03bab8c

Please upload reports for the commit 03bab8c to get more accurate results.

Files Patch % Lines
src/web/pages/portlists/listpage.jsx 12.41% 261 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4074      +/-   ##
==========================================
- Coverage   72.46%   72.33%   -0.13%     
==========================================
  Files        1068     1067       -1     
  Lines      122035   122245     +210     
  Branches     6059     6060       +1     
==========================================
- Hits        88432    88431       -1     
- Misses      33572    33783     +211     
  Partials       31       31              

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

@bjoernricks bjoernricks force-pushed the hoc-less-port-lists-entities-page branch from 4434343 to 762f9ab Compare June 19, 2024 06:39
Use the PortLists page as an example on howto refactor an entities page
to use the new hooks instead of the withEntitiesContainer HOC. Despite
having some more lines of code it should be easier to understand then
before.
@bjoernricks bjoernricks force-pushed the hoc-less-port-lists-entities-page branch from 762f9ab to 03bab8c Compare June 19, 2024 09:02
@bjoernricks bjoernricks merged commit 5d09434 into main Jun 19, 2024
11 checks passed
@bjoernricks bjoernricks deleted the hoc-less-port-lists-entities-page branch June 19, 2024 09:10
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