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: Disable invite button when email config is not set #5022

Merged
merged 9 commits into from
Jan 22, 2025

Conversation

tiagoapolo
Copy link
Contributor

Thanks for submitting a PR! Please check the boxes below:

  • I have added information to docs/ if required so people know about the feature!
  • I have filled in the "Changes" section below?
  • I have filled in the "How did you test this code" section below?
  • I have used a Conventional Commit title for this Pull Request

Changes

  • Disables button when email provider is not set
  • Shows tooltip text
  • adds has_email_provider field to /version, that checks if email config was set.
Screenshot 2025-01-20 at 18 14 58

How did you test this code?

  • API test for /version
  • Manually tested in UI, access /account with no email config set in API, invite member button should be disabled and tooltip is shown when hovering.

@tiagoapolo tiagoapolo self-assigned this Jan 20, 2025
@tiagoapolo tiagoapolo requested review from a team as code owners January 20, 2025 21:24
@tiagoapolo tiagoapolo requested review from kyle-ssg and zachaysan and removed request for a team January 20, 2025 21:24
Copy link

vercel bot commented Jan 20, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs ⬜️ Ignored (Inspect) Visit Preview Jan 22, 2025 4:47pm
flagsmith-frontend-preview ⬜️ Ignored (Inspect) Visit Preview Jan 22, 2025 4:47pm
flagsmith-frontend-staging ⬜️ Ignored (Inspect) Visit Preview Jan 22, 2025 4:47pm

@github-actions github-actions bot added front-end Issue related to the React Front End Dashboard api Issue related to the REST API labels Jan 20, 2025
@tiagoapolo tiagoapolo requested a review from khvn26 January 20, 2025 21:24
@github-actions github-actions bot added the fix label Jan 20, 2025
Copy link
Contributor

github-actions bot commented Jan 20, 2025

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-e2e:pr-5022 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-api-test:pr-5022 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-frontend:pr-5022 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-api:pr-5022 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-private-cloud:pr-5022 Finished ✅ Results
ghcr.io/flagsmith/flagsmith:pr-5022 Finished ✅ Results

Copy link
Contributor

Uffizzi Ephemeral Environment Deploying

☁️ https://app.uffizzi.com/github.com/Flagsmith/flagsmith/pull/5022

⚙️ Updating now by workflow run 12875904544.

What is Uffizzi? Learn more!

Copy link
Contributor

github-actions bot commented Jan 20, 2025

Uffizzi Preview deployment-60103 was deleted.

Copy link

codecov bot commented Jan 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.40%. Comparing base (4702aaa) to head (44e8ee9).
Report is 7 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5022   +/-   ##
=======================================
  Coverage   97.40%   97.40%           
=======================================
  Files        1192     1193    +1     
  Lines       41657    41667   +10     
=======================================
+ Hits        40574    40585   +11     
+ Misses       1083     1082    -1     

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

@tiagoapolo tiagoapolo force-pushed the fix/4036--check-email-config-is-set branch from 8c76462 to 8c3e355 Compare January 20, 2025 21:53
@github-actions github-actions bot added fix and removed fix labels Jan 20, 2025
@tiagoapolo tiagoapolo force-pushed the fix/4036--check-email-config-is-set branch from 7900781 to 4d4a569 Compare January 21, 2025 13:54
@github-actions github-actions bot added fix and removed fix labels Jan 21, 2025
Copy link
Member

@kyle-ssg kyle-ssg left a comment

Choose a reason for hiding this comment

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

FE looks fine but looks like there's some api unit test failures

Copy link
Contributor

@zachaysan zachaysan left a comment

Choose a reason for hiding this comment

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

Overall looks good, but I have one major point of feedback for the tests.

@tiagoapolo tiagoapolo force-pushed the fix/4036--check-email-config-is-set branch from 66006f5 to e4a5b7b Compare January 21, 2025 16:45
@github-actions github-actions bot added fix and removed fix labels Jan 21, 2025
@github-actions github-actions bot added the fix label Jan 22, 2025
@khvn26 khvn26 force-pushed the fix/4036--check-email-config-is-set branch from 86e6d5d to 3adb640 Compare January 22, 2025 13:31
@github-actions github-actions bot added fix and removed fix labels Jan 22, 2025
@khvn26 khvn26 force-pushed the fix/4036--check-email-config-is-set branch from 6ab0906 to d07d0a8 Compare January 22, 2025 13:50
@github-actions github-actions bot added fix and removed fix labels Jan 22, 2025
@github-actions github-actions bot added fix and removed fix labels Jan 22, 2025
@tiagoapolo tiagoapolo force-pushed the fix/4036--check-email-config-is-set branch from 660d3e0 to 9afc7f9 Compare January 22, 2025 13:57
@github-actions github-actions bot added fix and removed fix labels Jan 22, 2025
@khvn26 khvn26 force-pushed the fix/4036--check-email-config-is-set branch from 0909ad5 to 660d3e0 Compare January 22, 2025 14:06
@github-actions github-actions bot added fix and removed fix labels Jan 22, 2025
@github-actions github-actions bot added fix and removed fix labels Jan 22, 2025
@github-actions github-actions bot added fix and removed fix labels Jan 22, 2025
@tiagoapolo tiagoapolo merged commit 2faca89 into main Jan 22, 2025
37 checks passed
@tiagoapolo tiagoapolo deleted the fix/4036--check-email-config-is-set branch January 22, 2025 19:48
@matthewelwell matthewelwell linked an issue Jan 27, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Issue related to the REST API fix front-end Issue related to the React Front End Dashboard
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't show 'Invite members' if email is not set up
5 participants