Merge all package tracking IA's into 1, implement new design #1138
Comments
Here are the assets: |
If no-one else has picked this up in a few days I can take it on |
I would like to fix this issue. So I'm going to make the PR as fast as I can. |
@dronov Excellent! Any problems, just open a PR and someone'll swing in to lend a hand 👍 |
@abeyang @moollaza the icons on http://cl.ly/3q1y1x3P0f2V must contain background color because background colors of logos are different IMHO |
@Mailkov not sure I understand what you mean. The background color in the mockups should be generated from html/css. |
@abeyang This is the result when I use icons on http://cl.ly/3q1y1x3P0f2V (in this case BRT and DHL) |
Currently, we have several Package Tracking IA's, each of which is implemented as their own Perl Package. Really, none of these IA's really need to be on their own and should probably be merged so we can continue to add more carriers to the list.
We should be able to create a single "PackageTracking" Goodie which loads a data file that specifies the name, word triggers and regex pattern for their tracking codes. Using this, the Goodie should be able to create triggers and regexes that map to carriers.
In the case that only one carrier works, we can use the new Icon template to produce a result. If multiple providers are valid, we can use the list template to show the matching providers.
Anyone interested in tackling this?
New designs
Icon view:
(This is meant to demonstrate all the logos -- we'd only show one of these depending on the matched carrier)
List view:
The text was updated successfully, but these errors were encountered: