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

Add hat badge to exec detail #221

Conversation

adamgoth
Copy link
Collaborator

@adamgoth adamgoth commented Nov 3, 2021

Link to Clubhouse story

https://app.shortcut.com/dux-makerdao/story/563/show-governing-proposal-status-on-exec-detail-page

What does this PR do?

Adds "Governing Proposal" badge to exec detail page

Steps for testing:

  1. Go to governing proposal page
  2. Observe badge ✨

Screenshots (if relevant):

Screen Shot 2021-11-03 at 2 15 04 PM

Screen Shot 2021-11-03 at 2 14 57 PM

Add a GIF:

@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #563: Show governing proposal status on Exec detail page.

@vercel
Copy link

vercel bot commented Nov 3, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/dux-core-unit/governance-portal-v2/8e9XKcp3a547Gj1u7CetZfobgNFE
✅ Preview: https://governance-portal-v2-git-feature-sc-563sho-919cde-dux-core-unit.vercel.app

@adamgoth adamgoth marked this pull request as ready for review November 3, 2021 13:34
@codecov
Copy link

codecov bot commented Nov 3, 2021

Codecov Report

Merging #221 (edf26e6) into develop (888f008) will decrease coverage by 0.56%.
The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #221      +/-   ##
===========================================
- Coverage    38.22%   37.65%   -0.57%     
===========================================
  Files           62       60       -2     
  Lines         1609     1604       -5     
  Branches       503      505       +2     
===========================================
- Hits           615      604      -11     
- Misses         987      993       +6     
  Partials         7        7              
Impacted Files Coverage Δ
pages/executive.tsx 57.03% <ø> (ø)
pages/executive/[proposal-id].tsx 0.00% <0.00%> (ø)
pages/index.tsx 73.17% <ø> (ø)
lib/utils.ts 63.21% <0.00%> (-1.15%) ⬇️
modules/executive/hooks/useAllSlates.ts
modules/executive/hooks/useHat.ts

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 888f008...edf26e6. Read the comment docs.

@@ -25,7 +25,9 @@ import getMaker, { getNetwork, personalSign } from 'lib/maker';
import { fadeIn, slideUp } from 'lib/keyframes';
import { getEtherscanLink, sortBytesArray } from 'lib/utils';
import { fetchJson } from 'lib/fetchJson';
import { useLockedMkr, useHat, useAllSlates } from 'lib/hooks';
import { useLockedMkr } from 'lib/hooks';
import { useHat } from 'modules/executive/hooks/useHat';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -84,7 +84,7 @@ export default function ExecutiveCard({ proposal, isHat, ...props }: Props): JSX
View proposal
</Button>
</Link>
{isHat && proposal.address !== '0x0000000000000000000000000000000000000000' ? (
{isHat && proposal.address !== ZERO_ADDRESS ? (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adamgoth adamgoth merged commit 69431c8 into develop Nov 4, 2021
@adamgoth adamgoth deleted the feature/sc-563/show-governing-proposal-status-on-exec-detail branch November 4, 2021 09:49
@adamgoth adamgoth mentioned this pull request Nov 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants