Skip to content

Commit

Permalink
Switching SSW website to use JotForms (#1919)
Browse files Browse the repository at this point in the history
* JotForm Script for the website

* Removing JotFormScript reference

* Adding null react component

* Removing empty react component causing Lint issue

* Adding logic for the form to load on navigation

* Creating a separate component for the JotForm Script

* Adding JOTFORM_ID in pipeline

* Removing unnecessary variable

* Adding comments

* Adding id for the script

* Adding comments for the script

* Adding guard for the script and changing the form type

* Removing weekly check

* Removing JotForm Id from pipeline and adding it to Tina Global

* Adding default settings in Tina for JotForm

* Created a new component for jotForm

* Adding type for jotFormEmbed

* Adding reusable component

* Adding visual editing

* Updating props name to make it more meaningful

* Fixed hardcoded id for the JotForm

* Adding link for the doc to sharepoint

* Updating generated graphql
  • Loading branch information
amankumarrr authored Jan 16, 2024
1 parent 70eccf6 commit ba96710
Show file tree
Hide file tree
Showing 10 changed files with 320 additions and 141 deletions.
85 changes: 0 additions & 85 deletions .github/workflows/weekly-ui-tests.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .tina/__generated__/_graphql.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .tina/__generated__/_lookup.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .tina/__generated__/_schema.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions .tina/collections/global.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { Collection } from "tinacms";
import { jotFormSchema } from "../../components/blocks/jotFormEmbed";

export const globalSchema: Collection = {
label: "Global - Sections",
Expand Down Expand Up @@ -239,5 +240,6 @@ export const globalSchema: Collection = {
},
],
},
jotFormSchema,
],
};
2 changes: 2 additions & 0 deletions components/blocks-renderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { ClientLogos } from "./blocks/clientLogos";
import { Content } from "./blocks/content";
import { ContentCard } from "./blocks/contentCard";
import { CustomImage } from "./blocks/customImage";
import { JotFormEmbed } from "./blocks/jotFormEmbed";
import { PaymentBlock } from "./blocks/payment-block";
import { ServiceCards } from "./blocks/serviceCards";
import { TableLayout } from "./blocks/tableLayout";
Expand Down Expand Up @@ -59,6 +60,7 @@ const componentMap = {
ClientList,
LatestTech,
VideoEmbed,
JotFormEmbed,
};

export const Blocks = ({ prefix, blocks }) => {
Expand Down
3 changes: 3 additions & 0 deletions components/blocks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import { flagSchema } from "./flag";
import { googleMapsSchema } from "./googleMapsWrapper";
import { heroBlockSchema } from "./hero";
import { internalCarouselBlockSchema } from "./internalCarousel";
import { jotFormEmbedSchema } from "./jotFormEmbed";
import { newslettersTableBlockSchema } from "./newslettersTable";
import { paymentBlockSchema } from "./payment-block";
import { recurringEventSchema } from "./recurringEvent";
Expand Down Expand Up @@ -87,6 +88,7 @@ export const pageBlocks: Template[] = [
latestTechSchema,
testimonialsListSchema,
eventLinkSchema,
jotFormEmbedSchema,
customDownloadButtonSchema,
];

Expand Down Expand Up @@ -117,6 +119,7 @@ export * from "./fixedColumns";
export * from "./flag";
export * from "./googleMapsWrapper";
export * from "./hero";
export * from "./jotFormEmbed";
export * from "./newslettersTable";
export * from "./recurringEvent";
export * from "./serviceCards";
Expand Down
Loading

0 comments on commit ba96710

Please sign in to comment.