-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Vote rationale for whales (#1703)
* vote reason setup * added vote reason friction * rationale proposal section * check vp threshold * threshold moved to env var * requested changes * added reason on vote modal * requested changes * fix: rationale extra info * fix: modal * added tooltip to comment timestamp * label rename
- Loading branch information
Showing
37 changed files
with
515 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -112,6 +112,7 @@ export class SnapshotGraphql extends API { | |
metadata | ||
vp | ||
vp_by_strategy | ||
reason | ||
} | ||
} | ||
` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
function ReadReason() { | ||
return ( | ||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<g clipPath="url(#clip0_15492_3354)"> | ||
<path | ||
fillRule="evenodd" | ||
clipRule="evenodd" | ||
d="M7.99991 14C12.4187 14 15.9999 11.0906 15.9999 7.5C15.9999 3.90937 12.4187 1 7.99991 1C3.58116 1 -8.54305e-05 3.90937 -8.54305e-05 7.5C-8.54305e-05 8.90938 0.55304 10.2125 1.49054 11.2781C1.43116 12.0437 1.13429 12.725 0.82179 13.2437C0.649915 13.5312 0.474915 13.7625 0.34679 13.9187C0.281165 13.9969 0.231165 14.0563 0.193665 14.0969C0.182682 14.1079 0.173844 14.1178 0.166522 14.126C0.161343 14.1318 0.156923 14.1367 0.15304 14.1406L0.143665 14.15C-8.54291e-05 14.2937 -0.0407104 14.5063 0.0374146 14.6938C0.11554 14.8813 0.29679 15.0031 0.499915 15.0031C1.39679 15.0031 2.29991 14.725 3.04991 14.4C3.76554 14.0875 4.37491 13.7156 4.74679 13.4438C5.74054 13.8031 6.84054 14.0031 7.99991 14.0031V14ZM5 6.5C4.44772 6.5 4 6.94772 4 7.5C4 8.05228 4.44772 8.5 5 8.5H11C11.5523 8.5 12 8.05228 12 7.5C12 6.94772 11.5523 6.5 11 6.5H5Z" | ||
fill="#B9B7BE" | ||
/> | ||
</g> | ||
<defs> | ||
<clipPath id="clip0_15492_3354"> | ||
<rect width="16" height="16" fill="white" /> | ||
</clipPath> | ||
</defs> | ||
</svg> | ||
) | ||
} | ||
|
||
export default ReadReason |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
function UnreadReason() { | ||
return ( | ||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<g clipPath="url(#clip0_15492_3368)"> | ||
<path | ||
d="M7.99991 14C12.4187 14 15.9999 11.0906 15.9999 7.5C15.9999 3.90937 12.4187 1 7.99991 1C3.58116 1 -8.54291e-05 3.90937 -8.54291e-05 7.5C-8.54291e-05 8.90938 0.55304 10.2125 1.49054 11.2781C1.43116 12.0437 1.13429 12.725 0.82179 13.2437C0.649915 13.5312 0.474915 13.7625 0.34679 13.9187C0.281165 13.9969 0.231165 14.0563 0.193665 14.0969C0.174915 14.1156 0.162415 14.1313 0.15304 14.1406L0.143665 14.15C-8.54284e-05 14.2937 -0.0407104 14.5063 0.0374146 14.6938C0.11554 14.8813 0.29679 15.0031 0.499915 15.0031C1.39679 15.0031 2.29991 14.725 3.04991 14.4C3.76554 14.0875 4.37491 13.7156 4.74679 13.4438C5.74054 13.8031 6.84054 14.0031 7.99991 14.0031V14ZM3.99991 6.5C4.26513 6.5 4.51948 6.60536 4.70702 6.79289C4.89456 6.98043 4.99991 7.23478 4.99991 7.5C4.99991 7.76522 4.89456 8.01957 4.70702 8.20711C4.51948 8.39464 4.26513 8.5 3.99991 8.5C3.7347 8.5 3.48034 8.39464 3.29281 8.20711C3.10527 8.01957 2.99991 7.76522 2.99991 7.5C2.99991 7.23478 3.10527 6.98043 3.29281 6.79289C3.48034 6.60536 3.7347 6.5 3.99991 6.5ZM7.99991 6.5C8.26513 6.5 8.51948 6.60536 8.70702 6.79289C8.89456 6.98043 8.99991 7.23478 8.99991 7.5C8.99991 7.76522 8.89456 8.01957 8.70702 8.20711C8.51948 8.39464 8.26513 8.5 7.99991 8.5C7.7347 8.5 7.48034 8.39464 7.29281 8.20711C7.10527 8.01957 6.99991 7.76522 6.99991 7.5C6.99991 7.23478 7.10527 6.98043 7.29281 6.79289C7.48034 6.60536 7.7347 6.5 7.99991 6.5ZM10.9999 7.5C10.9999 7.23478 11.1053 6.98043 11.2928 6.79289C11.4803 6.60536 11.7347 6.5 11.9999 6.5C12.2651 6.5 12.5195 6.60536 12.707 6.79289C12.8946 6.98043 12.9999 7.23478 12.9999 7.5C12.9999 7.76522 12.8946 8.01957 12.707 8.20711C12.5195 8.39464 12.2651 8.5 11.9999 8.5C11.7347 8.5 11.4803 8.39464 11.2928 8.20711C11.1053 8.01957 10.9999 7.76522 10.9999 7.5Z" | ||
fill="#FF2D55" | ||
/> | ||
</g> | ||
<defs> | ||
<clipPath id="clip0_15492_3368"> | ||
<rect width="16" height="16" fill="white" /> | ||
</clipPath> | ||
</defs> | ||
</svg> | ||
) | ||
} | ||
|
||
export default UnreadReason |
Oops, something went wrong.