-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[core] Support for bridge maintainers' donation URLs #2102
Conversation
If you want to test this, just add something like this to your bridge:
|
@ORelio and @JackNUMBER hi! Any suggestions about that link? Also ping @somini @VerifiedJoseph @sysadminstory @corenting @AntoineTurmel @teromene @mitsukarenai @logmanoriginal. If you haven't read discussion about donation, you can read it here #2063 |
Forgot to ping @Roliga |
About the colors: I'm not the best person for color choices, so feel free to change those :) My idea was to use a darker green for the link and a lighter green for the hover. If you have better values, go for it. I just wanted to use a positive color so the user notices it. |
Thank you @Bockiii for initiating the design update. I suggest this color, as a tribute to the old logo ;) Or something less "eye catchy". This way the buttons are limited to the output format. |
No problem :)
That color is also fine with me. If you have an idea for the lighter "hover" color, post the values and I can change them
I actually want it to be catchy. If the maintainer doesnt provide the URL, it isn't shown at all, so it will only be shown on bridges with donation info. That way, people will actually notice the option and can then still choose to ignore it. |
@JackNUMBER I like Fix 1 better than Fix 2. Also, "Fix 3" could be just to write "Donate" on the button and not have the issue at all :D I just wanted to make clear that you donate to the bridge maintainer and not to rss-bridge in general (we could/should put a button for that somewhere as well btw) |
Agreed!
Agreed too! That's why I keep the complete label you did :) |
donezo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More code style comments than functional 😄
Woops. didnt mean to start the review :D You can close that. I added a new commit, doing all the style changes from @JackNUMBER |
@em92 Do you want to add a donate button to rss-reader as well? I would suggest doing it next to the hide-inactive-button. This way it's out of sight usually but still visible enough to not completely overlook. I would do it in the same visual style as the maintainer donate buttons, just smaller to fit the hide-inactive button. Thoughts? Also, do we want to make this configurable? So add a setting to not show donation buttons at all? I'm 80% "no" on this, but maybe someone else has a good point to make. |
The design looks fine to me, and I think that the idea of allowing donations for bridge maintainers is a great idea as well. |
I am more on the side of "Make it visible on every specific bridge and less visible on the front page". So my vote is against the small donate link. You can inline-review and add changes btw @JackNUMBER . If you change the .css to the 2-line-fix1, I can accept them here in this PR. |
Isn't that one of the most universally hated banners in the web? I'm still pro-button, but if you want to go with the text link, I would definitely not do a banner. I'll just say that this will be overlooked completely. |
Should we run a public poll for the different solutions or wo wants to decide this? I can code the solution, I just need to know the "what" :D |
@Bockiii, I think we need to have both "clearly visible button in html preview" and "small text link in bridge card" and option, where instance admin chooses one (or even none, if admin does not want to show them). The default one should be "clearly visible button", 'cos of strategy to promote donation.
@somini , that is discussable, but not here. |
If you mean add donation link to feed items, then no. That is definitely going to be frustrating for users. |
I meant a "donate to rss-bridge" link somewhere. One option would be next to the "show inactive" button. At the end of the site and usually half-greyed out if you dont hover over it. As I user, i would be find with it being there. So I will do this:
I would not do it opt-in since we want to promote the usage. In the future, we could switch the default in the config ini to opt-in. |
Current state:
Thoughts? |
Hi, just read all the discussion and I totally agree with this end result. With donate link not too agressive in bridge list, more visible button in bridge details, and setting to optionally disable the feature 👍 |
However I'm not super confident in the financial part of the feature: what happens if several people work on a bridge? How to split/manage donations for the project-wide donation link? I'm not planning to accept donations for my own bridges in the near future but I'm still curious 🤔 |
for the general: no idea. For the maintainer: I think the majority of bridges have 1 maintainer. If its more than one, I assume the team has to decide if the "old" maintainer is still worthy enough. We could also do a mandatory site in the repo were we list a kind-of-history. "Originally by Peter, maintained by Paul since 2018. Link for Peter <> Link for Paul <>" or something... idk. I just picked up the todo, I have no game in this fight |
LGTM. |
it's been 4 days. Anyone still thinking about anything? |
Ah, I see that the discussion in the discussions post is still going. All good then. |
Any blocker once PHPCS problems are fixed ? @em92 |
lib/BridgeList.php
Outdated
@@ -178,10 +179,14 @@ private static function getFooter($totalBridges, $totalActiveBridges, $showInact | |||
|
|||
} | |||
|
|||
if($donationsAllowed) { | |||
$donation = ' ~ <a href="http://www.google.com">Donate</a>'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wnat is expected here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, thats right. Thats the rss-bridge-general-donation-url, so not bridge specific but for rss-bridge itself. You need to define that link
Okay. If you ever want to add a general dono URL, you have an example. Other than that, we would also need to adapt documentation. How far along is the rework? |
Mark Ruffallo and Leonardo Di Caprio meme |
gj @Bockiii ! |
Contribution to #2099
This adds a new const "DONATION_URL" to the bridges. If set, a new (green for better distinguishing) button will be shown on the HTML overview, linking to that URL.