Work on front-side UI.

* Resolved D0003: Add day separators.

    * Created ``daySeparatorTemplate`` for ICanHaz templating.
    * Refactored ``EntryListView.render`` to spit out day separators in between
      days on the timeline. Fixed the "Today" separator to the top of the entry
      container. We no longer prepend entries to the entry container, we now put
      them after the top separator in the entry container.
    * Created ``EntryListView.formatDaySeparator`` to format the labels
      according to the relative time to today: "Yesterday", "Last Monday",
      "Friday, May 28" for example.
    * Removed the cludgier ``toWords``, ``daysApart``, and `` capitalize``
      functions that were going to serve the same purpose.
* Resolved D0021: Constrain notes width to mark.
This commit is contained in:
Jonathan Bernard
2011-06-17 16:02:26 -05:00
parent 81503112a8
commit f3ef7db088
24 changed files with 147 additions and 82 deletions

View File

@ -4,7 +4,12 @@ Generate day seperators.
When generating EventViews in the EventListView, we need to automatically
create and insert day seperators (see prototype).
Resolution
----------
Day separators are added to the timeline by EntryListView.render.
========= ==========
Created: 2011-05-15
Resolved: YYYY-MM-DD
Resolved: 2011-05-17
========= ==========

View File

@ -2,6 +2,9 @@ Implement correct start time editor.
====================================
The start time input field needs to look the same as the start time view.
Alternatively, use a date picker.
----
========= ==========
Created: 2011-05-15

View File

@ -3,5 +3,5 @@ Constrain width of notes fields to width of mark.
========= ==========
Created: 2011-06-10
Resolved: YYYY-MM-DD
Resolved: 2011-06-17
====================

View File

@ -4,6 +4,8 @@ Deleting an entry should cascade delete extended data.
Currently the data remains in the database. It should not cause any
problems, but it is wasting space.
----
========= ==========
Created: 2011-06-15
Resolved: YYYY-MM-DD

View File

@ -0,0 +1,11 @@
Hide day separators when all entries that day are excluded.
===========================================================
We should hide headings when there is no visible data.
----
========= ==========
Created: 2011-06-17
Resolved: YYYY-MM-DD
========= ==========

View File

@ -0,0 +1,21 @@
Never animate excluded entries.
===============================
We need to have some visible indication when a user enters an
exlucded item that it was added, but it looks ugly and dirty when
we first render the list.
Part of this is motivated by the fact that entering an excluded
entry is the excpected way for a user to stop the timer on an item
without having an explicit next item.
If we choose to implement *D0026* this would free up the UI a bit.
In that case, we could gently flash the 'Show/Hide Excluded Items'
button (*D0027*).
----
========= ==========
Created: 2011-06-17
Resolved: YYYY-MM-DD
========= ==========

View File

@ -0,0 +1,16 @@
Add a default 'stop' behaviour.
===============================
It might be more natural to allow the user to hit a button on
the current entry to stop the timer on it than to explicitly
create a new excluded entry.
Maybe have a default exclusion for all users, "ENTRY STOP" for example,
and have the button automatically add this entry.
----
========= ==========
Created: 2011-06-17
Resolved: YYYY-MM-DD
========= ==========

View File

@ -0,0 +1,12 @@
Create a way to unhide excluded entries.
========================================
A button somewhere would be a good way to allow users to
show/hide excluded entries.
----
========= ==========
Created: 2011-06-17
Resolved: YYYY-MM-DD
========= ==========