diff --git a/.changeset/angry-mails-enjoy.md b/.changeset/angry-mails-enjoy.md new file mode 100644 index 000000000..2e34c5206 --- /dev/null +++ b/.changeset/angry-mails-enjoy.md @@ -0,0 +1,5 @@ +--- +"frontend": patch +--- + +SOV-3196: add voting tooltips to Voting proposals page diff --git a/.changeset/brave-experts-cover.md b/.changeset/brave-experts-cover.md new file mode 100644 index 000000000..9138b9811 --- /dev/null +++ b/.changeset/brave-experts-cover.md @@ -0,0 +1,5 @@ +--- +"frontend": patch +--- + +SOV-3319: Fix proposal type diff --git a/.changeset/fifty-baboons-fry.md b/.changeset/fifty-baboons-fry.md new file mode 100644 index 000000000..a46c02c59 --- /dev/null +++ b/.changeset/fifty-baboons-fry.md @@ -0,0 +1,5 @@ +--- +"frontend": patch +--- + +SOV-3012: Bitocracy alerts diff --git a/.changeset/fresh-goats-begin.md b/.changeset/fresh-goats-begin.md new file mode 100644 index 000000000..14d7d0375 --- /dev/null +++ b/.changeset/fresh-goats-begin.md @@ -0,0 +1,5 @@ +--- +"frontend": patch +--- + +SOV-3225: Open proposal on row click diff --git a/.changeset/giant-ducks-laugh.md b/.changeset/giant-ducks-laugh.md new file mode 100644 index 000000000..ed61f4e54 --- /dev/null +++ b/.changeset/giant-ducks-laugh.md @@ -0,0 +1,5 @@ +--- +"frontend": patch +--- + +SOV-3195: add voting power section diff --git a/.changeset/happy-carrots-fold.md b/.changeset/happy-carrots-fold.md new file mode 100644 index 000000000..9481d044e --- /dev/null +++ b/.changeset/happy-carrots-fold.md @@ -0,0 +1,5 @@ +--- +"frontend": patch +--- + +SOV-3334: Fix cast vote mobile diff --git a/.changeset/many-fishes-hang.md b/.changeset/many-fishes-hang.md new file mode 100644 index 000000000..e4bcbcdd2 --- /dev/null +++ b/.changeset/many-fishes-hang.md @@ -0,0 +1,5 @@ +--- +"frontend": patch +--- + +fix: Bitocracy proposal issues diff --git a/.changeset/moody-fans-attack.md b/.changeset/moody-fans-attack.md new file mode 100644 index 000000000..b8a7a825e --- /dev/null +++ b/.changeset/moody-fans-attack.md @@ -0,0 +1,5 @@ +--- +"frontend": patch +--- + +SOV-3327: Fix status labels diff --git a/.changeset/nervous-swans-lick.md b/.changeset/nervous-swans-lick.md new file mode 100644 index 000000000..48772e832 --- /dev/null +++ b/.changeset/nervous-swans-lick.md @@ -0,0 +1,5 @@ +--- +'frontend': patch +--- + +Bitocracy page diff --git a/.changeset/olive-olives-obey.md b/.changeset/olive-olives-obey.md new file mode 100644 index 000000000..4b0a1d92c --- /dev/null +++ b/.changeset/olive-olives-obey.md @@ -0,0 +1,6 @@ +--- +"frontend": patch +"@sovryn/contracts": patch +--- + +SOV-3239: Support/Reject button in Cast your vote diff --git a/.changeset/pink-buckets-rhyme.md b/.changeset/pink-buckets-rhyme.md new file mode 100644 index 000000000..d761c62b8 --- /dev/null +++ b/.changeset/pink-buckets-rhyme.md @@ -0,0 +1,6 @@ +--- +"frontend": patch +"@sovryn/ui": patch +--- + +SOV-3010: Individual Proposal page diff --git a/.changeset/pink-monkeys-wash.md b/.changeset/pink-monkeys-wash.md new file mode 100644 index 000000000..bb2ac7362 --- /dev/null +++ b/.changeset/pink-monkeys-wash.md @@ -0,0 +1,5 @@ +--- +"frontend": patch +--- + +SOV-3011: Export CSV diff --git a/.changeset/proud-rivers-give.md b/.changeset/proud-rivers-give.md new file mode 100644 index 000000000..9ef61b67d --- /dev/null +++ b/.changeset/proud-rivers-give.md @@ -0,0 +1,5 @@ +--- +"frontend": patch +--- + +SOV-2922: voting proposals page diff --git a/.changeset/shiny-years-leave.md b/.changeset/shiny-years-leave.md new file mode 100644 index 000000000..3748c2bbf --- /dev/null +++ b/.changeset/shiny-years-leave.md @@ -0,0 +1,5 @@ +--- +"frontend": patch +--- + +SOV-3226: Fix bitocracy alerts button diff --git a/.changeset/silver-mayflies-sell.md b/.changeset/silver-mayflies-sell.md new file mode 100644 index 000000000..24a162c6e --- /dev/null +++ b/.changeset/silver-mayflies-sell.md @@ -0,0 +1,5 @@ +--- +'@sovryn/ui': patch +--- + +SOV-3008: add bar component with threshold option diff --git a/.changeset/small-fishes-work.md b/.changeset/small-fishes-work.md new file mode 100644 index 000000000..911c988f1 --- /dev/null +++ b/.changeset/small-fishes-work.md @@ -0,0 +1,5 @@ +--- +"frontend": patch +--- + +SOV-3312: Fix small bugs diff --git a/.changeset/thin-geckos-fail.md b/.changeset/thin-geckos-fail.md new file mode 100644 index 000000000..583ec7e24 --- /dev/null +++ b/.changeset/thin-geckos-fail.md @@ -0,0 +1,5 @@ +--- +"frontend": patch +--- + +SOV-3288: Show the current state of voting diff --git a/.changeset/two-ligers-relax.md b/.changeset/two-ligers-relax.md new file mode 100644 index 000000000..8b2fa76d3 --- /dev/null +++ b/.changeset/two-ligers-relax.md @@ -0,0 +1,5 @@ +--- +"frontend": patch +--- + +SOV-3013: Voting - Next Steps modal diff --git a/.changeset/yellow-tips-sip.md b/.changeset/yellow-tips-sip.md new file mode 100644 index 000000000..60b8e9da2 --- /dev/null +++ b/.changeset/yellow-tips-sip.md @@ -0,0 +1,6 @@ +--- +"frontend": patch +"@sovryn/contracts": patch +--- + +SOV-3009: voting actions diff --git a/apps/frontend/package.json b/apps/frontend/package.json index 1e5fd4b43..c45b90c31 100644 --- a/apps/frontend/package.json +++ b/apps/frontend/package.json @@ -45,10 +45,14 @@ "react-dom": "18.2.0", "react-helmet-async": "1.3.0", "react-i18next": "12.0.0", + "react-markdown": "8.0.7", "react-router-dom": "6.4.2", "react-scripts": "5.0.1", + "react-timer-hook": "3.0.7", "reactjs-localstorage": "1.0.1", + "remark-gfm": "3.0.1", "rxjs": "7.5.6", + "sanitize-html": "2.11.0", "socket.io-client": "4.5.4", "utf8": "^3.0.0" }, diff --git a/apps/frontend/src/app/2_molecules/ConnectWalletButton/ConnectWalletButton.tsx b/apps/frontend/src/app/2_molecules/ConnectWalletButton/ConnectWalletButton.tsx index 09f6c4505..ab21a7670 100644 --- a/apps/frontend/src/app/2_molecules/ConnectWalletButton/ConnectWalletButton.tsx +++ b/apps/frontend/src/app/2_molecules/ConnectWalletButton/ConnectWalletButton.tsx @@ -1,4 +1,4 @@ -import React, { FC, PropsWithChildren, useCallback, useState } from 'react'; +import React, { FC, PropsWithChildren, useCallback } from 'react'; import { t } from 'i18next'; import { nanoid } from 'nanoid'; @@ -12,9 +12,9 @@ import { WalletIdentity, } from '@sovryn/ui'; -import { EmailNotificationSettingsDialog } from '../../3_organisms/EmailNotificationSettingsDialog/EmailNotificationSettingsDialog'; import { useNotificationContext } from '../../../contexts/NotificationContext'; import { translations } from '../../../locales/i18n'; +import { sharedState } from '../../../store/rxjs/shared-state'; export type ConnectWalletButtonProps = { onConnect: () => void; @@ -35,7 +35,6 @@ export const ConnectWalletButton: FC< className, dataAttribute, }) => { - const [open, setOpen] = useState(false); const { addNotification } = useNotificationContext(); const onCopyAddress = useCallback(() => { @@ -48,6 +47,11 @@ export const ConnectWalletButton: FC< }); }, [addNotification]); + const handleSettingsClick = useCallback( + () => sharedState.actions.openEmailNotificationSettingsDialog(), + [], + ); + if (!address) { return (