fix: handles premium integrations based on release and license flags#39982
fix: handles premium integrations based on release and license flags#39982
Conversation
WalkthroughThis pull request introduces the Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant E as EmptySearchedPlugins
participant S as useSelector
participant F as Feature Flag
U->>E: Render Component
E->>S: Query "license_external_saas_plugins_enabled" status
S-->>E: Return flag status (false)
E->>E: Evaluate (isExternalSaasEnabled OR isIntegrationsEnabledForPaid)
E->>Premium: Filter premium integrations based on flag
Assessment against linked issues
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (5)
🔇 Additional comments (2)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
app/client/src/pages/Editor/IntegrationEditor/PremiumDatasources/index.tsx
Show resolved
Hide resolved
|
/build-deploy-preview skip-tests=true |
|
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/14171067042. |
|
Deploy-Preview-URL: https://ce-39982.dp.appsmith.com |
|
/build-deploy-preview skip-tests=true |
|
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/14192644109. |
|
Deploy-Preview-URL: https://ce-39982.dp.appsmith.com |
…ppsmithorg#39982) ## Description This Pr ensures that both release_external_saas_plugins_enabled and license_external_saas_plugins_enabled flags are being used for the frontend code as well where we show upcoming sections and premium tags Fixes appsmithorg#39738 _or_ Fixes `Issue URL` > [!WARNING] > _If no issue exists, please create an issue first, and check with the maintainers if the issue is valid._ ## Automation /ok-to-test tags="@tag.Datasource" ### 🔍 Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/14191640435> > Commit: e35e943 > <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=14191640435&attempt=1" target="_blank">Cypress dashboard</a>. > Tags: `@tag.Datasource` > Spec: > <hr>Tue, 01 Apr 2025 09:53:12 UTC <!-- end of auto-generated comment: Cypress test results --> ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [x] No <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a configurable flag that manages premium integration options for external SaaS plugins, set to off by default. - Added checks for premium integrations based on the new feature flag in relevant components. - **Refactor** - Streamlined naming and logic for integration controls to enhance clarity in displaying premium plugins and data sources. - Improved error handling when accessing plugin icons to prevent runtime errors. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: “sneha122” <“sneha@appsmith.com”>
Description
This Pr ensures that both release_external_saas_plugins_enabled and license_external_saas_plugins_enabled flags are being used for the frontend code as well where we show upcoming sections and premium tags
Fixes #39738
or
Fixes
Issue URLWarning
If no issue exists, please create an issue first, and check with the maintainers if the issue is valid.
Automation
/ok-to-test tags="@tag.Datasource"
🔍 Cypress test results
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/14191640435
Commit: e35e943
Cypress dashboard.
Tags:
@tag.DatasourceSpec:
Tue, 01 Apr 2025 09:53:12 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit
New Features
Refactor