Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.

Commit 898d889

Browse files
authored
feat: removed payments and limits (#4171)
1 parent 0e52d57 commit 898d889

File tree

32 files changed

+35
-775
lines changed

32 files changed

+35
-775
lines changed

.env

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ NEXT_PUBLIC_API_URL=https://beta.api.opensauced.pizza/v2
44
NEXT_PUBLIC_EXP_API_URL=https://beta.api.opensauced.pizza/v2
55
NEXT_PUBLIC_POSTHOG_ID=phc_Y0xz6nK55MEwWjobJsI2P8rsiomZJ6eZLoXehmMy9tt
66
NEXT_PUBLIC_CLOUD_NAME=dgxgziswe
7-
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=test
8-
NEXT_PUBLIC_STRIPE_SUB_CANCEL_URL=https://billing.stripe.com/p/login/test_bIY8xy3iy6fpeHu3cc
97
SENTRY_DSN=https://3f5bb9023ff0407299dd22a6454558f9@o4504872488927232.ingest.sentry.io/4505082236960768
108
NEXT_PUBLIC_SENTRY_DSN=https://3f5bb9023ff0407299dd22a6454558f9@o4504872488927232.ingest.sentry.io/4505082236960768
119

CODEOWNERS

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ components/StarSearch/SuggestedPrompts.tsx @zeucapua @nickytonline @brandonrober
5151
components/TabList/tab-list.tsx @zeucapua @jpmcb @brandonroberts
5252
components/Tables/ContributorsGrid.tsx @zeucapua @brandonroberts @nickytonline
5353
components/Tables/ContributorsTable.tsx @zeucapua @zeucapua @brandonroberts
54-
components/Workspaces/InsightUpgradeModal.tsx @brandonroberts
5554
components/Workspaces/TrackedRepoWizard/PasteReposStep.tsx @brandonroberts @nickytonline @zeucapua
5655
components/Workspaces/TrackedReposTable.tsx @nickytonline @brandonroberts
5756
components/Workspaces/WorkspaceCard.tsx @brandonroberts @zeucapua
@@ -84,7 +83,6 @@ components/molecules/DevProfile/dev-profile.tsx @nickytonline @zeucapua @brandon
8483
components/molecules/FilterHeader/filter-header.tsx @brandonroberts
8584
components/molecules/HighlightInput/highlight-input-form.tsx @zeucapua
8685
components/molecules/HoverCardWrapper/hover-card-wrapper.tsx @nickytonline @zeucapua
87-
components/molecules/InsightHeader/insight-header.tsx @zeucapua @zeucapua @brandonroberts
8886
components/molecules/ListCard/list-card.tsx @nickytonline @brandonroberts
8987
components/molecules/NewsletterForm/newsletter-form.stories.tsx @brandonroberts @jpmcb @zeucapua
9088
components/molecules/NewsletterForm/newsletter-form.tsx @brandonroberts @zeucapua @nickytonline

components/ListHeader/list-header.tsx

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import { FaEdit } from "react-icons/fa";
22
import { FiCopy } from "react-icons/fi";
33
import { usePostHog } from "posthog-js/react";
44

5-
import dynamic from "next/dynamic";
6-
import { useState } from "react";
75
import { useRouter } from "next/router";
86
import Button from "components/shared/Button/button";
97
import Title from "components/atoms/Typography/title";
@@ -16,8 +14,6 @@ import StackedOwners from "components/Workspaces/StackedOwners";
1614
import { shortenUrl } from "lib/utils/shorten-url";
1715
import { writeToClipboard } from "lib/utils/write-to-clipboard";
1816

19-
const InsightUpgradeModal = dynamic(() => import("components/Workspaces/InsightUpgradeModal"));
20-
2117
interface ListHeaderProps {
2218
name: string;
2319
listId: string;
@@ -26,7 +22,6 @@ interface ListHeaderProps {
2622
isOwner: boolean;
2723
numberOfContributors: number;
2824
owners?: string[];
29-
overLimit?: boolean;
3025
}
3126

3227
const ListHeader = ({
@@ -37,12 +32,10 @@ const ListHeader = ({
3732
isOwner,
3833
numberOfContributors,
3934
owners,
40-
overLimit,
4135
}: ListHeaderProps): JSX.Element => {
4236
const { toast } = useToast();
4337
const posthog = usePostHog();
4438
const router = useRouter();
45-
const [isInsightUpgradeModalOpen, setIsInsightUpgradeModalOpen] = useState(false);
4639

4740
const handleCopyToClipboard = async () => {
4841
const url = new URL(window.location.href).toString();
@@ -90,27 +83,13 @@ const ListHeader = ({
9083
<Button
9184
variant="primary"
9285
onClick={() => {
93-
if (overLimit) {
94-
setIsInsightUpgradeModalOpen(true);
95-
return;
96-
}
97-
9886
router.push(`/workspaces/${workspaceId}/contributor-insights/${listId}/edit`);
9987
}}
10088
>
10189
<FaEdit className="mr-2" /> Edit
10290
</Button>
10391
)}
10492
</div>
105-
{workspaceId && (
106-
<InsightUpgradeModal
107-
workspaceId={workspaceId}
108-
variant="all"
109-
isOpen={isInsightUpgradeModalOpen}
110-
onClose={() => setIsInsightUpgradeModalOpen(false)}
111-
overLimit={0}
112-
/>
113-
)}
11493
</div>
11594
);
11695
};

components/Workspaces/InsightUpgradeModal.tsx

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

components/Workspaces/WorkspaceBanner.tsx

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

components/molecules/InsightHeader/insight-header.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { usePostHog } from "posthog-js/react";
55
import { FiCopy } from "react-icons/fi";
66

77
import { useRouter } from "next/router";
8-
import dynamic from "next/dynamic";
98
import getRepoInsights from "lib/utils/get-repo-insights";
109
import Button from "components/shared/Button/button";
1110
import Title from "components/atoms/Typography/title";
@@ -21,16 +20,13 @@ import { useMediaQuery } from "lib/hooks/useMediaQuery";
2120
import CardRepoList from "../CardRepoList/card-repo-list";
2221
import ComponentDateFilter from "../ComponentDateFilter/component-date-filter";
2322

24-
const InsightUpgradeModal = dynamic(() => import("components/Workspaces/InsightUpgradeModal"));
25-
2623
interface InsightHeaderProps {
2724
insight?: DbUserInsight;
2825
repositories?: number[];
2926
insightId: string;
3027
canEdit: boolean | undefined;
3128
workspaceId?: string;
3229
owners?: string[];
33-
overLimit?: boolean;
3430
}
3531

3632
const InsightHeader = ({
@@ -40,14 +36,12 @@ const InsightHeader = ({
4036
canEdit,
4137
workspaceId,
4238
owners,
43-
overLimit,
4439
}: InsightHeaderProps): JSX.Element => {
4540
const router = useRouter();
4641
const { range } = router.query;
4742
const { data: repoData, meta: repoMeta } = useRepositories(repositories);
4843
const { repoList } = getRepoInsights(repoData);
4944
const [insightPageLink, setInsightPageLink] = useState("");
50-
const [isInsightUpgradeModalOpen, setIsInsightUpgradeModalOpen] = useState(false);
5145
const { toast } = useToast();
5246
const posthog = usePostHog();
5347
const isMobile = useMediaQuery("(max-width: 768px)");

0 commit comments

Comments
 (0)