-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Rewards Tip Floating Dialog #1221
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
Comments
Looks like there's two levels of API needed:
Therefore we can implement two levels of API: Static c++ API (Donate and Tip)
Javascript API (Tip)
|
@petemill for donate we need a lot more data. Will this data be fetched inside this dialog and we can use origin as to what data we need in the webui? |
@NejcZdovc lots of data can be fetched from the |
yeah to get data from rewards service I only need origin. Based on that I can get all other data. Would it be possible to send in instead of origin publisher key? This way we don't need to calculate it from origin again? |
@NejcZdovc that sounds possible if all triggers for the dialog know the Publisher Key. It is only the Rewards extension popup, and does that know it? Edit: I'm just wondering if now or in the future we would have a unknowledgable trigger - such as a menu item that simply says 'Donate to this site' |
@petemill yeah they know that key. For other options you could always call rewards service that will return publisher key based on origin and then you trigger donate |
Sure we can support both 👍. What about tipping @NejcZdovc? Will it be enough to have origin / publisherId and the site-specific creator name. E.g. twitter.com and @twitterusername ? |
yup as long as we know to who like/heart belong (twitter handler) we should be good |
@rebron @mandar-brave please can we confirm which milestone we're currently targeting floating user tips, so I can prioritize work - is it still '1.0'? |
@petemill it's targeted for 57 build |
Just noting that we still don't have:
|
For Donate dialog I did use
For the Tip dialog, we are considering using DOM injection for now, e.g. brave/brave-core#1040 |
Just found an interesting precedent in blink for displaying an overlay on the webcontent which is native (and hence not part of the host DOM) but contains web content with a custom js api, as well as exactly the custom popup shape we're looking for: InspectorOverlayAgent.cc cc @simonhong @pilgrim-brave @davidtemkin (UX considerations aside) |
closing as we implemented this in a different way |
Web-ui dialog
The text was updated successfully, but these errors were encountered: