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 TPA skeleton loader #1189

Merged
merged 2 commits into from
Mar 6, 2024
Merged

Conversation

zainab-amir
Copy link
Contributor

@zainab-amir zainab-amir commented Mar 5, 2024

Description

There are two changes in this PR

JIRA

VAN-1837

How Has This Been Tested?

Locally

Screenshots/sandbox (optional):

Before After
Screenshot 2024-03-05 at 10 25 35 AM Screenshot 2024-03-05 at 10 25 14 AM

Merge Checklist

  • If your update includes visual changes, have they been reviewed by a designer? Send them a link to the Sandbox, if applicable.
  • Is there adequate test coverage for your changes?

Post-merge Checklist

  • Deploy the changes to prod after verifying on stage or ask @openedx/2u-vanguards to do it.
  • 🎉 🙌 Celebrate! Thanks for your contribution.

@zainab-amir zainab-amir requested a review from a team as a code owner March 5, 2024 07:04
@zainab-amir zainab-amir changed the title Zamir/van 1837/fix tpa skeleton Fix TPA skeleton loader Mar 5, 2024
@zainab-amir zainab-amir force-pushed the zamir/VAN-1837/fix_tpa_skeleton branch from 6aab063 to 1227568 Compare March 5, 2024 08:06
Copy link

codecov bot commented Mar 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.22%. Comparing base (6695fb6) to head (3b6778e).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1189      +/-   ##
==========================================
+ Coverage   84.20%   84.22%   +0.01%     
==========================================
  Files         126      126              
  Lines        2393     2396       +3     
  Branches      679      680       +1     
==========================================
+ Hits         2015     2018       +3     
  Misses        358      358              
  Partials       20       20              

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

@zainab-amir zainab-amir force-pushed the zamir/VAN-1837/fix_tpa_skeleton branch from 1227568 to 7173933 Compare March 5, 2024 08:31
Copy link
Contributor

@arbrandes arbrandes left a comment

Choose a reason for hiding this comment

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

Checking intended behavior.

<Icon src={Institution} className="institute-icon" />
{formatMessage(messages['enterprise.login.btn.text'])}
</Hyperlink>
)}

{thirdPartyAuthApiStatus === PENDING_STATE ? (
<Skeleton className="tpa-skeleton" height={36} count={2} />
{thirdPartyAuthApiStatus === PENDING_STATE || true ? (
Copy link
Contributor

Choose a reason for hiding this comment

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

If I'm not mistaken, this expression will always evaluate to true because === has a higher precedence than || (reference). Is it the intended behavior?

Copy link
Contributor Author

@zainab-amir zainab-amir Mar 5, 2024

Choose a reason for hiding this comment

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

This was my testing code and was accidentally merged. The latest commit in the PR doesn't have it.

@zainab-amir zainab-amir force-pushed the zamir/VAN-1837/fix_tpa_skeleton branch from 380c7c4 to 3b6778e Compare March 6, 2024 12:50
@zainab-amir zainab-amir requested a review from arbrandes March 6, 2024 12:57
@zainab-amir zainab-amir merged commit 8be350e into master Mar 6, 2024
7 checks passed
@zainab-amir zainab-amir deleted the zamir/VAN-1837/fix_tpa_skeleton branch March 6, 2024 14:11
syedsajjadkazmii pushed a commit to DmytroAlipov/frontend-app-authn that referenced this pull request Mar 11, 2024
* feat: update TPA skeleton
* fix: Prevent wrong appearance of skeleton after second tab click

---------

Co-authored-by: Stanislav Lunyachek <[email protected]>
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.

3 participants