feat: add presets for revshare and linktag#68
Conversation
| { | ||
| enabled: true, | ||
| title: 'Revenue Share', | ||
| image: 'widget_representation.svg', |
There was a problem hiding this comment.
are we using the widgets image for this ?
There was a problem hiding this comment.
for now yes, will write to request new svg designs after the first release
frontend/app/lib/presets.ts
Outdated
| link: `https://webmonetization.org/tools/prob-revshare/`, | ||
| tooltip: tooltips.revShareGenerator, | ||
| description: | ||
| "Probabilistic revenue sharing (revshare) is one way to share a portion of a web monetized page's earnings between multiple payment pointers" |
There was a problem hiding this comment.
"...between multiple payment pointers and wallet addresses."
The linktag and revshare pages themselves also need to reference wallet addresses, but I can take care of that part later.
frontend/app/lib/tooltips.ts
Outdated
| scriptModal: | ||
| 'Copy your script and insert it just before the closing </body> tag on your website, or place it within a script type element if you\'re using a site management software (ex: WordPress, etc). <br />Be sure to review and select all the options in the "Include" section, that you want to display on your website.', | ||
| linkTagGenerator: | ||
| 'Generate and customize your Web Monetization <link> tag to monetize your web pages. The generator helps you create the correct tag with your payment pointer and validates the syntax, ensuring proper implementation of Web Monetization in your HTML documents.', |
There was a problem hiding this comment.
I don't think they're really customizing anything, so "Generate your Web Monetization tag to monetize your web pages. The generator helps you create a tag from your payment pointer or wallet address and validates the syntax."
I think we can leave out the last piece regarding proper implementation.
frontend/app/lib/tooltips.ts
Outdated
| linkTagGenerator: | ||
| 'Generate and customize your Web Monetization <link> tag to monetize your web pages. The generator helps you create the correct tag with your payment pointer and validates the syntax, ensuring proper implementation of Web Monetization in your HTML documents.', | ||
| revShareGenerator: | ||
| 'Create a customized revenue sharing configuration that distributes Web Monetization earnings between multiple payment pointers. The generator helps you set weighted percentages for each recipient and validates the payment pointer format, ensuring fair distribution of streaming payments.', |
There was a problem hiding this comment.
Is this too much?
Split Web Monetization revenue between multiple payment pointers and wallet addresses. Assign a weight to each recipient, then add the generated link tag to your HTML documents. As you assign weights, the generator will calculate percentages. The percentages represent how often a given wallet address or payment pointer will receive payments each time a web monetized visitor views your content.
There was a problem hiding this comment.
no it's not, still looks good with some line break elements in between. thanks!
Requested changes
Move rev-share & linktag generators under publisher tools.
Add
descriptionandtooltiptext in tools home page for both linktag and rev-share