From c58cd3e4547b4732675b0213d9cf5e8888e79d24 Mon Sep 17 00:00:00 2001 From: Brandon Roberts Date: Tue, 10 Oct 2023 12:14:48 -0500 Subject: [PATCH] chore: update occurrences of insights to app (#1850) --- .github/workflows/release.yml | 2 +- README.md | 2 +- .../molecules/RecommendedRepoCard/recommended-repo-card.tsx | 2 +- components/organisms/InsightPage/InsightPage.tsx | 1 - package.json | 2 +- pages/_app.tsx | 2 +- stories/atoms/text-input.stories.tsx | 2 +- stories/atoms/typography-wrapper.stories.tsx | 4 ++-- tests/lib/utils/github.test.ts | 2 +- 9 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 21277a299c..31a8c990d8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -79,7 +79,7 @@ jobs: release: environment: name: ${{ needs.setup.outputs.DEPLOY_ENVIRONMENT }} - url: https://${{ needs.setup.outputs.DEPLOY_SUBDOMAIN }}insights.opensauced.pizza + url: https://${{ needs.setup.outputs.DEPLOY_SUBDOMAIN }}app.opensauced.pizza name: Semantic release needs: - setup diff --git a/README.md b/README.md index 9dec85eeee..a15af1fd25 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@

Open Sauced -

🍕 insights.opensauced.pizza 🍕

+

🍕 app.opensauced.pizza 🍕

The site provides insights to Open Source projects.

diff --git a/components/molecules/RecommendedRepoCard/recommended-repo-card.tsx b/components/molecules/RecommendedRepoCard/recommended-repo-card.tsx index 50e59fbaba..63108d3d58 100644 --- a/components/molecules/RecommendedRepoCard/recommended-repo-card.tsx +++ b/components/molecules/RecommendedRepoCard/recommended-repo-card.tsx @@ -52,7 +52,7 @@ const RecommendedRepoCard = ({ fullName, className }: RecommendedRepoCardProps):
diff --git a/components/organisms/InsightPage/InsightPage.tsx b/components/organisms/InsightPage/InsightPage.tsx index 3e22496001..3b4219dc9b 100644 --- a/components/organisms/InsightPage/InsightPage.tsx +++ b/components/organisms/InsightPage/InsightPage.tsx @@ -457,7 +457,6 @@ const InsightPage = ({ edit, insight, pageRepos }: InsightPageProps) => { - {/* insights.opensauced.pizza/pages/{username}/{`{pageId}`}/dashboard */}
diff --git a/package.json b/package.json index 06c9f22020..83967b0d55 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "files": [ "build/**/*" ], - "homepage": "https://insights.opensauced.pizza", + "homepage": "https://app.opensauced.pizza", "bugs": { "url": "https://github.com/open-sauced/insights/issues" }, diff --git a/pages/_app.tsx b/pages/_app.tsx index cd174f52c8..4a3827e9dd 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -64,7 +64,7 @@ function MyApp({ Component, pageProps }: ComponentWithPageLayout) { const interval = setInterval(() => { chatButton = document.getElementById("sitegpt-chat-icon"); if (chatButton) { - if (hostname !== "insights.opensauced.pizza") { + if (hostname !== "app.opensauced.pizza") { chatButton.style.display = "none"; } if (router.asPath === "/feed" && isMobile) { diff --git a/stories/atoms/text-input.stories.tsx b/stories/atoms/text-input.stories.tsx index c26a648b5a..e09b6d6a3b 100644 --- a/stories/atoms/text-input.stories.tsx +++ b/stories/atoms/text-input.stories.tsx @@ -35,7 +35,7 @@ WithDescriptionText.args = { disabled: false, autoFocus: true, borderless: false, - descriptionText: "insights.opensauced.pizza/statelyai/slug", + descriptionText: "app.opensauced.pizza/statelyai/slug", }; IsInvalid.args = { diff --git a/stories/atoms/typography-wrapper.stories.tsx b/stories/atoms/typography-wrapper.stories.tsx index b1aec7df18..bed4633d36 100644 --- a/stories/atoms/typography-wrapper.stories.tsx +++ b/stories/atoms/typography-wrapper.stories.tsx @@ -137,8 +137,8 @@ const TypographyTemplate: StoryFn = (args) => (

There are other elements we need to style

I almost forgot to mention links, like{" "} - this link to the OpenSauced Insights website. We almost made them - blue but that's so yesterday, so we went with dark gray, feels edgier. + this link to the OpenSauced Insights website. We almost made them blue + but that's so yesterday, so we went with dark gray, feels edgier.

We even included table styles, check it out:

diff --git a/tests/lib/utils/github.test.ts b/tests/lib/utils/github.test.ts index 4bdb27b7b6..204b46db86 100644 --- a/tests/lib/utils/github.test.ts +++ b/tests/lib/utils/github.test.ts @@ -77,7 +77,7 @@ describe("[lib] github methods", () => { }); }); it("Should return an object with isValidUrl set to false", () => { - const result = generateRepoParts("https://insights.opensauced.pizza/hub/insights/new"); + const result = generateRepoParts("https://app.opensauced.pizza/hub/insights/new"); expect(result.isValidUrl).toBeFalsy(); }); it("Should return an object with isValidUrl set to false", () => {