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: side round support + banner tweaks + add tooltip #9641

Merged
merged 5 commits into from
Nov 9, 2021

Conversation

thelostone-mc
Copy link
Member

@thelostone-mc thelostone-mc commented Oct 29, 2021

Description

Sideround Changes

Updates models to introduce new fields on GrantCLR for mini banner.
While creating a new round , these values would have to be set right in order to ensure it's rendered as expected

  • type -> select if GrantCLR is main / sponsor / cause

  • logo_text_hex - > hex color of text within logo

  • banner_bg_hex -> hex color of background below logo (aka called banner)

  • banner_text_hex -> hex color of text within banner

  • banner_text -> mini text on the banner

  • GIVEN I am a user on the grants app homepage
    WHEN I am looking at the active matching pools
    THEN I see a title and description to the entire matching pool section as indicated by the design.

  • GIVEN I am a user on the grants app homepage
    WHEN I am looking at the active matching pools
    THEN I see the matching amount above "available", color-coded banners, and matching pool descriptions as indicated by the design.

  • GIVEN I am a Grants app internal operator on the grant brand routing policy page
    WHEN I edit a grant branding policy
    THEN I can edit the matching amount, hex color, and description of the matching pool banner.

Testing

image


Tooltip Changes

As a Grant owner, I want to see how much matching I’ve received from the matching pool(s) my grant are a part of, and understand which matching pools my grant is in.

Acceptance Criteria or Definition of Done

  • GIVEN I am on a grant detail page
    WHEN I look at the metrics under "Active Matching Rounds"
    THEN I see the total matching funds the grant has received across all rounds ($X from matching pools).

  • GIVEN I am looking at the metrics under "Active Matching Rounds"
    WHEN I hover over "$X from matching pools"
    THEN I see a tooltip with a description explaining what the metric means and which matching pools the grant is a part of.

Testing

image


Refers/Fixes

closes #9635
closes #9636
closes #9649

@thelostone-mc thelostone-mc changed the title feat: side round support + banner tweaks feat: side round support + banner tweaks + add tooltip Nov 2, 2021
@thelostone-mc thelostone-mc marked this pull request as ready for review November 2, 2021 05:31
height: 111px !important;
}

@media (max-width: 991.98px) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we add a utility to manage responsive fonts rather than handling them inline?

Copy link
Contributor

@gdixon gdixon left a comment

Choose a reason for hiding this comment

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

LGTM! Just one small question, but we can get this reworked if we chose to go that way!

Comment on lines 859 to 862
active_round_names= []
for active_round in self.in_active_clrs.all():
active_round_names.append(active_round.display_text)

Copy link
Contributor

@chibie chibie Nov 3, 2021

Choose a reason for hiding this comment

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

great work! just this -> would be more performant if we do

active_round_names = self.in_active_clrs.values_list('display_text', flat=True)

Copy link
Member Author

Choose a reason for hiding this comment

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

hmm this won't work as such ! I might have to typcast it into a list

@thelostone-mc thelostone-mc merged commit b585c05 into gitcoinco:master Nov 9, 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
4 participants