dwyl / dwyl/app

Vary Color of Favicon Depending on State of Timer

Open
#218 0 comments 1 reaction 0 assignees View on GitHub
discuss enhancement UI
Dominant language
Dart
Stars
152
Forks
22
PR merge metrics
No merged PRs in 30d

Description

As a person tracking my time in a web app,
I would like to see a visual cue in the **Browser Tab/Window**
indicating that the timer has _exceeded_ the original estimate/allocation for that activity/task.
So that I can remember to **stop** the timer.

At present we display the @dwyl **`teal`** favicon in the Browser Tab:
![image](https://user-images.githubusercontent.com/194400/52795653-206a1300-306a-11e9-8b5c-1c17056d4c7d.png)

![dwyl-teal-favicon](https://cloud.githubusercontent.com/assets/194400/25605640/15c23162-2f04-11e7-8371-228cf5bf61e2.png)
![image](https://user-images.githubusercontent.com/194400/52796788-5f996380-306c-11e9-80c8-5e0f5c49ec63.png)

# Todo / Acceptance Criteria

+ [ ] Using the @dwyl **`teal`** favicon as the starting point.
+ [ ] ***Scale*** and optimise the icon to be the correct dimensions (_to reduce bandwidth_)
> Can we do better than **1,920 bytes** for a favicon? (_optimise later if not immediately obvs_)
+ [ ] Create a **`red`** [**`#e74c3c`**](https://flatuicolors.com/palette/defo) version of the icon.
+ [ ] Create a JS function that _updates_ the Favicon to the **`red`** version when timer exceeds estimate.
see: https://stackoverflow.com/questions/260857/changing-website-favicon-dynamically
+ [ ] Dependent on: Estimate expected time a task/activity will take to complete https://github.com/dwyl/time/issues/147
> We need to have a field for `time_estimate` in the schema so that we know when it expires.

For more technical info on Favicons see: https://github.com/audreyr/favicon-cheat-sheet

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.