Merge lp:~thisfred/u1db/u1todo-4 into lp:u1db
Proposed by
Eric Casteleijn
on 2012-05-04
| Status: | Merged |
|---|---|
| Approved by: | Eric Casteleijn on 2012-05-07 |
| Approved revision: | 266 |
| Merged at revision: | 266 |
| Proposed branch: | lp:~thisfred/u1db/u1todo-4 |
| Merge into: | lp:u1db |
| Diff against target: |
548 lines (+238/-98) 5 files modified
u1db/__init__.py (+6/-6) u1todo/test_u1todo.py (+59/-19) u1todo/u1todo.py (+40/-32) u1todo/u1todo.ui (+48/-21) u1todo/ui.py (+85/-20) |
| To merge this branch: | bzr merge lp:~thisfred/u1db/u1todo-4 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Roberto Alsina (community) | Approve on 2012-05-07 | ||
| dobey (community) | 2012-05-04 | Approve on 2012-05-04 | |
|
Review via email:
|
|||
Description of the Change
This adds tags.
to test, run PYTHONPATH=. python u1todo/ui.py
tags are whitespace separated strings starting with #, or anything between []s (Not being able to use whitespace in tags is a pet peeve of mine, this will allow it, while forcing no one to use it.)
To post a comment you must log in.
review:
Approve
| Eric Casteleijn (thisfred) wrote : | # |
Stylized buttons were exactly what I was thinking, since that is how a lot of (web) apps represent tags. I have chosen multiple selections to mean AND, but I could be convinced to make it or. Ideally both would be possible. Not hard to do in code, but far from easy to represent in an intuitive way in the UI.

Works!
The use of buttons for the tag column feels weird. The traditional solution would be a list with checkmarks. That would look quite like the task list, which is not good either. Maybe we could use highly stilized buttons instead, to make them look like colored labels (think github's issue page: http:// bit.ly/ KDmeNg)
Also, I see no way to visually represent what is the meaning of multiple "ON" tags: is it
"and" or "or"? Do we care?
OTOH, nothing wrong in the code. So, this just needs some serious design thought.