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

cleanup: remove PolygonID requirement and reward #1497

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
1 change: 0 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID=d851f25304d67fc8e2dd3b354223e4fa
NEXT_PUBLIC_EDGE_CONFIG_ID=ecfg_buc5l6124c4koymyvseasbd1k3hs
NEXT_PUBLIC_EDGE_CONFIG_READ_ACCESS_TOKEN=8b337e65-3aa6-4949-97b8-c7eab7151128
NEXT_PUBLIC_RECAPTCHA_SITE_KEY=6LcQm4onAAAAAOcoqkw9A5txg5SbuddONchMZKrF
NEXT_PUBLIC_POLYGONID_API=https://guild-privacy.s.guild.xyz
NEXT_PUBLIC_BUGSNAG_KEY=4bd5799ac2cb4a34887513b80b845554
18 changes: 0 additions & 18 deletions public/requirementLogos/polygonId.svg

This file was deleted.

12 changes: 0 additions & 12 deletions public/requirementLogos/polygonId_white.svg

This file was deleted.

Binary file removed public/solutions/polygon-bg.jpg
Binary file not shown.
5 changes: 0 additions & 5 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,6 @@
--github: 0 0% 20%;
--github-hover: 0 0% 18%;
--github-active: 0 0% 15%;
--polygonid: 259 59% 59%;
--polygonid-hover: 258 50% 52%;
--polygonid-active: 256 44% 42%;

--farcaster: 261 55% 61%;
--farcaster-hover: 261 55% 55%;
Expand Down Expand Up @@ -235,8 +232,6 @@
--google-active: 212 96% 78%;
--github-hover: 0 0% 44%;
--github-active: 0 0% 68%;
--polygonid-hover: 260 73% 70%;
--polygonid-active: 262 81% 77%;
--farcaster-hover: 239 75% 75%;
--farcaster-active: 238 76% 81%;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/[guild]/AddRewardButton/SelectRolePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const SelectRolePanel = ({
const goBack = () => {
if (!rewards[selection].autoRewardSetup)
methods.reset(ADD_REWARD_FORM_DEFAULT_VALUES)
setStep(selection === "POLYGON_ID" ? "HOME" : "REWARD_SETUP")
setStep("REWARD_SETUP")
}

return (
Expand Down
1 change: 0 additions & 1 deletion src/components/[guild]/JoinModal/JoinModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import { useJoin } from "./hooks/useJoin"
import { JoinForm, Joinable } from "./types"

const customJoinStep: Partial<Record<Joinable, ComponentType<unknown>>> = {
POLYGON: dynamic(() => import("./components/ConnectPolygonIDJoinStep")),
CAPTCHA: dynamic(() => import("./components/CompleteCaptchaJoinStep")),
EMAIL: dynamic(() => import("./components/ConnectEmailJoinStep")),
}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ import dynamic from "next/dynamic"
import RequirementAccessIndicatorUI from "./RequirementAccessIndicatorUI"
import { useRequirementContext } from "./RequirementContext"

const DynamicConnectPolygonID = dynamic(
() => import("requirements/PolygonID/components/ConnectPolygonID")
)
const DynamicCompleteCaptcha = dynamic(
() => import("requirements/Captcha/components/CompleteCaptcha")
)
Expand Down Expand Up @@ -80,9 +77,7 @@ const RequirementAccessIndicator = () => {
: "Connect account to check access"}
</PopoverHeader>
<PopoverFooter {...POPOVER_FOOTER_STYLES}>
{type === "POLYGON_ID_QUERY" || type === "POLYGON_ID_BASIC" ? (
<DynamicConnectPolygonID size="sm" iconSpacing={2} />
) : type === "CAPTCHA" ? (
{type === "CAPTCHA" ? (
<DynamicCompleteCaptcha size="sm" iconSpacing={2} />
) : type.startsWith("GITCOIN_") ? (
<DynamicSetupPassport size="sm" />
Expand Down

This file was deleted.

14 changes: 2 additions & 12 deletions src/components/create-guild/PlatformsGrid/PlatformsGrid.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Box, Heading, SimpleGrid, Stack, StackProps } from "@chakra-ui/react"
import useGuild from "components/[guild]/hooks/useGuild"
import rewards from "rewards"
import { PlatformName, PlatformType } from "types"
import { PlatformName } from "types"
import PlatformSelectButton from "./components/PlatformSelectButton"

type Props = {
Expand Down Expand Up @@ -44,16 +44,6 @@ const PlatformsGrid = ({ onSelection, disabledRewards, ...rest }: Props) => {
platform: "GATHER_TOWN",
description: "Manage spaces",
},
...(!guildPlatforms.find(
(platform) => platform.platformId === PlatformType.POLYGON_ID
)
? [
{
platform: "POLYGON_ID",
description: "Prove role membership",
} as PlatformsGridData,
]
: []),
{
platform: "TEXT",
description: "Gate special content, links, etc",
Expand All @@ -69,7 +59,7 @@ const PlatformsGrid = ({ onSelection, disabledRewards, ...rest }: Props) => {
description: "Gamification utility",
isGeneral: true,
},
...(featureFlags.includes("ERC20")
...(featureFlags?.includes("ERC20")
? [
{
platform: "ERC20",
Expand Down
2 changes: 0 additions & 2 deletions src/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export const env = createEnv({
// Guild APIs
NEXT_PUBLIC_API: z.string(),
NEXT_PUBLIC_BALANCY_API: z.string(),
NEXT_PUBLIC_POLYGONID_API: z.string(),

// Captcha
NEXT_PUBLIC_RECAPTCHA_SITE_KEY: z.string(),
Expand All @@ -70,7 +69,6 @@ export const env = createEnv({
runtimeEnv: {
NEXT_PUBLIC_API: process.env.NEXT_PUBLIC_API,
NEXT_PUBLIC_BALANCY_API: process.env.NEXT_PUBLIC_BALANCY_API,
NEXT_PUBLIC_POLYGONID_API: process.env.NEXT_PUBLIC_POLYGONID_API,

NEXT_PUBLIC_RECAPTCHA_SITE_KEY: process.env.NEXT_PUBLIC_RECAPTCHA_SITE_KEY,

Expand Down
9 changes: 3 additions & 6 deletions src/pages/[guild]/[group].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import useMembership from "components/explorer/hooks/useMembership"
import { GetStaticPaths, GetStaticProps } from "next"
import dynamic from "next/dynamic"
import Head from "next/head"
import { MintPolygonIDProofProvider } from "rewards/PolygonID/components/MintPolygonIDProofProvider"
import { SWRConfig } from "swr"
import { Guild } from "types"
import fetcher from "utils/fetcher"
Expand Down Expand Up @@ -150,11 +149,9 @@ const GroupPageWrapper = ({ fallback }: Props): JSX.Element => {
</Head>
<SWRConfig value={fallback && { fallback }}>
<ThemeProvider>
<MintPolygonIDProofProvider>
<JoinModalProvider>
<GroupPage />
</JoinModalProvider>
</MintPolygonIDProofProvider>
<JoinModalProvider>
<GroupPage />
</JoinModalProvider>
</ThemeProvider>
</SWRConfig>
</>
Expand Down
9 changes: 3 additions & 6 deletions src/pages/[guild]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import dynamic from "next/dynamic"
import Head from "next/head"
import ErrorPage from "pages/_error"
import { useEffect } from "react"
import { MintPolygonIDProofProvider } from "rewards/PolygonID/components/MintPolygonIDProofProvider"
import { SWRConfig } from "swr"
import { Guild, SocialLinkKey } from "types"
import fetcher from "utils/fetcher"
Expand Down Expand Up @@ -231,11 +230,9 @@ const GuildPageWrapper = ({ fallback }: Props): JSX.Element => {
<SWRConfig value={fallback && { fallback }}>
<ThemeProvider>
<MintGuildPinProvider>
<MintPolygonIDProofProvider>
<JoinModalProvider>
<GuildPage />
</JoinModalProvider>
</MintPolygonIDProofProvider>
<JoinModalProvider>
<GuildPage />
</JoinModalProvider>
</MintGuildPinProvider>
</ThemeProvider>
</SWRConfig>
Expand Down
87 changes: 0 additions & 87 deletions src/requirements/PolygonID/PolygonIDForm.tsx

This file was deleted.

Loading
Loading