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

Feat/spell address hash #200

Merged
merged 19 commits into from
Oct 14, 2021
Merged

Feat/spell address hash #200

merged 19 commits into from
Oct 14, 2021

Conversation

rafinskipg
Copy link
Contributor

Link to Clubhouse story

https://app.shortcut.com/dux-makerdao/story/43/add-spell-details-tab-for-execs

What does this PR do?

Adds spell detail for executive, depends on makerdao/dai.js#296

Steps for testing:

Go to executive detail and see spell info

Screenshots (if relevant):

image

Any additional helpful information?:

It still needs to add this icon
image

Add a GIF:

@vercel
Copy link

vercel bot commented Oct 11, 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/BnPPk5TdL4gRUjjDU2L47wXULtKy
✅ Preview: https://governance-portal-v2-git-feat-spell-address-hash-dux-core-unit.vercel.app

@codecov
Copy link

codecov bot commented Oct 13, 2021

Codecov Report

Merging #200 (367de96) into develop (cdc3e8e) will decrease coverage by 0.04%.
The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #200      +/-   ##
===========================================
- Coverage    38.21%   38.16%   -0.05%     
===========================================
  Files           62       62              
  Lines         1599     1601       +2     
  Branches       502      502              
===========================================
  Hits           611      611              
- Misses         981      983       +2     
  Partials         7        7              
Impacted Files Coverage Δ
lib/theme.js 57.14% <ø> (ø)
pages/api/executive/analyze-spell/[address].ts 0.00% <0.00%> (ø)

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 cdc3e8e...367de96. Read the comment docs.

package.json Outdated Show resolved Hide resolved
modules/executive/components/SpellEffectsTab.tsx Outdated Show resolved Hide resolved
modules/executive/components/SpellEffectsTab.tsx Outdated Show resolved Hide resolved
modules/executive/components/SpellEffectsTab.tsx Outdated Show resolved Hide resolved
modules/executive/components/SpellEffectsTab.tsx Outdated Show resolved Hide resolved
modules/app/components/Icon/index.tsx Outdated Show resolved Hide resolved
Comment on lines +86 to +87
sx={theme => ({
background: theme.colors?.background,
Copy link
Collaborator

Choose a reason for hiding this comment

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

This fixes a bug with dark mode. I forgot how much@reach makes it a pain to use our theme, but this is how it can be done. Supposedly it is compatible with emotion so I have to look into how we can integrate our theme file with reach.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks @b-pmcg , forgot about the dark theme

@@ -34,37 +34,6 @@ const icons = {
</g>
),
viewBox: '0 0 15 15'
},
hourglass: {
Copy link
Collaborator

Choose a reason for hiding this comment

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

@rafinskipg Moved these to the theme so we can use the dai-ui Icon component, which allows us to pass a color when we set the fill/stroke to currentColor. Why do we have a clone of the Icon component in the frontend? Is there a namespace issue or something?

Copy link
Collaborator

@b-pmcg b-pmcg left a comment

Choose a reason for hiding this comment

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

LG
TM

use dai-ui icon component and move svg to theme
@b-pmcg b-pmcg force-pushed the feat/spell-address-hash branch from e8144ae to 367de96 Compare October 14, 2021 00:08
@rafinskipg rafinskipg merged commit 6541e2b into develop Oct 14, 2021
@rafinskipg rafinskipg deleted the feat/spell-address-hash branch October 14, 2021 09:34
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.

3 participants