Commit graph

4262 commits

Author SHA1 Message Date
lukemelia
59f5cea7b8 upgrade to memory_test_fix r171
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@417 a4c988fc-2ded-0310-b66e-134b36920a42
2007-02-02 05:01:12 +00:00
lukemelia
0da21e3b96 prepare to update memory_test_fix plugin
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@416 a4c988fc-2ded-0310-b66e-134b36920a42
2007-02-02 04:58:05 +00:00
lukemelia
d9d5ff4d06 The projects controller gets more RESTy. It now supports XML, RSS, ATOM, HTML and plain text views of the projects list.
Changes include:

 * Add assert_xml_select method for testing RSS and ATOM results (Thanks, Jamis! http://weblog.jamisbuck.org/2007/1/4/assert_xml_select)
 * Add resource_feeder plugin for generating RSS and ATOM feeds
 * Update the URL on the Feeds page to use /projects.rss or /projects.txt instead of FeedController link
 * Add created_at and updated_at timestamps to project table to support ATOM feeds
 * Added new filter to login_system "login_or_feed_token_required" to allow RSS, ATOM or text requests with token-based authentication 
 
Notes:
 * This will break previous project listing feed subscriptions.
 * RSS, ATOM & text feeds are available via session or HTTP_BASIC authentication, or by passing the user's token on the url; HTML and XML results are only available via session or HTTP_BASIC authentication
 


git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@415 a4c988fc-2ded-0310-b66e-134b36920a42
2007-02-01 05:32:05 +00:00
lukemelia
fda7788237 updated simply_helpful to latest version
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@414 a4c988fc-2ded-0310-b66e-134b36920a42
2007-01-31 06:19:16 +00:00
lukemelia
a1df3eb6a1 preparing to update simply_helpful to latest version
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@413 a4c988fc-2ded-0310-b66e-134b36920a42
2007-01-31 06:17:52 +00:00
lukemelia
ef2d93542e Make the UsersController more RESTy. It now supports retrieving a list of users or a particular as XML (available to admins only).
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@412 a4c988fc-2ded-0310-b66e-134b36920a42
2007-01-31 05:36:33 +00:00
lukemelia
b1b03b2c8a Restore functionality for creating an admin user on first run. Fixes #429.
Also improved the messaging in this situation.



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@411 a4c988fc-2ded-0310-b66e-134b36920a42
2007-01-30 05:55:17 +00:00
lukemelia
ddc6d57c17 Make the UsersController more RESTful by moving actions that act on the Users resource from LoginController to UsersController.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@410 a4c988fc-2ded-0310-b66e-134b36920a42
2007-01-27 08:28:52 +00:00
lukemelia
109a1847fb Made the Users Controller RESTful. This obviated the need for the currently functionality of the AdminController, so I removed it and consolidated tests.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@409 a4c988fc-2ded-0310-b66e-134b36920a42
2007-01-26 06:37:44 +00:00
lukemelia
707b8cdf86 Add smoke tests for feeds. Fix bug in all projects feed.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@408 a4c988fc-2ded-0310-b66e-134b36920a42
2007-01-26 05:24:31 +00:00
lukemelia
f364b039d7 Adjust the routing and name for the periodically executed check for deferred items.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@407 a4c988fc-2ded-0310-b66e-134b36920a42
2007-01-25 13:59:40 +00:00
lukemelia
fedf029764 Make Todo routes RESTful.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@406 a4c988fc-2ded-0310-b66e-134b36920a42
2007-01-25 07:07:10 +00:00
lukemelia
b2ce323f3a Upgrade to rails 1.2.1
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@405 a4c988fc-2ded-0310-b66e-134b36920a42
2007-01-25 04:19:22 +00:00
lukemelia
498b5700be prepare to upgrade to Rails 1.2.1
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@404 a4c988fc-2ded-0310-b66e-134b36920a42
2007-01-25 03:56:17 +00:00
lukemelia
828ad592e2 Make the NotesController user RESTful routes.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@403 a4c988fc-2ded-0310-b66e-134b36920a42
2007-01-15 07:50:54 +00:00
lukemelia
bb4b726650 Resolve conflicting migrations
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@402 a4c988fc-2ded-0310-b66e-134b36920a42
2007-01-14 23:37:56 +00:00
lukemelia
ce2a9e2279 Minor refactor to preare for arRESTing NoteController.
Also fixed a recently introduced bug that caused projects or contexts with numbers in the name to fail to resolve properly by URL
 


git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@401 a4c988fc-2ded-0310-b66e-134b36920a42
2007-01-14 19:33:11 +00:00
bsag
36fcfe5c59 Support for tagging of actions!
Made a start on tagging support. You can add tags via the action forms (just single word tags, separated by a space so far), update tags via the edit form (same limitations), and also search for all actions with a particular tag:

/todo/tag/[tag_name]

Tests for tagging are a bit rudimentary at the moment, and you can't as yet use tags consisting of multiple words, or search for conjunctions of tags (e.g. foo+bar), but I'm hoping to add these. Also no validation, so don't try anything funny!

I'm also planning on letting the user create custom links to /todo/tag pages, so that you can use a tag for inbox, someday/maybe, today, a meta-project, priority, or whatever you like.

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@400 a4c988fc-2ded-0310-b66e-134b36920a42
2007-01-14 19:29:01 +00:00
lukemelia
3fb15f81a5 Convert context_controller to use RESTful routes (required renaming contexts_controller -> contexts_controller per rails convention).
This change also changes context detail page URLs from /context/my_context to /contexts/my_context

    Add a database index on the projects and contexts tables, user_d + name, to speed the lookup used in urls
    Brought the URLs within various feeds up-to-date
    


git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@399 a4c988fc-2ded-0310-b66e-134b36920a42
2007-01-14 19:18:07 +00:00
lukemelia
8b62e4c784 Convert project_controller to use RESTful routes (required renaming project_controller -> projects_controller per rails convention).
This change also changes project detail page URLs from /project/my_project to /projects/my_project
Benefits include
 * built-in enforcement of proper HTTP methods
 * simple named routes (e.g. project_url(project) instead of { :controller => "project", :action => "show", :url_friendly_name => project.url_friendly_name })
 * built-in routes for formats like .js and .xml
 
Also fixed a http basic authentication bug that I introduced a couple of days ago
Add a database index on the users table, login column, to speed authentication
Made more use of simply_helpful dom_id() method and simplified _project_listing.rhtml




git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@398 a4c988fc-2ded-0310-b66e-134b36920a42
2007-01-12 13:46:45 +00:00
lukemelia
e9e6c33599 On login page, focus the first field on page load for easier logging in.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@397 a4c988fc-2ded-0310-b66e-134b36920a42
2007-01-12 02:36:11 +00:00
lukemelia
d8ec265ca4 Added some database optimizations, mostly in the form of indices on commonly queried columns
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@396 a4c988fc-2ded-0310-b66e-134b36920a42
2007-01-11 05:29:29 +00:00
lukemelia
ead9a4cfe9 Add a bold state to emphasize the project status on the project detail page.
The bold state changes once the ajax operation is complete.
Project status changes now also show a flash notice when the ajax operation completes.
Add a selenium test to confirm this behavior.
Fixed a bug where hiding a project would make deferred items hidden. Now we leave them deferred.
Added a little breathing room between the project status options.



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@395 a4c988fc-2ded-0310-b66e-134b36920a42
2007-01-10 07:01:26 +00:00
lukemelia
f73401a850 Fix #422 by validating that project names do not contain commas. Thanks for the bug report, Stephen!
Added this validation to Contexts as well.
Introduced a new plugin to hold extra validations. The first one is validates_does_not_contain, which
DRYs up and cleans up the validations used to prohibit slashes and commas in Project and Context names.



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@394 a4c988fc-2ded-0310-b66e-134b36920a42
2007-01-10 04:55:39 +00:00
bsag
12aa6cee41 Started adding facility for importing and exporting data - only export is available at the moment.
A new Data controller lets you export in a number of different formats: YAML, CSV and XML. All actions produce the appropriate format file for download.

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@393 a4c988fc-2ded-0310-b66e-134b36920a42
2007-01-07 15:19:33 +00:00
lukemelia
2329cb8e1e Introduced user preference for time zone (migration, model and prefs forms)
Made all dates and times stored in UTC in the database and presented according to the User's preferred time zone.
Cleaned up old unused preference methods in UserController
Restored keyboard shortcuts for date field interaction
Aliased preference in User model to prefs for brevity

Don't forget to rake db:migrate for this update!

All tests pass, but there were a lot of little changes involved in this feature. Please help me test it thoroughly if you're using the trunk. 
 
Fixes #349



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@392 a4c988fc-2ded-0310-b66e-134b36920a42
2007-01-06 10:06:33 +00:00
lukemelia
9a444be3fe Update to Edge Rails tag rel_1-2-0_RC2
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@391 a4c988fc-2ded-0310-b66e-134b36920a42
2007-01-06 06:30:26 +00:00
lukemelia
cdde8d9ca7 Prepare to update to Rails 1.2 RC2
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@390 a4c988fc-2ded-0310-b66e-134b36920a42
2007-01-06 06:26:52 +00:00
lukemelia
bf22f7d49c rename a few selenium tests
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@389 a4c988fc-2ded-0310-b66e-134b36920a42
2007-01-02 02:21:45 +00:00
lukemelia
10a4ead296 Reorganize Selenium tests into Test Suites and continue work on Ajax interactions for deferred actions section of Project Page.
Note that I'm currently only able to successfully run Seleniunm tests on Firefox (Mac & PC). I'm not successful on Safari or IE7.



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@388 a4c988fc-2ded-0310-b66e-134b36920a42
2007-01-02 02:18:11 +00:00
lukemelia
bde8a0bde0 Introduce selenium tests to help get the ajax interactions correct and maintainable.
Start to improve the ajax interactions around the new deferred actions section on the project detail page
Add a README for developers describing how to run the selenium tests.


git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@387 a4c988fc-2ded-0310-b66e-134b36920a42
2007-01-02 00:19:57 +00:00
bsag
71df0f1061 The last changes to the stylesheet (to improve things for IE 7), made the date overlap the navigation bar in Safari. I've made some changes that I hope (but can't test!) might make it acceptable for both.
Peter Smith suggested added a clear:both directive to div.item-container to sort out the annoying 'stepped actions' effect on IE 7.

