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

chore: remove the trial expiry banner on logout #6212

Merged
merged 2 commits into from
Oct 18, 2024

Conversation

vikrantgupta25
Copy link
Collaborator

@vikrantgupta25 vikrantgupta25 commented Oct 17, 2024

Summary

  • remove the trial expiry banner when user is logged out. ( currently it goes away when we reload as the license data call takes care of it. made the change to hide it even without reload )

Related Issues / PR's

Screenshots

Screen.Recording.2024-10-18.at.12.44.17.AM.mov

Affected Areas and Manually Tested Areas

  • trial banner logged in and logged out state

Important

Adds useEffect in AppLayout to hide the trial expiry banner on logout.

  • Behavior:
    • Adds useEffect in AppLayout to hide the trial expiry banner when isLoggedIn is false.

This description was created by Ellipsis for d50fb27. It will automatically update as commits are pushed.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Reviewed everything up to d50fb27 in 8 seconds

More details
  • Looked at 18 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. frontend/src/container/AppLayout/index.tsx:214
  • Draft comment:
    Consider adding a comment to explain the useEffect dependency on isLoggedIn for better readability and maintainability.
  • Reason this comment was not posted:
    Confidence changes required: 20%
    The useEffect hook for hiding the trial expiry banner on logout is correctly implemented, but it could be optimized for readability.

Workflow ID: wflow_eomu3MWtwoTpCndR


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

@github-actions github-actions bot added the chore label Oct 17, 2024
Copy link

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

1 similar comment
Copy link

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

@shivanshuraj1333
Copy link
Member

needs rebase with devlop for ci to pass...

@vikrantgupta25 vikrantgupta25 merged commit 0dec94a into develop Oct 18, 2024
13 checks passed
@vikrantgupta25 vikrantgupta25 deleted the trial-expiry-banner-logout branch October 18, 2024 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants