Skip to content

Commit

Permalink
Merge branch 'fix-voting-power-check' of https://github.com/snapshot-…
Browse files Browse the repository at this point in the history
…labs/sx-monorepo into fix-voting-power-check
  • Loading branch information
ChaituVR committed Jan 8, 2025
2 parents fe90b0a + 22488df commit c808a9d
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion apps/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"@snapshot-labs/lock": "^0.2.10",
"@snapshot-labs/pineapple": "^1.1.0",
"@snapshot-labs/prettier-config": "^0.1.0-beta.18",
"@snapshot-labs/snapshot.js": "^0.12.40",
"@snapshot-labs/snapshot.js": "^0.12.41",
"@snapshot-labs/sx": "^0.1.0",
"@vueuse/core": "^10.4.1",
"@walletconnect/core": "^2.11.0",
Expand Down
5 changes: 3 additions & 2 deletions apps/ui/src/components/FormSpaceAdvanced.vue
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,9 @@ watchEffect(() => {
type="info"
:learn-more-link="'https://docs.snapshot.box/spaces/add-custom-domain'"
>
To setup a custom domain you additionally need to open a pull request on
GitHub after you have created the space.
To set up a custom domain, you must subscribe to the Turbo plan and create a
CNAME record pointing to "cname.snapshot.box" with your DNS provider or
registrar.
</UiMessage>
<div class="s-box mt-3">
<UiInputString
Expand Down
2 changes: 1 addition & 1 deletion apps/ui/src/components/Layout/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ router.afterEach(() => {
@add="handleTransactionAccept"
@close="handleTransactionReject"
/>
<FlashMessageWelcome />
<FlashMessageWelcome v-if="!whiteLabelSpace" />
</div>
</template>

Expand Down
2 changes: 1 addition & 1 deletion apps/ui/src/components/ProposalExecutionsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function downloadExecution(execution: ProposalExecution) {
proposal.executions &&
proposal.executions.length > 0 &&
proposal.scores.length > 0 &&
getProposalCurrentQuorum(proposal.network, proposal) >
getProposalCurrentQuorum(proposal.network, proposal) >=
proposal.quorum &&
toBigIntOrNumber(proposal.scores[0]) >
toBigIntOrNumber(proposal.scores[1]) &&
Expand Down
7 changes: 4 additions & 3 deletions apps/ui/src/networks/common/graphqlApi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ function formatProposal(
proposal.execution_strategy_type === 'EthRelayer' && baseNetworkId
? baseNetworkId
: networkId;

const state = getProposalState(networkId, proposal, current);
return {
...proposal,
space: {
Expand Down Expand Up @@ -299,11 +299,12 @@ function formatProposal(
)
? proposal.max_end <= current
: proposal.min_end <= current,
state: getProposalState(networkId, proposal, current),
state,
network: networkId,
privacy: null,
quorum: +proposal.quorum,
flagged: false
flagged: false,
completed: ['passed', 'executed', 'rejected'].includes(state)
};
}

Expand Down
1 change: 1 addition & 0 deletions apps/ui/src/views/Proposal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ watchEffect(() => {
<button
v-if="
proposal.network === 's' &&
proposal.completed &&
['passed', 'rejected', 'executed'].includes(proposal.state)
"
class="mt-2.5 inline-flex items-center gap-2 hover:text-skin-link"
Expand Down
2 changes: 1 addition & 1 deletion apps/ui/src/views/Space.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ watch(
);
watchEffect(() => {
if (!space.value || isWhiteLabel.value) {
if (!space.value) {
setFavicon(null);
return;
}
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2543,10 +2543,10 @@
resolved "https://registry.yarnpkg.com/@snapshot-labs/prettier-config/-/prettier-config-0.1.0-beta.18.tgz#fcbd86d4557821bff774d60e5c636ad47ed85d77"
integrity sha512-v6tj7l19KJUWjBbsWpwxaYO2mlIDBFyAG0OMSPhUgrhltO7b6R4Ejxn2k4Qgi/NtlnOrj+3Gt3eQRry8Jfgjrg==

"@snapshot-labs/snapshot.js@^0.12.40":
version "0.12.40"
resolved "https://registry.yarnpkg.com/@snapshot-labs/snapshot.js/-/snapshot.js-0.12.40.tgz#ab07a35f057de380cf0c5f6f661370001dce2a50"
integrity sha512-pZb3xERF6w8n6p8tm9pD5OIwJMPklrFA8UzOKZQvJFH+nn3CMJdlbp1rp496oVzd6tArrHrQ6sLI0Nbo59nBCw==
"@snapshot-labs/snapshot.js@^0.12.41":
version "0.12.41"
resolved "https://registry.yarnpkg.com/@snapshot-labs/snapshot.js/-/snapshot.js-0.12.41.tgz#3a0a2866a78f14368eb0648ef2e22a8e66422b26"
integrity sha512-Deikl21gUzeY/2TE8xTNsHbwTNcSqvxDnrzA1LcLwyqAzA6tigwNBlqaS5E35v7t5z7Iz62j+CPEFzxv1ta6cA==
dependencies:
"@ensdomains/eth-ens-namehash" "^2.0.15"
"@ethersproject/abi" "^5.6.4"
Expand Down

0 comments on commit c808a9d

Please sign in to comment.