I have been working to address #359 (
http://trac.habariproject.org/
habari/ticket/359) by implementing a full-page comment editing
interface for the new admin. The interface allows you to focus on a
single comment, including all the details around that comment. Design
inspiration came from the post publish page, so the interface should
be easy to learn.
I welcome you to explore the interface for yourself at this url:
http://home.morgante.net/habari/admin/comments (the edit dropdown in
comments is linked up to the new interface).
Username: habarister
Password: 12345
I tried to include strong visual cues as to the status of a comment
using color, text, and location. Additionally, all possible actions
which can be taken on a comment are easily accessible: delete, spam,
unapprove, approve, and save.
Additional information is included in the tabs below, including author
info, comment settings, and stats about this comment.
There are some interesting features I invite you to explore further:
* Author IP is easily accessible and changeable
* A comment can be reassigned to a different post by typing another
posts ID (under settings)
* Stats are included about how many comments by a specific email, ip
or post
In the interest of extensibility, I built the entire interface using
FormUI. Thus, it will be easy for plugins to modify the interface and
add their own settings (such as Defensio highlighting the comment's
spaminess rank).
Unfortunately, there are still a couple of outstanding issues:
A) I designed the current status to look similar to the buttons, but
was working on a Mac (Firefox 3) and other browsers don't render it as
nicely. Here are some samples:
1) Firefox 3/Mac -
http://skitch.com/arthus/t5uw/http-home.morgante.net-my-habari-comment
renders in the way I envisioned
2) Safari/Mac -
http://skitch.com/arthus/t5ua/my-habari-comment
renders nicely, though not optimally
3) IE 7/Windows -
http://skitch.com/arthus/t5u3/2705679332-6855c0ff89-o.png-png-image-1283x1134-pixels
doesn't do a very nice job at all
B) The stats are inaccurate. As far as I can tell, this is an error in
the comment class and not my code. The methods used are
Comment::count_by_*().
http://skitch.com/arthus/t5u6/my-habari-comment
Naturally, this is still a work in progress. I continue to supply
patches, which I welcome you to check out and review technically.
http://trac.habariproject.org/habari/attachment/ticket/359/comment.5.patch
I am open to all suggestions for improvement or clarification.
Otherwise, pending a couple of fixes, I hope to get this into trunk.
Thanks!