ushahidi / tenfour-mobile

TenFour mobile app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve Checkin Badges To Display Answer Text

dalezak opened this issue · comments

Expected Behaviour

The checkin badge should indicate what each answer was including number of responses and answer text.

Actual Behaviour

Currently the checkin badge only indicates the color and number of replies, but not what the answer was.

Current Design

checkin-old

Suggested Design

checkin-new

@caharding @justinscherer what do you think of the proposed design?

Here's the snippet for the changes:

<div class="badges" *ngIf="checkin">
  <div class="badge" [style.width]="badge.width" *ngFor="let badge of getBadges()">
    <ion-badge [style.background]="badge.color" [style.color]="white" [title]="badge.text">
      <strong>{{badge.number}}</strong>
      <div class="truncate">
        <small ion-text color="white">{{badge.text}}</small>
      </div>
    </ion-badge>
  </div>
</div>