Skip to content

Commit d47ed37

Browse files
authored
Remove the use of Koala (#1853)
* Remove the use of Koala * Fix prettier tailwind css issue. Additionally fix local auto fix by pinning tailwindcss version to prevent tooling from having multiple versions depending on monorepo location. * Remove unused directive
1 parent 17bc227 commit d47ed37

File tree

6 files changed

+6
-23
lines changed

6 files changed

+6
-23
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"remark-preset-lint-markdown-style-guide": "5.1.3",
3232
"remark-preset-lint-recommended": "6.1.3",
3333
"remark-preset-prettier": "2.0.1",
34+
"tailwindcss": "^3.4.17",
3435
"typescript": "5.7.3",
3536
"wrangler": "4.1.0"
3637
},

packages/website-router/src/html-handlers/koala.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

packages/website-router/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { handleFeed, shouldHandleFeed } from './feed/handler';
88
import { BannerHandler } from './html-handlers/banner';
99
import { CrispHandler } from './html-handlers/crisp';
1010
import { GoogleAnalyticsHandler } from './html-handlers/ga';
11-
import { KoalaHandler } from './html-handlers/koala';
1211
import { handleRobotsTxt, shouldHandleRobotsTxt } from './robots/handler';
1312
import { handleRewrite, ManipulateResponseFn, redirect } from './routing';
1413
import { handleSitemap, shouldHandleSitemap } from './sitemap/handler';
@@ -41,7 +40,6 @@ const manipulateResponse: ManipulateResponseFn = async (record, rawResponse) =>
4140
result = new HTMLRewriter()
4241
.on('head', new FaviconHandler())
4342
.on('head', new CrispHandler(crispWebsiteId, record))
44-
.on('head', new KoalaHandler(koaliaPk))
4543
.on('body', new BannerHandler(defaultBanner || record.banner))
4644
.on('head', new GoogleAnalyticsHandler(gaTrackingId))
4745
.transform(result);

pnpm-lock.yaml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

website/tailwind.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import hocusPlugin from 'tailwindcss-hocus';
2-
// @ts-expect-error -- types are missing
32
import plugin from 'tailwindcss/plugin';
43
import config from '@theguild/tailwind-config';
54

website/ui/get-in-touch-section.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,6 @@ export const GetInTouchForm = (): ReactElement => {
1919
notes: Yup.string().optional().required(),
2020
}),
2121
async onSubmit({ name, email, notes }) {
22-
try {
23-
if ('ko' in globalThis) {
24-
globalThis.ko.identify({ email, name });
25-
}
26-
} catch {
27-
// nothing to do here, maybe koala was not loaded
28-
}
29-
3022
const response = await fetch('https://utils.the-guild.dev/api/contact-us', {
3123
method: 'POST',
3224
headers: {

0 commit comments

Comments
 (0)