Commit graph

4262 commits

Author SHA1 Message Date
lukemelia
472db2f586 Remove a couple of unnecessary queries that were slowing down rendering of the projects and contexts listing pages and eating up too much memory.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@528 a4c988fc-2ded-0310-b66e-134b36920a42
2007-04-11 05:04:31 +00:00
bsag
56215ec160 When a new project note is added (project pages), the notes text field is cleared after the note is submitted, so that it is empty ready for the next note.
Fixes #480



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@527 a4c988fc-2ded-0310-b66e-134b36920a42
2007-04-08 15:29:46 +00:00
bsag
a4ed53f148 Added lrbalt's patch to display the deferred actions and completed actions with a particular tag on the /todo/tag/[tag_name] page. Only active, deferred and completed actions with the selected tag are shown on the page now.
Thanks lrbalt!

Fixes #447


git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@526 a4c988fc-2ded-0310-b66e-134b36920a42
2007-04-08 15:13:24 +00:00
lukemelia
419f97ae9f Fix #497 (Project page "Sort Alphabetically" feature should sort case-insensitively)
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@525 a4c988fc-2ded-0310-b66e-134b36920a42
2007-04-08 04:26:13 +00:00
lukemelia
2d73602d98 Added ability to sort projects alphabetically on the project listing page. Closes #461 (Ability to alphabetically sort projects as an alternative to drag/drop)
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@524 a4c988fc-2ded-0310-b66e-134b36920a42
2007-04-06 05:45:21 +00:00
lukemelia
3946dbf0c1 Remove URL Friendly Name concept from Tracks. They were associated with projects and contexts. Both projects and contexts can now have a slash in the name if you so desire.
Also fixed #486 (Inline edit of project title (from individual project page) fails). Thanks to James Kebinger for reporting the issue and for the patch.

N.B. This check-in requires the REMOVAL of one line from your environment.rb file. The line to be removed reads "require 'url_friendly_name'"



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@523 a4c988fc-2ded-0310-b66e-134b36920a42
2007-04-06 03:30:20 +00:00
lukemelia
d9a194ab64 Add the version of Tracks to environment.rb and include it in the footer of the web UI. Thanks to lrbalt for
the idea in #374.
 


git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@522 a4c988fc-2ded-0310-b66e-134b36920a42
2007-04-02 05:48:09 +00:00
lukemelia
07f790a545 Implement #466 (It would be better if the form to create the new context/project is visible by default in the context/project section instead of having to click on the 'Create a new....' Will save one click and don't think it will clutter the page much!). Thanks to SK for the idea.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@521 a4c988fc-2ded-0310-b66e-134b36920a42
2007-04-02 05:39:11 +00:00
lukemelia
c89d8f0012 Fixed #491 (broken: Actions completed in the last 7 days). Thanks for the bug report, SK.
Also, removed some junk from the data_controller test output.



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@520 a4c988fc-2ded-0310-b66e-134b36920a42
2007-04-02 05:09:07 +00:00
lukemelia
8f81f6d58a Add additional keyboard shortcuts to date fields, per SK's suggestion in #470.
Date field shortcuts:

           (t) today
           (-) or (<) previous day
           (+) or (>) next day
           ([) previous week; (]) next week
           ({) previous month
           (}) next month



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@519 a4c988fc-2ded-0310-b66e-134b36920a42
2007-04-02 04:55:04 +00:00
lukemelia
179d194fb2 Apply James Kebinger's patch to fix #492 (broken: csv export of notes). Thanks SK for
the bug report and James for the patch!



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@518 a4c988fc-2ded-0310-b66e-134b36920a42
2007-04-02 04:29:48 +00:00
lukemelia
ba0b52ff1a Merged mobile_controller into the todos_controller. The lightweight mobile HTML is
arguably just another representation of the same resources, so it seems to fit
the RESTful Rails paradigm to use an extension (.m) to switch on in the
respond_to stanza.

I needed some hackery to make this work. See my note in todos_controller for
a full explanation.
 
I also added a route to get to the mobile view by using 'domain.com/m'

Created some selenium tests for the mobile view, too. 

In optimizing the data access for the mobile view, I ran into "a bug in rails
pagination":http://dev.rubyonrails.org/ticket/7885" and integrated a nice
pagination plugin from the Err the Blog guys
("will_paginate":http://errtheblog.com/post/929) to work around the issue.

NOTE that this changeset includes a new line in environment.rb.tmpl (at
the bottom). Be sure to copy this into your environment.rb file. 

These changes fix #489 (cannot edit action using mobile interface).
Thanks for the bug report, lrbalt!

In the name of consistency, I made the argument to the block for all
respond_to calls 'format' (instead of the formerly cool 'wants').

Lastly, I added a link to the project's new contribute page to the footer of
the main web UI. Help us join the Mac on Intel world. :-)



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@517 a4c988fc-2ded-0310-b66e-134b36920a42
2007-04-02 04:18:19 +00:00
lukemelia
f3f881e47e copy memory_test_fix plugin from branch
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@516 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-30 12:44:58 +00:00
lukemelia
ba58baa3b8 repair botched copy of memory_test_fix
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@515 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-30 12:44:46 +00:00
lukemelia
f98d034631 copy unobtrusive_javascript plugin from branch
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@514 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-30 12:35:10 +00:00
lukemelia
db65cf8927 copy simply_helpful plugin from branch
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@513 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-30 12:35:06 +00:00
lukemelia
de8975cc17 copy simple_ldap_authenticator plugin from branch
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@512 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-30 12:35:00 +00:00
lukemelia
0a745f2eab copy selenium-on-rails plugin from branch
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@511 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-30 12:34:56 +00:00
lukemelia
f89cae635f copy resource_feeder plugin from branch
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@510 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-30 12:34:53 +00:00
lukemelia
0d8a3fcf6d copy memory_test_fix plugin from branch
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@509 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-30 12:34:49 +00:00
lukemelia
eba1f3346e copy has_many_polymorphs plugin from branch
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@508 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-30 12:34:46 +00:00
lukemelia
feb46f687b copy extra_validations plugin from branch
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@507 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-30 12:34:42 +00:00
lukemelia
85d8940e1b copy arts plugin from branch
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@506 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-30 12:34:38 +00:00
lukemelia
fa8c589f69 Copy over the first of many missing plugins.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@505 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-30 12:30:34 +00:00
lukemelia
2485faaf5c Clean up login screen when database authentication AND open id authentication is enabled.
There's now a simple way to switch between forms rather than showing them both at once.
Plus, Tracks will cookie you when you switch forms so it remembers the last type of
authentication you used when you return.



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@504 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-30 06:06:31 +00:00
lukemelia
e0787cd627 Upgrade openid_consumer_plugin to latest. Thanks to Matt Pelletier for the rewrite.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@503 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-30 05:00:25 +00:00
lukemelia
226655da8a prepare to upgrade openid_consumer_plugin
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@502 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-30 04:57:13 +00:00
lukemelia
06f14dd3b9 And here's the copy step.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@501 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-30 04:36:52 +00:00
lukemelia
c34d9faa38 Arg. Branching never seems to "just work". Going to delete and recopy. Here's the delete step.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@500 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-30 04:36:14 +00:00
lukemelia
20de5ac1a9 Upgrade to Rails 1.2.3 by copying the branch where I performed the upgrade.
Thanks to James Kebinger for his work sussing out compatibility issues with Rails 1.2.3 and the memory_test_fix plugin.



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@499 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-30 04:31:47 +00:00
lukemelia
e3ebb686e1 Removed unnecessary line breaks in text feeds. Set line breaks in view to unix. Fixes #472.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@489 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-28 05:21:00 +00:00
lukemelia
8e719d9e9a Added message to contexts page when no contexts exist. Fixes #476.
Also tweaked a couple of selenium login tests to make them work properly if run alone.
 


git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@488 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-28 05:08:55 +00:00
lukemelia
704d39add1 Blanking out a project name when editing a todo will now remove the todo from the project.
Also fixed the reference to test/selenium_helper.rb in the test/environment.rb to be pathed more reliably.



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@487 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-28 04:45:39 +00:00
lukemelia
02de36876e Refactor cached notes count code based on advice fro the ruby-nyc list. Thanks all!
Refactor out some finds to use automatically scopred finds on assication extensions.
Refactor out some error handling for very unusual cases.



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@486 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-27 04:49:44 +00:00
lukemelia
5d63400fca Added number of notes to project listing page. Fixes #128.
Interested in feedback on this... Which is higher value: the simplicity of only showing the number of actions or the utility of showing the number of notes as well?
 


git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@485 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-25 04:26:39 +00:00
lukemelia
8dba728577 Disable auto select in AutoComplete text boxes, per our discussion on the mailing list.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@484 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-25 02:53:45 +00:00
lukemelia
3dcc0152a1 Apply James Kebinger's patch to fix #407. Thanks, James!
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@483 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-25 02:20:10 +00:00
lukemelia
cd25d7e278 Added a set of Selenium helper classes and methods, to provide automatic login capabilities, to speed up selenium tests.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@482 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-23 06:08:36 +00:00
lukemelia
5a878b3e84 A few minor changes and bug fixes:
* On first user signup, the user no longer needs to login and after signing up. They are automatically logged in.
 * The Projects page was showing the name of the last project listed in the new project form. It is now appropriately blank.
 * When trying to create a new action, an error was occurring trying to update tags if the action failed to save. We now only try to update tags if the action saved. I wonder if we should be using some sort of ActiveRecord transaction here. If anyone knows about this, please contact me.



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@481 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-22 04:37:20 +00:00
lukemelia
38b2e336a8 Implemented a feature that give a project and optional default context. When set,
this context will be pre-populated when creating an action from the project's page.
When creating an action from the home page, the context will be auto-selected when
the project is selected if the context field has not yet been entered.

This implementation is a combination of the great patch submitted by James Kebinger
(thanks James!) and some of my modifications and additions.

Don't forget to rake db:migrate.

Fixes #162, originally suggested by Rolf one year ago!

Also in this commit:

 * Tweaked selenium tags test
 * Tweaked formatting of next/previous project HTML
 * Implemented Null Object pattern for context to support
   a Project having no default context
 * Removed tickler.rhtml, no longer in use
 * applying z-index values to project sortable list items (otherwise context
   autocomplete was appearing below next list item)
 * Swapped order of project and context in new action form (setting default context
   makes more sense this way)
 * Removed CSS width of for form elements, so form could be used in content area
   without being too narrow
   


git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@480 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-21 07:12:14 +00:00
lukemelia
11ed78abe2 Updated tests to pass even in the case of the weird schema (integer fields instead of booleans) that still pops up.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@479 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-20 05:06:37 +00:00
bsag
1bf617f8f1 Actions on the /todos/tag page are now displayed by context, as on the home page. If you don't have any incomplete actions with the specified tag, you'll get a message, but at the moment I can't seem to handle the error that occurs when the tag itself does not exist, so you get kicked back to the index page with a generic server error.
Fixes #447.



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@478 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-19 09:14:55 +00:00
lukemelia
4c061508ce Removed test's reference to deleted FeedController class.
One thing I forgot to mention in the last commit is that the changes break feed links. If people think it's important to maintain them, we can use routes to accomplish that...

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@477 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-18 05:28:53 +00:00
lukemelia
106d5ee448 Made TodosController more RESTful and use it to fulfill all feeds, eliminating the need for the FeedController and it's helper and views. Also added an ATOM feed (not linked in the UI anywhere, just substitute .atom for .rss).
I also ran rcov on unit tests and added tests to improve test coverage, uncovering a couple of bugs along the way.

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@476 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-18 00:38:05 +00:00
lukemelia
84357b67d5 Apply Trevor Lovett's patch (#364)
"I kick off a lot of small projects, and I often want to add actions right when I create the project. This is a simple tweak that provides a check box that allows you to immediately go to the project page after creating a new project."

Thanks, Trevor. Sorry it took so long!



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@474 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-10 04:10:53 +00:00
lukemelia
18bb7ff16a Reenable keyboard shortcuts for the date fields.
* Adds keyboard shortcuts to the passed in date field:
 *
 *   't'         input today's date
 *   '+' or '='  increment the date in the field by one day
 *   '-'         decrement the date in the field by one day
 *
 * If the calendar is visible, the shortcuts play nicely with it. If not,
 * they still work properly. Pressing '+' when no date is entered in the
 * field will set the date to tomorrow, and likewise '-' with no date
 * entered will set the date to yesterday.




git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@473 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-10 03:32:47 +00:00
lukemelia
3e177ad67b Apply James Kebinger's patch to improve the initial state of the projects page when a user does not yet have any projectes.
Thanks, James!



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@472 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-10 03:23:59 +00:00
lukemelia
85885f9b9b Add next-previous links to project detail pages. Closes #379
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@470 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-06 13:18:31 +00:00
lukemelia
49296539ee Fixed a typo. Thanks to Colin Canfield for the catch.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@469 a4c988fc-2ded-0310-b66e-134b36920a42
2007-03-01 11:12:44 +00:00
lukemelia
178e1c70cd rollback to previous has_many_polymorphs version. upgrading had issues.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@468 a4c988fc-2ded-0310-b66e-134b36920a42
2007-02-28 07:00:53 +00:00