Skip to content

Color of safesum and thumbnail border does not match website with goals about to finish #595

Description

@krugerk

The app currently (6.7 (54)) currently calculates colors based on the number of safe days:

public var countdownColor :UIColor {
switch self.safeBuf {
case ..<1:
return UIColor.Beeminder.SafetyBuffer.red
case ..<2:
return UIColor.Beeminder.SafetyBuffer.orange
case ..<3:
return UIColor.Beeminder.SafetyBuffer.blue
case ..<7:
return UIColor.Beeminder.SafetyBuffer.green
default:
return UIColor.Beeminder.SafetyBuffer.forestGreen
}
}

A goal's commitment can be any combination of two of the following three items: goal date, goal total, goal rate.

Example goal, goal's commitment dial (on the website):

goal date:  2024-12-31
goal total: greyed out, not used to define the goal's commitment
goal rate:  40 / month

Goal progress on the website shows

NOW    2024-12-31 → 4089
TARGET 2024-12-31 → 4000

In the app this goal is colored orange on 2024-12-31, with safesum "Safe for 1 day". On the website this goal is colored dark green.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BUGOpposite of featureSTYStyle / polish / CSS / pigsty / eyesoreUVIWill count as a User-Visible Improvement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions