• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

se-edu / addressbook-level4 / 4689
93%
master: 94%

Build:
Build:
LAST BUILD BRANCH: 453-result-message
DEFAULT BRANCH: master
Ran 18 Aug 2018 12:29PM UTC
Jobs 1
Files 90
Run time 8s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
4689

Pull #798

travis-ci

web-flow
PersonCard: Add colors to tag labels

The tags are all displayed with the same color.

It is hard to differentiate between tags visually across contacts.
For example, it is hard to visually group all contacts tagged with
"colleague". It is also hard to differentiate between those contacts
that are tagged with "colleague", and those that are not tagged with
"colleague".

Let's add different colors to different tag labels. Tags of the same
name will always receive the same color, while different tag names
should receive different colors if possible.

The hashcode of the tag string is used to determine the tag color.
This will assign a reasonably random color to each tag, and will
also ensure that the tag color remains the same when the user
launches the application again in the future (assuming the
application version remains the same). The idea of using hashcode is
influenced by a developer's suggestion[1].

[1] https://github.com/nus-cs2103-AY1718S1/forum/issues/199
Pull Request #798: Ui: Add colors to tag labels

9 of 9 new or added lines in 1 file covered. (100.0%)

1441 of 1552 relevant lines covered (92.85%)

0.93 hits per line

Jobs
ID Job ID Ran Files Coverage
1 4689.1 18 Aug 2018 12:29PM UTC 0
92.85
Travis Job 4689.1
Source Files on build 4689
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4689
  • Pull Request #798
  • PR Base - master (#4686)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc