From 712eeea2d12157b975131330306de7555a60058d Mon Sep 17 00:00:00 2001 From: Crisgarner <@crisgarner> Date: Fri, 21 Jun 2024 10:59:45 -0600 Subject: [PATCH] fix(ballot-messages): updated messages to be more clear, removed specific to optimism messages --- .env.example | 3 +++ src/config.ts | 7 +++--- .../ballot/components/BallotConfirmation.tsx | 10 +++++--- .../ballot/components/BallotOverview.tsx | 25 +++++++++---------- .../projects/components/AddToBallot.tsx | 16 ++++++------ src/pages/ballot/index.tsx | 14 +++++------ 6 files changed, 40 insertions(+), 35 deletions(-) diff --git a/.env.example b/.env.example index df9acd29..5b530678 100644 --- a/.env.example +++ b/.env.example @@ -36,6 +36,8 @@ NEXT_PUBLIC_SIGN_STATEMENT="Sign in to MACI-RPGF" # Unique identifier for your applications and lists - your app will group attestations by this id NEXT_PUBLIC_ROUND_ID="open-rpgf-1" +# Event title for the round, just for display +NEXT_PUBLIC_ROUND_ORGANIZER="PSE" # Name of the token you want to allocate (only updates UI) NEXT_PUBLIC_TOKEN_NAME="Votes" @@ -45,6 +47,7 @@ NEXT_PUBLIC_MAX_VOTES_TOTAL=150 # How many votes each project can receive NEXT_PUBLIC_MAX_VOTES_PROJECT=50 + # Voting periods # Determine when users can register applications, admins review them, voters vote, and results are published NEXT_PUBLIC_START_DATE=2024-01-01T00:00:00.000Z diff --git a/src/config.ts b/src/config.ts index 53a02528..39769816 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,9 +1,9 @@ import * as wagmiChains from "wagmi/chains"; export const metadata = { - title: "EasyRetroPGF", - description: "Open-source Retro Public Goods Funding platform", - url: "https://easy-retro-pgf.vercel.app", + title: "MACI RPGF", + description: "Open-source Retro Public Goods Funding platform with MACI for private on chain voting/", + url: "https://maci-rpgf.vercel.app", image: "/api/og", }; @@ -26,6 +26,7 @@ export const config = { maciStartBlock: Number(process.env.NEXT_PUBLIC_MACI_START_BLOCK ?? 0), maciSubgraphUrl: process.env.NEXT_PUBLIC_MACI_SUBGRAPH_URL ?? "", tallyUrl: process.env.NEXT_PUBLIC_TALLY_URL, + roundOrganizer: process.env.NEXT_PUBLIC_ROUND_ORGANIZER ?? "Optimism", }; export const theme = { diff --git a/src/features/ballot/components/BallotConfirmation.tsx b/src/features/ballot/components/BallotConfirmation.tsx index e06e92b5..0408a902 100644 --- a/src/features/ballot/components/BallotConfirmation.tsx +++ b/src/features/ballot/components/BallotConfirmation.tsx @@ -30,8 +30,10 @@ export const BallotConfirmation = ({ votes }: IBallotConfirmationProps): JSX.Ele

- Thank you for participating in RetroPGF 3. Please help us improve the process by providing feedback on - your experience as a badgeholder! + Thank you for participating in this round. If you have 5 minutes, we'd love to hear your feedback on + what we could do better to improve! Your feedback would always remain anonymous. It would, however, + greatly help us continue to iterate on the MACI-RPGF stack to keep learning and implementing improvements + to continue to build a better experience.

@@ -121,7 +120,7 @@ const SubmitBallotButton = ({ disabled = false }: ISubmitBallotButtonProps): JSX @@ -199,7 +198,7 @@ const BallotOverview = () => { {address && isRegistered && ( <> - Your ballot + Your vote
@@ -237,7 +236,7 @@ const BallotOverview = () => { <> {ballot?.published && ( )} @@ -245,7 +244,7 @@ const BallotOverview = () => { {!ballot?.published && !canSubmit && viewBallot ? ( ) : ( {inBallot ? ( ) : null}
@@ -100,6 +100,9 @@ export const ProjectAddToBallot = ({ id = "", name = "" }: IProjectAddToBallotPr const sum = sumBallot(allocations.filter((p) => p.projectId !== id)); const numVotes = ballot?.votes.length ?? 0; + const dialogMessage = `How much ${config.tokenName} should this Project receive to fill the gap between the impact they generated for + ${config.roundOrganizer} and the profit they received for generating this impact`; + const handleOpen = useCallback(() => { setOpen(true); }, [setOpen]); @@ -118,7 +121,7 @@ export const ProjectAddToBallot = ({ id = "", name = "" }: IProjectAddToBallotPr {isEligibleToVote && isRegistered ? ( <> - {ballot?.published && } + {ballot?.published && } {!ballot?.published && inBallot && ( @@ -133,17 +136,14 @@ export const ProjectAddToBallot = ({ id = "", name = "" }: IProjectAddToBallotPr variant="primary" onClick={handleOpen} > - Add to ballot + Add to vote )} ) : null} -

- How much {config.tokenName} should this Project receive to fill the gap between the impact they generated for - Optimism and the profit they received for generating this impact -

+

{dialogMessage}

{ setOpen(true); }} > - Remove all projects from ballot + Remove all projects from vote -

This will empty your ballot and remove all the projects you have added.

+

This will empty your vote and remove all the projects you have added.