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: Remove 'Soon' integrations from Settings when disabled #7259

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

RaulErnesto08
Copy link
Contributor

Description

This PR addresses issue #7110, where Airtable, Stripe and PostgreSQL integrations were showing as "Soon" under Settings > Integrations.

Changes

  • Update getSettingsIntegrationAll so that when these integrations are disabled (via feature flags), they are removed from the list instead of showing as "Soon".
Screenshot 2024-09-25 at 11 21 07 a m
  • Tweaked useSettingsIntegrationCategories to only show the "All" category if there's at least one integration enabled.
Screenshot 2024-09-25 at 11 21 15 a m

Notes

This is my first contribution to the project, so I'm open to feedback! 😄
Let me know if there's anything I should tweak or improve.

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This pull request addresses issue #7110 by removing 'Soon' integrations (Airtable, Stripe, and PostgreSQL) from the Settings > Integrations page when they are disabled.

  • Modified getSettingsIntegrationAll in /packages/twenty-front/src/modules/settings/integrations/utils/getSettingsIntegrationAll.ts to conditionally include integrations based on their enabled status
  • Updated useSettingsIntegrationCategories in /packages/twenty-front/src/modules/settings/integrations/hooks/useSettingsIntegrationCategories.ts to only show the "All" category if there's at least one integration enabled
  • Simplified integration types to 'Active' or 'Add', removing the 'Soon' status
  • Improved user experience by displaying only available integrations in the settings

2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings

Copy link
Contributor

@bosiraphael bosiraphael left a comment

Choose a reason for hiding this comment

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

LGTM, thank you @RaulErnesto08 for your contribution

@bosiraphael bosiraphael merged commit d504a6c into twentyhq:main Sep 26, 2024
5 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants