You are not logged in.

#1 2016-02-22 08:36:37

Alir3z4
Member
From: مغز
Registered: 2010-11-06
Posts: 14
Website

Badges & meta data for AUR packages

We wrote a project called "badge" that will give you some meta data and badges for AUR packages as well as other services.

For example, the below are badges for AUR pkg git-cola:

  • Version

  • Number of Votes

  • Popularity

  • Status

  • Maintainer

  • License

The project has been implemented in Python and it's an OpenSource project hosted on Github and runs on ArchLinux 64 bit 2 GB RAM backed by OpenVZ.
Deployment and contribution is done on Github repo and each time we push to Master branch on git it get deployed production.

I would love to know your suggestions and comments about this.

Website: badge.kloud51.com
Github repo: https://github.com/SavandBros/badge
Issue tracker: https://github.com/SavandBros/badge/issues

Last edited by Alir3z4 (2016-02-26 19:53:59)

Offline

#2 2016-02-22 11:44:53

Awebb
Member
Registered: 2010-05-06
Posts: 6,286

Re: Badges & meta data for AUR packages

Interesting. Why would I want images with nothing but text and background colors? Does this have a function, or is it purely decorational?

Offline

#3 2016-02-22 14:45:15

phw
Member
Registered: 2013-05-27
Posts: 318

Re: Badges & meta data for AUR packages

Nice. A few issues with the HTML app:

1. The input field does not show the text in Firefox, since you give that input field with a height of 46px a padding of 22px. Minus border this leaves 2px for the text, that's a bit too small wink Set "padding: 0 22px;"
2. The "search" function in app.js is missing the event parameter

Update: Sent you a pull request on github, see https://github.com/SavandBros/badge/pull/41

Last edited by phw (2016-02-22 14:54:53)

Offline

#4 2016-02-22 15:52:04

Alir3z4
Member
From: مغز
Registered: 2010-11-06
Posts: 14
Website

Re: Badges & meta data for AUR packages

Awebb wrote:

Interesting. Why would I want images with nothing but text and background colors? Does this have a function, or is it purely decorational?

Thanks,
Well badge do a really good job in decoration if you ask me.
But we don't use it only for that purpose.

Badges contains useful information that can be quickly displayed and delivered.

For example knowing that the project test suit is passing or has failed is really important, otherwise I/we to go to CI platform and check that manually.
It can display the license of the app much quicker that usual, without actually looking into docs/ or the LICENSE of the app.
The badges are integrated into services and they get the metadata by just providing the URL of them.

Like showing the number of votes  git-cola can be just and that's it. http://badge.kloud51.com/aur/num_votes/ … /badge.svg

I'm a developer and decorations are not something that I'd like to get into, but knowing stuff right away by one look is something I'm eager for.

phw wrote:

Nice. A few issues with the HTML app:

1. The input field does not show the text in Firefox, since you give that input field with a height of 46px a padding of 22px. Minus border this leaves 2px for the text, that's a bit too small wink Set "padding: 0 22px;"
2. The "search" function in app.js is missing the event parameter

Update: Sent you a pull request on github, see https://github.com/SavandBros/badge/pull/41

Thanks man, Amir is responsible for the frontend of the project, by the time I'm writing this he has merged the fix into and it has been deployed already. Thanks for taking your time and fix the issue.
There might be more issue and bugs and text code coverage is not that much at the moment so if you find anything just let us know.

Offline

Board footer

Powered by FluxBB