Commit graph

62 commits

Author SHA1 Message Date
Reinier Balt
4a78b9f97a fix case where deleting a completed todo which belongs to a recurring todo resulted in multiple todos belonging to the recurring pattern or no todo at all 2008-11-28 16:52:54 +01:00
Reinier Balt
4a98ee5669 several fixes to recurring todos and adds some named_scopes
fixes case where unmarking a complete todo which belongs to a recurring pattern results in two todos that both keep on recurring. With this fix a new todo will only be created when there are no active todos left belonging to that recurring pattern

fixes tests that failed because of previous commits

adds some named_scopes, inspired by http://railscasts.com/episodes/108
2008-11-28 16:39:50 +01:00
Reinier Balt
f40c35276f fix the sort order for tag view. It is now the same as on the home page 2008-11-14 11:40:10 +01:00
Reinier Balt
33eba10e88 fix small timezone issue (#786) with the date that is shown for a todo 2008-11-11 15:24:16 +01:00
Reinier Balt
f21908a2a0 Fixes corner case where checking a monthly recurring todo complete on
the same day the todo comes from tickler, a new todo is created and not
put in the tickler for next month, but for today
2008-10-29 16:40:45 +01:00
Reinier Balt
76d72b54bf Merge branch 'sort_projects_by_todos' of git://github.com/waltercruz/tracks 2008-10-28 20:59:07 +01:00
waltercruz
6d212cc21a Applying patch suggested by Reinier Balt and fixing the test 2008-10-28 17:44:49 -02:00
waltercruz
0b57b23b2d html fixes and sort by number of todos logic 2008-10-28 16:40:28 -02:00
Reinier Balt
a3f23c60e4 fixes #786 where timezone handling of RoR screwed the algorithm to find the last sunday of march in 2009
Fix is a bit of a hack, see #786 for futher explanation.
2008-10-22 10:16:31 +02:00
Reinier Balt
ce671f23f4 fix bug introduced by last commit and add test for it
also refactor check_for_next_todo a bit to depend less on globals
2008-10-14 22:49:17 +02:00
Reinier Balt
1118a582d7 add check for actions that should move from tickler to home page to the index page for todos 2008-10-07 20:20:47 +02:00
Reinier Balt
7b90c00d84 fix corner case where checking repeating todos complete that are due todo today will create a new todo that is also due today
with the intriduction of datetime for due and show_from, the time part needed to be discarded in a compare
also adding some comments to be able to understand the code better
2008-10-06 11:11:56 +02:00
Reinier Balt
89043af7ff fix editing of todos (also delete and check complete)
bug was introduced in calendar code
2008-10-04 20:41:12 +02:00
Reinier Balt
5d30512e97 add message when there are no actions in a container and handle state changes 2008-10-04 15:56:22 +02:00
Reinier Balt
541d6f5b69 add calendar to menu and implement ical
tested ical with outlook 2007
2008-10-03 22:44:58 +02:00
Reinier Balt
fcaea3ce20 first pass at adding calendar view 2008-10-03 14:16:43 +02:00
Eric Allen
397029dfc1 Add Selenium test for bug #776 and bug #775 and resolve both. Also fixed an unreported issue where deferring a todo by editing its show_from wouldn't hide an empty context. 2008-10-02 21:15:05 -04:00
Reinier Balt
0f4a80d839 fix recurring todos where new todos were not placed in tickler
there was a Date.now in the code that was not migrated to the new timezone handling
2008-10-02 09:49:51 +02:00
Walter Cruz
ee5c730f44 Ading a sort by number of tasks option 2008-09-23 17:06:14 -03:00
Eric Allen
ba9a9370cc Merge branch 'timezones' of git://github.com/epall/tracks into master.
Re-wrote all Date-related code to use Datetimes, created a migration to get rid of all date columns in the database, and got rid of Time.now calls that were not time zone-aware. Lots of time zone goodness!
2008-09-21 18:24:12 -07:00
Eric Allen
3647d79587 Overhaul of Time.now stuff because Time.now is unaware of time zones. Need to use Time.zone.now (Time.now.utc works fine when dealing with the database, since it is *always* in UTC) 2008-09-21 18:13:21 -07:00
Eric Allen
f52a2eafa8 A few fixes after more thorough review. 2008-09-21 18:13:21 -07:00
Eric Allen
383328fab6 Merge branch 'defer_buttons' of git://github.com/epall/tracks into master 2008-09-21 11:59:35 -07:00
Eric Allen
3353626016 Move Rich Todo API into Todo class and clean it up a bit 2008-09-21 09:35:34 -07:00
Eric Allen
1324652726 Handle timezones properly in defer buttons 2008-09-07 06:38:00 -07:00
epall
539fda21dc Preliminary defer buttons 2008-09-06 18:25:24 -07:00
Reinier Balt
3a56d2bdd2 clean up export controller a bit. also some cleanups in the view 2008-09-05 17:53:18 +02:00
Reinier Balt
88159d3f6a add recurring todos to export to yml and xml 2008-09-05 17:41:30 +02:00
Reinier Balt
1239a2cd61 Merge branch 'master' of git://github.com/gorn/tracks 2008-09-05 17:07:53 +02:00
Jakub A.Tesinsky
229a114441 mport feature added. Everything gets imported except updated_at fields.
IDs of objects are not copied, but created as new so there could be no conflict with existing objects.
2008-09-05 03:25:56 +02:00
Reinier Balt
18815769bb fix corner case for repeating todos without due date 2008-08-29 10:05:14 +02:00
Reinier Balt
abdac8855d restore page title in tag view 2008-08-28 10:25:58 +02:00
Reinier Balt
9d09a4d47a fix #763 where all tags were shown twice
thanks Marcin for the report
2008-08-27 20:54:56 +02:00
Reinier Balt
4d11e156f4 fix moving todos from one context to another on tag view
also fix ordening on the collections on the tag view page
2008-08-26 16:07:35 +02:00
Reinier Balt
874576f315 fix small error where Time was compared to Date 2008-08-25 10:20:05 +02:00
Reinier Balt
b076ae46f8 handle nil correctly in last patch 2008-08-19 14:47:51 +02:00
Reinier Balt
065f543a83 fix corner case where recurring todo with due in future and show_from in past did not create corresponding todo
you cannot add todos with show_from in the past
2008-08-19 14:33:09 +02:00
Reinier Balt
8d6267f92f fix #754 by parsing dates using the format set in the preferences of the user
Thanks Claus for reporting this
2008-08-18 17:14:34 +02:00
Reinier Balt
b2e82ea6b6 fix for #749
This one needs a nice test
2008-08-18 16:02:13 +02:00
Reinier Balt
2a6b8f1cd9 fixes #753 by adding a global option to enable secure cookies
you need to recreate your environment.rb from the tmpl for this change
2008-08-18 14:11:27 +02:00
Reinier Balt
db86df5497 fixes for mobile view and for recurring todos
* fixed redirect to last page instead of /mobile after adding a new todo using mobile interface
* fixed adding new todo to tickler instead of home after marking a todo belonging an active recurring todo complete
2008-08-04 16:13:51 +02:00
Reinier Balt
566cdf8049 fix autocompletion for editing of recurring todos 2008-08-01 16:46:57 +02:00
Reinier Balt
9acb01e9cb fix issue where deleting a recurring todo from tickler results in an error 2008-08-01 15:37:10 +02:00
Reinier Balt
8ede8030d3 fix mobile feed page and speed up mobile home page 2008-08-01 14:49:51 +02:00
Reinier Balt
545b4e5c50 add title to recurring todos page and fix for #737 2008-08-01 14:19:37 +02:00
Reinier Balt
6b0a235275 attempt to fix creation of new recurring todo where selector attributes are posted later than other attributes
also fixes some issues when editing an existing rec todo wich handling nil values
2008-07-28 14:06:39 +02:00
Reinier Balt
ed4ee1cc3f fix several issues with recurring todos
* fix case where some fields were not saved
* fix several fields that were not filled with the saved value when editing
* hide storage details of recurring_todo by adding public getters and refactoring view to use them in stead of database fields
2008-07-27 22:13:54 +02:00
Reinier Balt
0018a718a8 fix small typo in comment 2008-07-25 20:45:39 +02:00
Reinier Balt
a981595bce fix error where editing start date or end date for a recurring todo does not show the calendar 2008-07-25 20:39:22 +02:00
Reinier Balt
186fd5694d fix editing a todo from tag view
saving worked, but the edit form did not disappear and the updated todo did not show up in the right place
2008-07-24 23:22:16 +02:00