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

fix(RHINENG-11976): fix loading states across app #1300

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xmicha82
Copy link
Contributor

Description

Fix loading states across app to better reflect loading components

Associated Jira ticket: RHINENG-11976

How to test the PR

Affected pages:
/recommendations - Pathways tab
/recommendation/:id - loading spinner while the tables in the tabs are loading
/topics - table
/topics/:id - rules table
/systems/:id - header, table

Checklist:

  • The commit message has the Jira ticket linked
  • PR has a short description
  • Screenshots before and after the change are added
  • Tests for the changes have been added
  • README.md is updated if necessary
  • Needs additional dependent work

@xmicha82 xmicha82 requested a review from a team as a code owner October 17, 2024 09:36
Copy link

codecov bot commented Oct 17, 2024

Codecov Report

Attention: Patch coverage is 0% with 9 lines in your changes missing coverage. Please review.

Project coverage is 22.19%. Comparing base (4cd0f99) to head (8e4e330).

Files with missing lines Patch % Lines
...entationalComponents/Inventory/InventoryDetails.js 0.00% 2 Missing ⚠️
.../PresentationalComponents/RulesTable/RulesTable.js 0.00% 2 Missing ⚠️
...resentationalComponents/TopicsTable/TopicsTable.js 0.00% 2 Missing ⚠️
...ntationalComponents/PathwaysTable/PathwaysTable.js 0.00% 1 Missing ⚠️
src/SmartComponents/Recs/List.js 0.00% 1 Missing ⚠️
src/SmartComponents/SystemAdvisor/SystemAdvisor.js 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1300      +/-   ##
==========================================
- Coverage   22.22%   22.19%   -0.04%     
==========================================
  Files          96       96              
  Lines        2560     2564       +4     
  Branches      811      811              
==========================================
  Hits          569      569              
- Misses       1991     1995       +4     

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

Copy link
Member

@leSamo leSamo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a step in the right direction, I added some suggestions; I'd say the ideal state is to remove the Loading component since it's super ugly and replace all occurrences of SkeletonTable from FEC to PF component groups. This can be done in a single or multiple PRs.

@xmicha82 xmicha82 force-pushed the loading-states branch 2 times, most recently from a58a349 to 9125a1f Compare November 12, 2024 12:19
@xmicha82 xmicha82 force-pushed the loading-states branch 2 times, most recently from 9712076 to 5f5c5bd Compare November 20, 2024 12:44
@Fewwy
Copy link
Contributor

Fewwy commented Nov 21, 2024

/retest

@xmicha82 xmicha82 force-pushed the loading-states branch 2 times, most recently from ff4d7be to 359716e Compare November 28, 2024 09:56
@xmicha82
Copy link
Contributor Author

/retest

@leSamo
Copy link
Member

leSamo commented Nov 29, 2024

Nice improvements, I just added some minor comments to fix.

@xmicha82 xmicha82 force-pushed the loading-states branch 2 times, most recently from f7c7798 to 843ad04 Compare December 11, 2024 10:20
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am surprised these massive changes to package-lock.json are really necessary. As I can see from package.json, we have only added the @patternfly/react-component-groups library. Could you please double-check if dependencies are updated correctly?

@gkarat gkarat added the bug Something isn't working label Dec 17, 2024
@xmicha82 xmicha82 force-pushed the loading-states branch 4 times, most recently from 9ec29c9 to 8e4e330 Compare January 8, 2025 13:35
@xmicha82 xmicha82 requested review from leSamo and gkarat January 9, 2025 09:28
@leSamo
Copy link
Member

leSamo commented Jan 9, 2025

I agree with Georgii, package.json and package-lock.json do not correspond to one another -- the easiest fix would be to revert changes to both files and install @patternfly/react-component-groups again.

@leSamo
Copy link
Member

leSamo commented Jan 9, 2025

Other than that the PR is good to be merged IMO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants