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

Roadie supports GitLab #1375

Merged
merged 1 commit into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
9 changes: 3 additions & 6 deletions cypress/e2e/free_trial_page.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,14 @@ describe('The free trial page', () => {
cy.contains('Thank you for requesting a free trial of Roadie');
});

// [DT] I'm skipping this because it's incorrectly failing in tests and I don't have
// time to figure out why. This code path will be removed soon anyway because
// we do support GitLab now.
it.skip('has a flow for users who use GitLab', () => {
it('has a flow for users who choose other', () => {
cy.visit(PAGE_PATHS.freeTrial);

cy.get('#get-instance-email-input').type('test@example.com');
cy.get('#scm').select('GitLab Cloud');
cy.get('#scm').select('Other');
cy.get('button[data-testid="agree-to-policies"]').click();
cy.contains('Request a trial').click();
cy.contains('Roadie does not support GitLab');
cy.contains(`be in touch to learn more`);
});

it('warns gmail users', () => {
Expand Down
6 changes: 3 additions & 3 deletions cypress/e2e/landing_page.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ describe('The landing page', () => {
cy.contains("We'll be in touch");
});

it('has a flow for users who use GitLab', () => {
it('has a flow for users who use choose other', () => {
cy.visit('');
cy.contains('Get a Demo').click();

cy.get('#request-demo-name-input').type('Mary Mac');
cy.get('#request-demo-email-input').type('test@example.com');
cy.get('#scm').select('GitLab Cloud');
cy.get('#scm').select('Other');
cy.contains('Request a demo').click();
cy.contains('Roadie does not support GitLab');
cy.contains(`be in touch to learn more`);
});
});
1 change: 1 addition & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ module.exports = {
social: {
twitter: 'RoadieHQ',
github: 'RoadieHQ',
linkedin: 'https://www.linkedin.com/company/43197350',
},
},

Expand Down
11 changes: 11 additions & 0 deletions src/components/FormSubmissionModal/FormSubmissionModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ const TwitterInner = ({ siteMetadata }) => (
</p>
);

const LinkedinInner = ({ siteMetadata }) => (
<p>
<Link to={siteMetadata.social.linkedin} color="primary">
Follow Roadie on Linkedin
</Link>
.
</p>
);

const GetDemoSurveyInner = ({ referredEmail }) => {
const codedEmail = encodeURIComponent(referredEmail);

Expand Down Expand Up @@ -92,6 +101,8 @@ const FormSubmissionModal = ({
followOnContent = <GetDemoSurveyInner referredEmail={email} />;
} else if (followOn === 'GET_TRIAL') {
followOnContent = <GetTrialInner referredEmail={email} />;
} else if (followOn === 'LINKEDIN') {
followOnContent = <LinkedinInner siteMetadata={siteMetadata} />;
}

return (
Expand Down
4 changes: 2 additions & 2 deletions src/components/FormSubmissionModal/SubmissionSuccessModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const SubmissionSuccessModal = ({
<FormSubmissionModal
titleText={positiveTitle}
bodyText={positiveBody}
followOn="NEWSLETTER_AND_TWITTER"
followOn="LINKEDIN"
{...rest}
/>
);
Expand All @@ -31,7 +31,7 @@ const SubmissionSuccessModal = ({
titleText={negativeTitle}
titleEmoji={null}
bodyText={negativeBody}
followOn="NEWSLETTER_AND_TWITTER"
followOn="LINKEDIN"
{...rest}
/>
);
Expand Down
8 changes: 4 additions & 4 deletions src/components/SitewideFooter/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { Link } from 'components';
import { TwitterIcon, GitHubIcon, BackstageIcon, RoadieRacksIcon } from 'components/icons';
import { GitHubIcon, BackstageIcon, RoadieRacksIcon, LinkedinIcon } from 'components/icons';
import camelCase from 'lodash/camelCase';

import soc2Seal from '../../../content/assets/logos/soc2/aicpa.jpg';
Expand Down Expand Up @@ -38,9 +38,9 @@ const navigation = {
],

social: [{
name: 'Twitter',
href: 'https://x.com/roadiehq',
icon: TwitterIcon,
name: 'Linkedin',
href: 'https://www.linkedin.com/company/43197350',
icon: LinkedinIcon,
}, {
name: 'GitHub',
href: 'https://github.com/RoadieHQ',
Expand Down
1 change: 1 addition & 0 deletions src/components/forms/ScmToolSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export const ScmToolSelect = ({
</option>
))}
</select>

{!isEmpty(helpText) && !isEmpty(currentValue.value) && showProductPrompts && (
<>
{currentValue.value.includes('gitlab') && (
Expand Down
1 change: 1 addition & 0 deletions src/components/seo.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const SEO = ({ title, description = '', lang = 'en', headerImage = '', meta = []
description
social {
twitter
linkedin
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/contactFormConstants.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ export const SCM_TOOLS = [{
}, {
value: 'gitlab-cloud',
label: 'GitLab Cloud',
supported: false,
supported: true,
}, {
value: 'gitlab-on-prem',
label: 'GitLab On-prem',
supported: false,
supported: true,
}, {
value: 'bitbucket-cloud',
label: 'Bitbucket Cloud',
Expand Down
19 changes: 8 additions & 11 deletions src/pages/free-trial.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,19 @@ import enriqueAvatarPng from '../../content/assets/home/testimonial/enrique-cont
import contentfulLogo from '../../content/assets/home/testimonial/enrique-contentful/contentful-monochrome.webp';
import contentfulLogoPng from '../../content/assets/home/testimonial/enrique-contentful/contentful-monochrome.png';

const SEO_TITLE = 'Try hosted Spotify Backstage for free';
const SEO_TITLE = 'Try Roadie for free';

const SubmissionSuccessPositiveBody = () => (
<p>
Thank you for requesting a free trial of Roadie. We&apos;ll be in touch via the email provided.
</p>
);

const SubmissionSuccessNegativeBody = ({ scmTool }) => (
<>
{scmTool.value.includes('gitlab') && (
<p>Roadie does not support GitLab at the moment. We&apos;ll email you as soon as we do.</p>
)}

<p>
Thank you for requesting a free trial of Roadie. You will hear from us soon.
</p>
</>
const SubmissionSuccessNegativeBody = () => (
<p>
Thank you for requesting a demo of Roadie. We&apos;ll be in touch to learn more about your
setup.
</p>
);

const RequestTrial = ({ data, location }) => {
Expand Down Expand Up @@ -92,6 +87,7 @@ const RequestTrial = ({ data, location }) => {
scmTool={scmTool}
setScmTool={setScmTool}
location={location}
showProductPrompts={false}
/>
</div>
<div className="mt-5 p-5 lg:pl-10 lg:mt-16">
Expand Down Expand Up @@ -147,6 +143,7 @@ export const pageQuery = graphql`
title
social {
twitter
linkedin
}
}
}
Expand Down
1 change: 1 addition & 0 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ export const pageQuery = graphql`
title
social {
twitter
linkedin
}
}
}
Expand Down
1 change: 1 addition & 0 deletions src/pages/pricing/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export const pageQuery = graphql`
title
social {
twitter
linkedin
}
}
}
Expand Down
1 change: 1 addition & 0 deletions src/pages/product/access-control.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ export const pageQuery = graphql`
title
social {
twitter
linkedin
}
}
}
Expand Down
1 change: 1 addition & 0 deletions src/pages/product/catalog.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ export const pageQuery = graphql`
title
social {
twitter
linkedin
}
}
}
Expand Down
1 change: 1 addition & 0 deletions src/pages/product/documentation.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ export const pageQuery = graphql`
title
social {
twitter
linkedin
}
}
}
Expand Down
1 change: 1 addition & 0 deletions src/pages/product/scaffolder.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ export const pageQuery = graphql`
title
social {
twitter
linkedin
}
}
}
Expand Down
1 change: 1 addition & 0 deletions src/pages/product/tech-insights.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ export const pageQuery = graphql`
title
social {
twitter
linkedin
}
}
}
Expand Down
19 changes: 8 additions & 11 deletions src/pages/request-demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import snykLogo from '../../content/assets/home/testimonial/crystal-snyk/snyk-mo
import snykLogoPng from '../../content/assets/home/testimonial/crystal-snyk/snyk-monochrome.png';
import Avatar from '../components/landing/Testimonials/Avatar';

const SEO_TITLE = 'Request a demo of Roadie Backstage';
const SEO_TITLE = 'Request a demo of Roadie';

const SubmissionSuccessPositiveBody = () => (
<>
Expand All @@ -22,16 +22,11 @@ const SubmissionSuccessPositiveBody = () => (
</>
);

const SubmissionSuccessNegativeBody = ({ scmTool }) => (
<>
{scmTool.value.includes('gitlab') && (
<p>Roadie does not support GitLab at the moment. We&apos;ll email you as soon as we do.</p>
)}

<p>
Thank you for requesting a demo of Roadie. You will hear from us soon.
</p>
</>
const SubmissionSuccessNegativeBody = () => (
<p>
Thank you for requesting a demo of Roadie. We&apos;ll be in touch to learn more about your
setup.
</p>
);

const RequestDemo = ({ data, location }) => {
Expand Down Expand Up @@ -83,6 +78,7 @@ const RequestDemo = ({ data, location }) => {
location={location}
scmTool={scmTool}
setScmTool={setScmTool}
showProductPrompts={false}
onSuccess={() => {
setModalOpen(true);
}}
Expand Down Expand Up @@ -141,6 +137,7 @@ export const pageQuery = graphql`
title
social {
twitter
linkedin
}
}
}
Expand Down
1 change: 1 addition & 0 deletions src/pages/whitepapers/managed-vs-self-hosted-backstage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ export const pageQuery = graphql`
title
social {
twitter
linkedin
}
}
}
Expand Down
1 change: 1 addition & 0 deletions src/templates/BackstageBite.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export const pageQuery = graphql`
title
social {
twitter
linkedin
}
}
}
Expand Down
1 change: 1 addition & 0 deletions src/templates/BlogPost.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ export const pageQuery = graphql`
title
social {
twitter
linkedin
}
}
}
Expand Down
1 change: 1 addition & 0 deletions src/templates/CaseStudy.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export const pageQuery = graphql`
title
social {
twitter
linkedin
}
}
}
Expand Down
1 change: 1 addition & 0 deletions src/templates/Doc.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export const pageQuery = graphql`
sourceCodeUrl
social {
twitter
linkedin
}
}
}
Expand Down
1 change: 1 addition & 0 deletions src/templates/LegalNotice.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export const pageQuery = graphql`
title
social {
twitter
linkedin
}
}
}
Expand Down
1 change: 1 addition & 0 deletions src/templates/Plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ export const pageQuery = graphql`
sourceCodeUrl
social {
twitter
linkedin
}
}
}
Expand Down
1 change: 1 addition & 0 deletions src/templates/Tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export const pageQuery = graphql`
title
social {
twitter
linkedin
}
}
}
Expand Down
Loading