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

Deploy progress / abstain UI fixes #501

Merged
merged 39 commits into from
Apr 18, 2022
Merged
Changes from 38 commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
b1ed24a
Add utils package
sagarsaija Mar 21, 2022
3ddc483
newline at the end of tsconfig.json
sagarsaija Mar 21, 2022
8103b8a
remove debugging console.log
sagarsaija Mar 21, 2022
79865c7
Crispier toasts (#442)
NoahSaso Mar 22, 2022
60182c9
Display executed proposal TX hashes with link to Mintscan (#441)
NoahSaso Mar 22, 2022
edd0ff1
Improve proposal template UX (#440)
NoahSaso Mar 25, 2022
351a4ba
Update packages/utils/package.json
JakeHartnell Mar 25, 2022
8046549
Merge pull request #438 from DA0-DA0/util-package
JakeHartnell Mar 25, 2022
caf1809
Add check for connected wallet (#452)
jvanderen1 Mar 28, 2022
6c77efd
Show second by second countdown when unstaking. (#456)
0xekez Mar 30, 2022
81b0c71
Icons package (#428)
ebaker Mar 30, 2022
b4b4076
Added "Add Token" Button (#458)
jvanderen1 Apr 4, 2022
e8d730e
Fix formatting issue in Button.tsx. (#461)
0xekez Apr 5, 2022
5cfc7b8
Disable check for staked balance at proposal creation time. (#464)
0xekez Apr 8, 2022
d8b6879
Allow voting abstain on proposals. (#454)
0xekez Apr 9, 2022
d474752
Use version number from package.json. (#455)
0xekez Apr 9, 2022
c65a28a
Migrate away from Daisy UI and bring design closer to spec. (#457)
0xekez Apr 9, 2022
c7958f9
Merge branch 'main' into development
0xekez Apr 9, 2022
5e79f09
Persist description newlines on ContractView (#476)
sagarsaija Apr 10, 2022
89e1854
Reuse @cosmjs clients (#480)
sashimi36 Apr 10, 2022
129f8e4
Make connect wallet and wallet display button same sizes. (#482)
0xekez Apr 12, 2022
8e950ff
feat(ui): update reach tooltip styles (#485)
Apr 12, 2022
23fa762
Fix treasury typo (#488)
sagarsaija Apr 13, 2022
9f571e0
Update cosmJS dependency to reduce initial JS load size. (#479)
0xekez Apr 13, 2022
a5a816f
Better display when user did not vote on proposal. (#478)
0xekez Apr 13, 2022
0095a35
Swap positions of submit and preview in proposal form. (#477)
0xekez Apr 14, 2022
78e5c9f
Better empty state for new users (#449)
baoskee Apr 14, 2022
612bf59
feat: improve eslint and prettier integration (#487)
Apr 14, 2022
8590336
New proposal status UI (#489)
NoahSaso Apr 14, 2022
0ad5dd2
chore: format and lint all sources (#493)
Apr 14, 2022
c7907ad
Redeploy Vercel.
NoahSaso Apr 14, 2022
657a65a
Create proposal details card & make proposal details page responsive …
NoahSaso Apr 14, 2022
41cb719
Merge branch 'main' into development
NoahSaso Apr 14, 2022
788a19c
Merge branch 'main' of github:DA0-DA0/dao-ui
NoahSaso Apr 16, 2022
fef6183
feat(dapp): add create dao field tooltips (#486)
Apr 15, 2022
e6a0c8d
Minor hindsight proposal status UI tweaks (#498)
NoahSaso Apr 16, 2022
72c9235
Only show time left when proposal is open.
NoahSaso Apr 16, 2022
27ece80
Merge branch 'main' into development
NoahSaso Apr 17, 2022
b1cc11d
Fixes for abstain indicator clarity (#503)
NoahSaso Apr 18, 2022
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
58 changes: 30 additions & 28 deletions apps/dapp/components/ProposalDetailsSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -610,36 +610,38 @@ export const ProposalDetailsVoteStatus = ({
)
) : null}

{expiresInSeconds !== undefined && expiresInSeconds > 0 && (
<>
<p className="overflow-hidden mt-4 font-mono text-sm text-tertiary text-ellipsis">
Time left
</p>
{proposal.status === 'open' &&
expiresInSeconds !== undefined &&
expiresInSeconds > 0 && (
<>
<p className="overflow-hidden mt-4 font-mono text-sm text-tertiary text-ellipsis">
Time left
</p>

<p className="font-mono text-xs text-right text-dark">
{secondsToWdhms(expiresInSeconds, 2)}
</p>
<p className="font-mono text-xs text-right text-dark">
{secondsToWdhms(expiresInSeconds, 2)}
</p>

{maxVotingSeconds !== undefined && (
<div className="mt-1">
<Progress
alignEnd
rows={[
{
thickness: 3,
data: [
{
value: (expiresInSeconds / maxVotingSeconds) * 100,
color: 'rgb(var(--dark))',
},
],
},
]}
/>
</div>
)}
</>
)}
{maxVotingSeconds !== undefined && (
<div className="mt-1">
<Progress
alignEnd
rows={[
{
thickness: 3,
data: [
{
value: (expiresInSeconds / maxVotingSeconds) * 100,
color: 'rgb(var(--dark))',
},
],
},
]}
/>
</div>
)}
</>
)}

{threshold?.percent === 50 && yesVotes === noVotes && (
<div className="mt-4 text-sm">
Expand Down