-
Notifications
You must be signed in to change notification settings - Fork 19
Conversation
Tests will measure different things for each version.
Leave test/example source data in test/ root rather than duplicating across versions; data should be the same and reflect current Gratipay API.
All pass right now.
Receiving can no longer be anonymous (giving can). Same as 91bbd00c0826f49b825 2a17cbe8bd561d32772db.
Change "receiving" language to "taking" language.
#133 changes are incorporated. |
Now, to the fun part.
An example, using
Where it says |
Only works for default-widget-team.html. Enough for tonight.
Forgot to test before committing. |
Leaving the others for now, will step through as needed.
Stripping this down to basic functionality so teams can start using it.
Teams don’t give.
I think it's ready for review. Very simple and stripped down. Does not modify anything from
Example using
|
// Define window.Gratipay if it hasn't previously been defined | ||
if (!window.Gratipay) { | ||
// For legacy reasons, have window.Gittip also be defined | ||
window.Gittip = |
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.
Let's remove all the Gittip
references from v2, ya?
Punchlist
|
Here's a diff between v1 and v2 in cc11356: https://gist.github.com/whit537/2411be1bb1037d4e6cfb15310f25715f |
Comments sound good so far, can't test until tonight at earliest.
Should I be using this information for something? |
Nope. That's just FYI at this point—mostly for me and @kaguillera as we review this. :)
More comments coming (probably). I will update the punchlist and let you know when I'm done reviewing. :) |
<a class="gratipay-profile-link">profile link</a><br> | ||
Identity: <span class="gratipay-identity"></span><br> | ||
Receiving: <span class="gratipay-receiving"></span><br> | ||
Goal: <span class="gratipay-goal"></span><br> |
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.
We can drop goal
throughout both the v1 and v2 APIs. We haven't had goals since ... I don't know, but not for a while now.
<div data-gratipay-teamslug="gratipay" data-gratipay-widget="custom"> | ||
Username: <span class="gratipay-slug"></span> | ||
<a class="gratipay-profile-link">profile link</a><br> | ||
Identity: <span class="gratipay-identity"></span><br> |
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.
We can drop identity, too. We're just dealing with Teams now, which are all plural.
var Gratipay = window.Gratipay || {}; | ||
|
||
// Where's our files? | ||
var api = window.grtpAPI || 'https://grtp.co/v1/'; |
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.
Should be v2.
👍 |
Lots to do. Starting with a clean/working duplication of v1 to v2, then will start chipping away.
#103 (comment):
A different PR:
public.json
.