Skip to content

Commit

Permalink
chore: remove all component/files used by mqtt
Browse files Browse the repository at this point in the history
  • Loading branch information
blegesse-w committed Oct 28, 2024
1 parent 29428a2 commit 252d3d1
Show file tree
Hide file tree
Showing 73 changed files with 0 additions and 7,234 deletions.
6 changes: 0 additions & 6 deletions cypress/e2e/cloud/deepLinks.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,6 @@ describe('Deep linking', () => {
cy.visit('/me/tasks')
cy.location('pathname').should('eq', `/orgs/${org.id}/tasks`)

cy.visit('/me/telegraf-mqtt')
cy.location('pathname').should(
'eq',
`/orgs/${org.id}/load-data/telegraf-plugins/mqtt_consumer`
)

cy.visit('/me/telegrafs')
cy.location('pathname').should(
'eq',
Expand Down
1 change: 0 additions & 1 deletion cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1541,7 +1541,6 @@ export const createTaskFromEmpty = (

export const disableClickThroughAnnouncement = () => {
const announcementState = {
mqttEolClickThroughAnnouncement: 'dismissed',
pricingClickThroughAnnouncement: 'dismissed',
}

Expand Down
88 changes: 0 additions & 88 deletions src/flows/templates/types/subscription.ts

This file was deleted.

10 changes: 0 additions & 10 deletions src/homepageExperience/ClickThroughAnnouncementHandler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ import {selectCurrentIdentity} from 'src/identity/selectors'

// Utils
import {showOverlay, dismissOverlay} from 'src/overlays/actions/overlays'
import {isFlagEnabled} from 'src/shared/utils/featureFlag'
import {event} from 'src/cloud/utils/reporting'

export enum AnnouncementID {
MqttEol = 'mqttEolClickThroughAnnouncement',
PriceIncrease = 'pricingClickThroughAnnouncement',
}

Expand Down Expand Up @@ -66,21 +64,13 @@ export const ClickThroughAnnouncementHandler: FC = () => {
}

useEffect(() => {
// MQTT Audience: Cloud users with MQTT feature flag enabled
const isMqttAudience = isFlagEnabled('subscriptionsUI')

// PAYG Pricing Increase Audience: Pay As You Go & Direct Signups
const isPaygAccount = account.type === 'pay_as_you_go'
const isDirectSignup = account.billingProvider === 'zuora'
const isPriceIncreaseAudience = isPaygAccount && isDirectSignup

// Sequentially display announcements in order of priority
if (
isMqttAudience &&
announcementState[AnnouncementID.MqttEol] !== AnnouncementState.Dismissed
) {
handleDisplayAnnouncement(AnnouncementID.MqttEol)
} else if (
isPriceIncreaseAudience &&
announcementState[AnnouncementID.PriceIncrease] !==
AnnouncementState.Dismissed
Expand Down
80 changes: 0 additions & 80 deletions src/homepageExperience/components/HomepageIcons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -658,86 +658,6 @@ export const CLIIcon = (
</svg>
)

export const MQTTIcon = (
<svg
width="60"
height="60"
viewBox="0 0 60 60"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<g filter="url(#filter0_b_1_823)">
<circle cx="30" cy="30" r="30" fill="#F1F1F3" fillOpacity="0.1" />
<g filter="url(#filter1_d_1_823)">
<path
d="M17.1408 31.31L17.0633 31.3104L17.1059 40.8879C17.109 41.579 17.7063 42.1441 18.4304 42.1409L28.7613 42.0948C28.6441 36.1093 23.4765 31.2818 17.1408 31.31V31.31ZM17.1056 23.4111L17.0281 23.4114L17.0462 27.4843C25.5671 27.4834 32.5267 33.9938 32.6532 42.0775L37.0752 42.0578C36.9515 31.7154 28.0313 23.3624 17.1056 23.4111ZM43.3406 40.7833L43.3021 32.1314C40.2711 25.1345 34.2082 19.6198 26.6844 17.0738L18.3188 17.1111C17.5948 17.1143 17.0025 17.6847 17.0056 18.3758L17.0111 19.5977C30.1221 19.5763 40.8341 29.6123 40.9671 42.0528L42.0274 42.048C42.7643 42.0324 43.3437 41.4744 43.3406 40.7833V40.7833ZM39.7979 20.5082C41.0185 21.663 42.2663 23.1261 43.2677 24.4176L43.2402 18.2466C43.24 18.0827 43.2058 17.9206 43.1397 17.7694C43.0736 17.6182 42.9768 17.4811 42.8549 17.3657C42.733 17.2504 42.5884 17.1593 42.4295 17.0975C42.2705 17.0357 42.1003 17.0046 41.9287 17.0058L35.2698 17.0355C36.826 18.053 38.4345 19.2184 39.7979 20.5082Z"
fill="white"
/>
</g>
</g>
<defs>
<filter
id="filter0_b_1_823"
x="-10"
y="-10"
width="80"
height="80"
filterUnits="userSpaceOnUse"
colorInterpolationFilters="sRGB"
>
<feFlood floodOpacity="0" result="BackgroundImageFix" />
<feGaussianBlur in="BackgroundImageFix" stdDeviation="5" />
<feComposite
in2="SourceAlpha"
operator="in"
result="effect1_backgroundBlur_1_823"
/>
<feBlend
mode="normal"
in="SourceGraphic"
in2="effect1_backgroundBlur_1_823"
result="shape"
/>
</filter>
<filter
id="filter1_d_1_823"
x="-4"
y="0"
width="68"
height="68"
filterUnits="userSpaceOnUse"
colorInterpolationFilters="sRGB"
>
<feFlood floodOpacity="0" result="BackgroundImageFix" />
<feColorMatrix
in="SourceAlpha"
type="matrix"
values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
result="hardAlpha"
/>
<feOffset dy="4" />
<feGaussianBlur stdDeviation="2" />
<feComposite in2="hardAlpha" operator="out" />
<feColorMatrix
type="matrix"
values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"
/>
<feBlend
mode="normal"
in2="BackgroundImageFix"
result="effect1_dropShadow_1_823"
/>
<feBlend
mode="normal"
in="SourceGraphic"
in2="effect1_dropShadow_1_823"
result="shape"
/>
</filter>
</defs>
</svg>
)

export const TelegrafIcon = (
<svg
width="60"
Expand Down
34 changes: 0 additions & 34 deletions src/homepageExperience/containers/HomepageContentsTSM.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import {
CSharpIcon,
GoIcon,
JavaIcon,
MQTTIcon,
NodejsIcon,
PythonIcon,
TelegrafIcon,
Expand All @@ -43,7 +42,6 @@ import 'src/homepageExperience/containers/HomepageContentsTSM.scss'
// Utils
import {event} from 'src/cloud/utils/reporting'
import UsageProvider from 'src/usage/context/usage'
import {isFlagEnabled} from 'src/shared/utils/featureFlag'
import {pageTitleSuffixer} from 'src/shared/utils/pageTitles'

// Selectors
Expand All @@ -60,7 +58,6 @@ export const HomepageContentsTSM: FC = () => {
const arduinoLink = `/orgs/${org.id}/new-user-setup/arduino`
const pythonWizardLink = `/orgs/${org.id}/new-user-setup/python`
const cliPageLink = `/orgs/${org.id}/new-user-setup/cli`
const mqttPageLink = `/orgs/${org.id}/load-data/subscriptions/create`
const telegrafPageLink = `/orgs/${org.id}/load-data/telegrafs`
const newTelegrafPageLink = `/orgs/${org.id}/load-data/telegrafs/new`
const golangLink = `/orgs/${org.id}/new-user-setup/golang`
Expand Down Expand Up @@ -121,10 +118,6 @@ export const HomepageContentsTSM: FC = () => {
event('firstMile.CLIButton.clicked')
}

const logMQTTButtonClick = () => {
event('firstMile.MQTTButton.clicked')
}

const logTelegrafButtonClick = () => {
event('firstMile.telegrafButton.clicked')
}
Expand Down Expand Up @@ -253,33 +246,6 @@ export const HomepageContentsTSM: FC = () => {
</Link>
</FlexBox>
<hr style={{marginTop: '8px'}} />
{isFlagEnabled('subscriptionsUI') && (
<Link
to={mqttPageLink}
style={linkStyle}
onClick={logMQTTButtonClick}
>
<div
className="homepage-write-data-tile"
data-testid="homepage-wizard-tile--mqtt"
>
<div className="tile-icon-text-wrapper">
<div className="icon">{MQTTIcon}</div>
<div>
<h4>Native MQTT</h4>
<h6>
Connect to your MQTT subscription in the cloud.
</h6>
</div>
</div>

<Icon
glyph={IconFont.ArrowRight_New}
className="arrow-button"
/>
</div>
</Link>
)}
<Link
to={cliPageLink}
style={linkStyle}
Expand Down
8 changes: 0 additions & 8 deletions src/me/components/ClickThroughAnnouncementOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {useSelector} from 'react-redux'
// Components
import {Overlay} from '@influxdata/clockface'
import {PaygPriceIncreaseAnnouncement} from 'src/me/components/announcements/PaygPriceIncreaseAnnouncement'
import {MqttEolAnnouncement} from 'src/me/components/announcements/MqttEolAnnouncement'

// Utils
import {event} from 'src/cloud/utils/reporting'
Expand Down Expand Up @@ -50,13 +49,6 @@ export const ClickThroughAnnouncementOverlay: FC<
handleDetailsClick={handleDetailsClick}
/>
)
case AnnouncementID.MqttEol:
return (
<MqttEolAnnouncement
handleAcknowledgeClick={handleAcknowledgeClick}
handleDetailsClick={handleDetailsClick}
/>
)
default:
return null
}
Expand Down
Loading

0 comments on commit 252d3d1

Please sign in to comment.