Skip to content

Conversation

jacquesikot
Copy link
Contributor

@jacquesikot jacquesikot commented Jul 15, 2025

Summary

This PR introduces a new premium feature tag for datasources that use paid external SaaS plugins in the DataSidePane. The tag is conditionally displayed based on a new feature flag, allowing for controlled rollout and visibility of premium integrations.


Changes

  • Feature Flag:
    • Added release_paid_features_tagging to the FEATURE_FLAG and DEFAULT_FEATURE_FLAG_VALUE in FeatureFlag.ts.
  • DataSidePane UI:
    • Imported and used the new PremiumFeatureTag component.
    • Added logic to determine if a datasource should display the premium tag:
      • Checks if the new feature flag is enabled.
      • Checks if the datasource's plugin is of type EXTERNAL_SAAS and if the corresponding paid integration feature is disabled.
    • Displays the premium tag in the datasource list for eligible datasources.

Automation

/ok-to-test tags="@tag.Sanity, @tag.Datasource"

🔍 Cypress test results

Tip

🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/16281977131
Commit: f6450ef
Cypress dashboard.
Tags: @tag.Sanity, @tag.Datasource
Spec:


Tue, 15 Jul 2025 02:37:55 UTC

Communication

Should the DevRel and Marketing teams inform users about this change?

  • Yes
  • No

Summary by CodeRabbit

Summary by CodeRabbit

  • New Features

    • Introduced a premium feature tag for certain datasources in the DataSidePane, visible when specific feature flags are enabled.
  • Chores

    • Added a new feature flag to support premium feature tagging.

@jacquesikot jacquesikot self-assigned this Jul 15, 2025
@jacquesikot jacquesikot added the ok-to-test Required label for CI label Jul 15, 2025
Copy link
Contributor

coderabbitai bot commented Jul 15, 2025

Walkthrough

A new feature flag, release_paid_features_tagging, was introduced and integrated into the DataSidePane component. Logic was added to conditionally display a premium feature tag for certain datasources based on this flag and plugin type, leveraging memoized React hooks for performance.

Changes

File(s) Change Summary
app/client/src/ce/entities/FeatureFlag.ts Added release_paid_features_tagging to feature flags and default values.
app/client/src/pages/Editor/DataSidePane/DataSidePane.tsx Added logic to display a premium feature tag for datasources based on new feature flag and plugin type.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant DataSidePane
    participant FeatureFlag
    participant PluginSelector

    User->>DataSidePane: Open DataSidePane
    DataSidePane->>FeatureFlag: Check 'release_paid_features_tagging' & 'license_external_saas_plugins_enabled'
    DataSidePane->>PluginSelector: Retrieve plugins list
    loop For each datasource
        DataSidePane->>PluginSelector: Find plugin for datasource
        DataSidePane->>FeatureFlag: Check if premium tag should be shown
        alt Should show premium tag
            DataSidePane->>User: Render PremiumFeatureTag
        end
    end
Loading

Possibly related PRs

Suggested labels

Enhancement, Task, Integrations Product, Integrations Pod General

Suggested reviewers

  • jsartisan
  • rahulbarwal

Poem

A flag for features, premium and bright,
Tags now shimmer in the DataSidePane's light.
With hooks and checks, the logic flows,
Marking integrations as the feature grows.
In code we trust, with flags we steer,
Paid features tagged—release is near!


📜 Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7ff2be3 and f6450ef.

📒 Files selected for processing (1)
  • app/client/src/pages/Editor/DataSidePane/DataSidePane.tsx (6 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • app/client/src/pages/Editor/DataSidePane/DataSidePane.tsx
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
  • GitHub Check: perform-test / rts-build / build
  • GitHub Check: perform-test / server-build / server-unit-tests
  • GitHub Check: perform-test / client-build / client-build
  • GitHub Check: client-check-cyclic-deps / check-cyclic-dependencies
  • GitHub Check: client-lint / client-lint
  • GitHub Check: client-unit-tests / client-unit-tests
  • GitHub Check: client-prettier / prettier-check
  • GitHub Check: client-build / client-build
✨ Finishing Touches
  • 📝 Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions bot added the Enhancement New feature or request label Jul 15, 2025
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between c4ed090 and 7ff2be3.

📒 Files selected for processing (2)
  • app/client/src/ce/entities/FeatureFlag.ts (2 hunks)
  • app/client/src/pages/Editor/DataSidePane/DataSidePane.tsx (6 hunks)
🧰 Additional context used
🧠 Learnings (3)
📓 Common learnings
Learnt from: abhvsn
PR: appsmithorg/appsmith#39171
File: app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/FeatureFlagServiceCEImpl.java:42-44
Timestamp: 2025-02-24T05:59:14.021Z
Learning: The reactive transition for helper methods consuming @FeatureFlagged annotations will be handled in a separate PR to maintain focused changes and proper separation of concerns.
Learnt from: Aishwarya-U-R
PR: appsmithorg/appsmith#29405
File: app/client/cypress/e2e/Regression/ClientSide/Binding/TableV2_Widget_API_Pagination_spec.js:37-41
Timestamp: 2024-07-26T21:12:57.228Z
Learning: The pull request titled "test: Cypress | Replace static with Dynamic waits - Part 1" is part of a phased approach where only certain test specifications are targeted for static wait removal in the initial phase. Future phases will address additional specs.
Learnt from: Aishwarya-U-R
PR: appsmithorg/appsmith#29405
File: app/client/cypress/e2e/Regression/ClientSide/Binding/TableV2_Widget_API_Pagination_spec.js:37-41
Timestamp: 2024-10-08T15:32:39.374Z
Learning: The pull request titled "test: Cypress | Replace static with Dynamic waits - Part 1" is part of a phased approach where only certain test specifications are targeted for static wait removal in the initial phase. Future phases will address additional specs.
Learnt from: CR
PR: appsmithorg/appsmith#0
File: .cursor/rules/index.mdc:0-0
Timestamp: 2025-06-23T12:22:10.042Z
Learning: Pull request titles in the Appsmith codebase should follow the Conventional Commits specification, using the format 'type(scope): description' with valid types such as feat, fix, docs, style, refactor, perf, test, build, ci, chore, and revert.
Learnt from: sneha122
PR: appsmithorg/appsmith#29377
File: app/client/src/pages/Editor/IntegrationEditor/CreateNewDatasourceTab.tsx:316-329
Timestamp: 2024-07-26T21:12:57.228Z
Learning: The user clarified that the feature being introduced is experimental and that automated tests will be added once the decision to keep the feature is made. This context is important for future reviews as it explains the absence of tests for certain features under development.
Learnt from: brayn003
PR: appsmithorg/appsmith#38171
File: app/client/src/git/components/DefaultBranch/DefaultBranchCE.tsx:1-14
Timestamp: 2024-12-15T17:45:48.303Z
Learning: In `app/client/src/git/components/DefaultBranch/DefaultBranchCE.tsx`, the feature flag check is performed at a higher level, so it's acceptable to have `isGitProtectedFeatureLicensed={false}` in this component.
Learnt from: albinAppsmith
PR: appsmithorg/appsmith#0
File: :0-0
Timestamp: 2024-07-26T21:12:57.228Z
Learning: The tab click functionality in the `FileTabs` component should work independently of the `release_ide_tabs_revamp_enabled` feature flag to ensure stability.
app/client/src/ce/entities/FeatureFlag.ts (4)
Learnt from: brayn003
PR: appsmithorg/appsmith#38171
File: app/client/src/git/components/DefaultBranch/DefaultBranchCE.tsx:1-14
Timestamp: 2024-12-15T17:45:48.303Z
Learning: In `app/client/src/git/components/DefaultBranch/DefaultBranchCE.tsx`, the feature flag check is performed at a higher level, so it's acceptable to have `isGitProtectedFeatureLicensed={false}` in this component.
Learnt from: abhvsn
PR: appsmithorg/appsmith#39171
File: app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/FeatureFlagServiceCEImpl.java:42-44
Timestamp: 2025-02-24T05:59:14.021Z
Learning: The reactive transition for helper methods consuming @FeatureFlagged annotations will be handled in a separate PR to maintain focused changes and proper separation of concerns.
Learnt from: albinAppsmith
PR: appsmithorg/appsmith#0
File: :0-0
Timestamp: 2024-07-26T21:12:57.228Z
Learning: The tab click functionality in the `FileTabs` component should work independently of the `release_ide_tabs_revamp_enabled` feature flag to ensure stability.
Learnt from: AmanAgarwal041
PR: appsmithorg/appsmith#38110
File: app/client/src/utils/ProductRamps/RampsControlList.ts:36-36
Timestamp: 2024-12-16T17:34:50.458Z
Learning: When adding a new feature to `RAMP_NAME` in `app/client/src/utils/ProductRamps/RampsControlList.ts`, adding it to `PRODUCT_RAMPS_LIST` may not be necessary.
app/client/src/pages/Editor/DataSidePane/DataSidePane.tsx (7)
Learnt from: brayn003
PR: appsmithorg/appsmith#38171
File: app/client/src/git/components/DefaultBranch/DefaultBranchCE.tsx:1-14
Timestamp: 2024-12-15T17:45:48.303Z
Learning: In `app/client/src/git/components/DefaultBranch/DefaultBranchCE.tsx`, the feature flag check is performed at a higher level, so it's acceptable to have `isGitProtectedFeatureLicensed={false}` in this component.
Learnt from: alex-golovanov
PR: appsmithorg/appsmith#33863
File: app/client/src/pages/Editor/DataSourceEditor/DBForm.tsx:93-98
Timestamp: 2024-07-26T21:12:57.228Z
Learning: The suggestion to optimize conditional rendering in `DatasourceDBEditor` is considered out of scope for the current issue related to making text selectable.
Learnt from: alex-golovanov
PR: appsmithorg/appsmith#33863
File: app/client/src/pages/Editor/DataSourceEditor/DBForm.tsx:93-98
Timestamp: 2024-10-08T15:32:34.115Z
Learning: The suggestion to optimize conditional rendering in `DatasourceDBEditor` is considered out of scope for the current issue related to making text selectable.
Learnt from: sharat87
PR: appsmithorg/appsmith#34471
File: app/client/src/ce/api/JSActionAPI.tsx:143-161
Timestamp: 2024-10-08T15:32:39.374Z
Learning: The `updateJSCollectionActionRefactor` method in `JSActionAPI.tsx` includes a check to ensure `action.datasource` is not null before manipulating its properties.
Learnt from: sharat87
PR: appsmithorg/appsmith#34471
File: app/client/src/ce/api/JSActionAPI.tsx:143-161
Timestamp: 2024-06-26T06:22:15.976Z
Learning: The `updateJSCollectionActionRefactor` method in `JSActionAPI.tsx` includes a check to ensure `action.datasource` is not null before manipulating its properties.
Learnt from: albinAppsmith
PR: appsmithorg/appsmith#0
File: :0-0
Timestamp: 2024-07-26T21:12:57.228Z
Learning: The tab click functionality in the `FileTabs` component should work independently of the `release_ide_tabs_revamp_enabled` feature flag to ensure stability.
Learnt from: ankitakinger
PR: appsmithorg/appsmith#37330
File: app/client/src/pages/common/SearchBar/HomepageHeaderAction.tsx:95-95
Timestamp: 2024-11-12T11:42:28.998Z
Learning: In icon provider components within the TypeScript/React codebase, old settings icons like `"settings-2-line"` and `"settings-control"` are intentionally provided alongside new icons. These references are acceptable and should not be flagged for updates.
🧬 Code Graph Analysis (1)
app/client/src/pages/Editor/DataSidePane/DataSidePane.tsx (3)
app/client/src/ce/selectors/entitiesSelector.ts (1)
  • getPlugins (90-91)
app/client/src/ce/entities/FeatureFlag.ts (1)
  • FEATURE_FLAG (2-68)
app/client/src/entities/Datasource/index.ts (1)
  • Datasource (154-162)
🔇 Additional comments (4)
app/client/src/ce/entities/FeatureFlag.ts (1)

67-67: LGTM! Feature flag implementation follows established patterns.

The new feature flag is properly added to both the FEATURE_FLAG object and DEFAULT_FEATURE_FLAG_VALUE with an appropriate default value of false.

Also applies to: 120-120

app/client/src/pages/Editor/DataSidePane/DataSidePane.tsx (3)

9-9: LGTM! Import additions are appropriate.

The new imports for getPlugins, PremiumFeatureTag, PluginType, selectFeatureFlagCheck, and Datasource type are all correctly imported and necessary for the premium tagging functionality.

Also applies to: 33-36


62-62: LGTM! Feature flag setup is properly implemented.

The feature flag checks are correctly implemented using the appropriate selectors and hooks.

Also applies to: 65-70, 86-88


171-173: LGTM! Conditional rendering implementation is correct.

The premium tag is properly rendered as a rightControl when the conditions are met, maintaining clean UI structure.

@ankitakinger
Copy link
Contributor

/build-deploy-preview skip-tests=true

Copy link

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/16288357598.
Workflow: On demand build Docker image and deploy preview.
skip-tests: true.
env: ``.
PR: 41110.
recreate: .

Copy link

Deploy-Preview-URL: https://ce-41110.dp.appsmith.com

@jacquesikot jacquesikot merged commit 16ea831 into release Jul 15, 2025
45 checks passed
@jacquesikot jacquesikot deleted the feat/paid-feature-tag-editor-datasource branch July 15, 2025 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request ok-to-test Required label for CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants