Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/client/src/ce/constants/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2628,6 +2628,7 @@ export const PREMIUM_DATASOURCES = {
COMING_SOON_DESCRIPTION: () =>
"This integration is currently in development. Submit your email below to be notified as soon as it’s available.",
NOTIFY_ME: () => "Notify me",
BETA_TAG: () => "Beta",
};

export const DATASOURCE_SECURE_TEXT = () =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import {
DatasourceSection,
DatasourceSectionHeading,
StyledDivider,
BetaTag,
} from "./IntegrationStyledComponents";
import { ASSETS_CDN_URL } from "constants/ThirdPartyConstants";
import DatasourceItem from "./DatasourceItem";
Expand All @@ -38,11 +39,13 @@ import {
CREATE_NEW_DATASOURCE_REST_API,
CREATE_NEW_SAAS_SECTION_HEADER,
createMessage,
PREMIUM_DATASOURCES,
} from "ee/constants/messages";
import scrollIntoView from "scroll-into-view-if-needed";
import PremiumDatasources from "./PremiumDatasources";
import { pluginSearchSelector } from "./CreateNewDatasourceHeader";
import {
BETA_PLUGINS,
getFilteredPremiumIntegrations,
type PremiumIntegration,
} from "./PremiumDatasources/Constants";
Expand Down Expand Up @@ -229,7 +232,16 @@ function APIOrSaasPlugins(props: CreateAPIOrSaasPluginsProps) {
icon={getAssetUrl(p.iconLocation)}
key={p.id}
name={p.name}
rightSibling={isCreating && <Spinner className="cta" size={"sm"} />}
rightSibling={
<>
{BETA_PLUGINS.includes(p.name) ? (
<BetaTag isClosable={false}>
{createMessage(PREMIUM_DATASOURCES.BETA_TAG)}
</BetaTag>
) : null}
{isCreating && <Spinner className="cta" size={"sm"} />}
</>
}
/>
))}
<PremiumDatasources plugins={props.premiumPlugins} />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Divider, Text } from "@appsmith/ads";
import { Divider, Tag, Text } from "@appsmith/ads";
import styled from "styled-components";

export const StyledDivider = styled(Divider)`
Expand Down Expand Up @@ -71,3 +71,14 @@ export const DatasourceDescription = styled.div`
font-weight: var(--ads-v2-font-weight-normal);
line-height: var(--ads-v2-line-height-2);
`;

export const BetaTag = styled(Tag)`
color: var(--ads-v2-color-gray-700);
border-color: #36425233;
padding: var(--ads-v2-spaces-3) var(--ads-v2-spaces-2);
text-transform: uppercase;
> span {
font-weight: 700;
font-size: 10px;
}
`;
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,5 @@ export const PREMIUM_INTEGRATION_CONTACT_FORM =

export const SCHEDULE_CALL_URL =
"https://calendly.com/carina-neves-fonseca/appsmith";

export const BETA_PLUGINS = ["Zendesk", "Salesforce", "Slack"];
Comment thread
sneha122 marked this conversation as resolved.
Outdated