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

Donation Flairs Improvements #3043

Open
wants to merge 3 commits into
base: donation-flairs
Choose a base branch
from

Conversation

anshg1214
Copy link
Member

@anshg1214 anshg1214 commented Nov 21, 2024

This PR:

  1. Adds a Validation in the backend
  2. Adds a modal to show information about flairs

If we want to backfill the donor's data, I've written this function https://gist.github.com/anshg1214/48a24f5fa50d284f178e2eab2d31ba16.

@anshg1214 anshg1214 marked this pull request as ready for review November 26, 2024 10:16
Copy link
Member

@MonkeyDo MonkeyDo left a comment

Choose a reason for hiding this comment

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

Looking nice!
A couple of small changes suggestions to fine-tune the UI

frontend/js/src/donors/Donors.tsx Show resolved Hide resolved
@@ -50,6 +51,7 @@ export default class RecentListens extends React.Component<
</div>
<div className="row">
<div className="col-md-4 col-md-push-8">
<FlairsExplanationButton />
Copy link
Member

Choose a reason for hiding this comment

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

I think on this page the link would be better placed under the recent donors card

@@ -494,6 +495,7 @@ export default function Listen() {
/>
)}
</div>
<FlairsExplanationButton />
Copy link
Member

Choose a reason for hiding this comment

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

Same as the recent listens, on this page i would suggest placing the link in UserSocialNetwork component instead, but in-between both of the card components that it renders.
I think that has the best noticeability vs. annoyance ratio :p

@@ -648,6 +649,7 @@ export default function UserFeedPage() {
)}
</div>
<div className="col-md-offset-1 col-md-4">
<FlairsExplanationButton />
Copy link
Member

Choose a reason for hiding this comment

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

With my suggested change to put the link in UserSocialNetwork this will need to be removed

Ready to support us? <Link to="/donate/">Donate here</Link> or{" "}
<Link to="/donors/">view our donors</Link>
.
<br />
Copy link
Member

Choose a reason for hiding this comment

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

Using paragraphs > using <br> elements :p

Suggested change
<br />
<p>
These are special flairs that show our appreciation for donations!
</p>
<p>
Support ListenBrainz with a donation and unlock these effects on
your username. Each $5 donation unlocks flairs for a month, and
larger donations extend your access time.
</p>
<p>
You can choose your flair from a selection in the{" "}
<Link to="/settings/">user settings page.</Link>
</p>
<p>
Ready to support us? <Link to="/donate/">Donate here</Link> or{" "}
<Link to="/donors/">see who else is supporting</Link>.
</p>

Ready to support us? <Link to="/donate/">Donate here</Link> or{" "}
<Link to="/donors/">view our donors</Link>
.
<br />
Copy link
Member

Choose a reason for hiding this comment

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

Laying it even thicker

Suggested change
<br />
These are{" "}
<span className="flair sliced strong" data-text="special flairs">
special flairs
</span>{" "}
to show our appreciation for your donations!

@MonkeyDo
Copy link
Member

Sorry,m some of those code suggestions are on the wrong line....

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