Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement timeline #13

Open
5 tasks
stevenguh opened this issue Apr 9, 2020 · 0 comments
Open
5 tasks

Implement timeline #13

stevenguh opened this issue Apr 9, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request
Projects

Comments

@stevenguh
Copy link
Member

stevenguh commented Apr 9, 2020

There are two large bodies of work included in this issue.

First, implementation the data structure of the timeline should be able to power heatmap, timeline and notification (#7). I am thinking this would utilized the IndexDB in the browser and its ability to query data. Maybe we can utilized Dexie.js wrapper to simplify the access espically it's filter on the date dexie/Dexie.js#748. However, some older browser might not support IndexDB, we can either drop support for those are polyfill an in-memory IndexDB implementation.

Second big body of work is to figure out the UX/UI and implement it. This can largely work in parallel with the first work. I am thinking about the timeline will be scrollable and only show every touches on the timeline in the past hour, and show a aggregated number of touches for the rest of the timeline. A user can scroll/drag a control to change which hour to see all the touches. No matter what we come up, we need to figure out how to facilitate that UX, may that be d3.js or simple DOM element with react.js.

A rough view of that concept:

3h ago       |    53 m ago   30m ago
2 times      |    touch      touch
   |         |     |          |
-------------------------------------
         |               |
     5 times            touch
     2h ago             45m ago
  • Implement the structure to facilitate both heatmap and timeline
  • Convert the heatmap to use this structure
  • Figure out the UX for the timeline
  • Implement the timeline UI
  • Timeline may have granularity control
@stevenguh stevenguh created this issue from a note in Issue Board (To do) Apr 9, 2020
@stevenguh stevenguh self-assigned this Apr 10, 2020
@stevenguh stevenguh moved this from To do to In progress in Issue Board Apr 12, 2020
@codycodes codycodes added the enhancement New feature or request label Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Issue Board
  
In progress
Development

No branches or pull requests

2 participants