Open maelle opened 6 years ago
We can certainly add that. If editors are on board, I will update the badge generator to do this.
I am on board. We should add to the approval template to bump the version number before transferring.
@karthik could you add this to the svg? 😺
Let me work on that. Right now I just have 3 base svgs (unknown, in review, and peer-reviewed). I don't edit the svgs, but will have to figure out how do that programmatically. Stay tuned :)
Something like this? I tested this with the longest version we have had so far (from Carl of course!)
LGTM
@noamross ?
Note that in original size, this new badge is actually unreadable. This is way too much text for a tiny badge and I don't have a good solution to this but I'll keep looking.
Maybe we should put a condition on versions, i.e. upping the version before acceptance to something with 3 numbers and 2 periods max?
ha, serves me right for leaving a version number at the usethis
default!
Here is a different version that is longer but also readable. I will add the ropensci logo once the version is finalized. Thoughts on this one?
Nice!
How is this for an attempt?
For a pending one (without and with)
For an accepted one (without and with)
Known issues: The svg tried to fill the space with the text so that's why the text spacing is so wide when the version number isn't too long. When it is long, it looks fine. e.g.
Not sure how to fix this. If I make the badge with narrower, longer versions will overflow the text.
Note that I deployed these new badges already (without yet replacing our current ones). To see the new ones, replace <issue_number>_status.svg
with <issue_number>v.svg
@jeroen Do you have some good svg foo to fix the text spacing issues? I tried playing with the text-spacing style, kerning, etc and nothing really worked.
I think you just need to decrease the textLength
property?
Nice! I fixed it.
Maybe also decrease the <svg width="192"
and <text x="1085"
so that it's a bit smaller?
I'll leave those two be otherwise the longest version number badge text will not fit.
How do we determine/record what the version at acceptance is?
Good question. Right now this just scrapes what they put into their submission.
Would be nice to have a whedon style bot that records this in the first comment when closing the thread.
version submitted: foo
version accepted: foo.0.1.1.9999
I suppose editors could also do this manually for now.
For the bot list! So this should be in the editor's checklist/template, and we'll want to write a script that goes back and records this retrospectively for previous acceptances.
What's the current status of these badges? Can they be deployed manually? Do we do so by putting in the text above, or can we specify the version in the badge URL?
Nothing has changed as far as status. If we are to do this manually, we should consider (as per slack discussion) starting a new airtable with accepted package metadata. Copying over from slack:
Package name
Author(s)
affiliation(s)
submission URL
reviewers
date submitted
date accepted
editor
version accepted
JOSS
MEE
and then auto generate badges from there.
I created a draft here: https://airtable.com/tblW571HaPslf14L7/viwX095g0RmqWGsSk
We need to manually fill in: version accepted (at the least) and then the rest of the info. Then we can automate going forward.
What is the status on this @karthik i.e. what needs to be done?
Idea by @noamross
Thoughts, badge master @karthik?