I really need a MacBook and a copy of Parallels...



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@386 a4c988fc-2ded-0310-b66e-134b36920a42
2007-01-01 18:16:58 +00:00
lukemelia
6e5b574406 First step in adding deferred section to the project detail page. Ajax needs a lot of work on this page.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@385 a4c988fc-2ded-0310-b66e-134b36920a42
2006-12-30 09:52:39 +00:00
lukemelia
a65e66168c Consolidate list and index actions in project and context controllers.
Use simply_helpful methods to simplify DOM IDs.
Improve CSS rendering on IE7. (didn't get to test these changes on Safari!)
Make new contexts appear automatically when added with new action on home page.


git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@384 a4c988fc-2ded-0310-b66e-134b36920a42
2006-12-30 08:51:49 +00:00
lukemelia
c407fc2463 On first run, tracks now automatically redirects to signup page to create the admin user.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@383 a4c988fc-2ded-0310-b66e-134b36920a42
2006-12-29 17:48:47 +00:00
lukemelia
d44d90761f Fix todo/destroy.rjs so that a context will be removed from the homepage if the last todo in it is deleted
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@382 a4c988fc-2ded-0310-b66e-134b36920a42
2006-12-29 08:22:48 +00:00
bsag
39b8cc763b Removed the defunct 'date_preview' stuff, because accidental typing of characters in the date box was leading to spurious Server error warning appearing, which was confusing and annoying.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@381 a4c988fc-2ded-0310-b66e-134b36920a42
2006-12-24 16:30:36 +00:00
bsag
4a97b39928 Because of a typo in project.rb, updating an existing project from completed to either hidden or active was broken. Fixes #418.
Also removed signup route because this is now accomplished via the admin controller.

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@380 a4c988fc-2ded-0310-b66e-134b36920a42
2006-12-24 12:32:06 +00:00
lukemelia
c719eeb146 the tickler notification message was not getting shown when the periodical execute activated an action. Fixed.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@379 a4c988fc-2ded-0310-b66e-134b36920a42
2006-12-17 08:35:54 +00:00
lukemelia
dd54b925a9 Clean up logic that checks to see if a user is an admin.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@378 a4c988fc-2ded-0310-b66e-134b36920a42
2006-12-17 08:24:47 +00:00
lukemelia
0e6c6f9f77 * Some refactoring that makes todo_controller a little skinnier by making the user model a little fatter: Introduce new has_many relationships for completed_todos and deferred_todos and include Association Extensions to support their use. Update TodoController to use these new relationships.
* Remove the the app/views/feed/index.rhtml which has been previously moved to app/views/feedlist/index.rhtml



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@377 a4c988fc-2ded-0310-b66e-134b36920a42
2006-12-17 08:07:52 +00:00
lukemelia
1d22f08670 Divide UserController into a UserController and a PreferencesController. Divide FeedController into a FeedController and a FeedlistController. Pull up layout and login filter into ApplicationController and override as needed. Ignored new tmp directories.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@376 a4c988fc-2ded-0310-b66e-134b36920a42
2006-12-13 08:31:48 +00:00
lukemelia
1e4f462f21 Fix problems with feeds not working reported on mailing list.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@375 a4c988fc-2ded-0310-b66e-134b36920a42
2006-12-12 17:35:08 +00:00
lukemelia
df6e82186c My changeset had a bug that broke feeds. This should fix them.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@374 a4c988fc-2ded-0310-b66e-134b36920a42
2006-12-11 11:13:37 +00:00
lukemelia
aa41974d4c * Made links work for project and context links that contain an underscore('_') or a dot('.'). I removed urlize() and deurlize() in favor or methods on the models mixed in by the new UrlFriendlyName module.
* Removed tag_object() from application_helper as it was not being used.
* Introduced link_to_context() and link_to_project() helper methods.
* Fixed a javascript syntax error on the context page.



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@373 a4c988fc-2ded-0310-b66e-134b36920a42
2006-12-11 04:48:56 +00:00
lukemelia
ee121e3dfb Adjust the tab order of the edit action form so it doesn't overlap with the tab order of the add action form.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@372 a4c988fc-2ded-0310-b66e-134b36920a42
2006-12-10 22:43:24 +00:00
bsag
26c7a1e6f1 Created an admin controller that allows the admin user (only) to view the users on the system and destroy and signup new users. Destroying a user deletes all of their actions, contexts, projects and notes.
The link to the admin page only appears when an admin user is logged in, and the signup link is now on the admin page, rather than appearing in the mini-links at the top of the page.

The page also lists some statistics associated with each user (the number of actions, contexts, projects etc. each user has).

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@371 a4c988fc-2ded-0310-b66e-134b36920a42
2006-12-10 19:30:19 +00:00
lukemelia
74ad2b9cc7 Forgot to check this one in!
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@370 a4c988fc-2ded-0310-b66e-134b36920a42
2006-12-09 17:39:42 +00:00
lukemelia
c099160411 The last changeset had a dependency on the simply_helpful plugin, but I forgot to add it. Here it is.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@369 a4c988fc-2ded-0310-b66e-134b36920a42
2006-12-09 07:38:43 +00:00
lukemelia
e43c5b727a Replace external toggle_notes.js with inline link_to_function.
Cleanup sidebar views and markup
Minor cleanup to make html more valid. 



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@368 a4c988fc-2ded-0310-b66e-134b36920a42
2006-12-09 07:10:55 +00:00