gnu-social/plugins/Poll
Brion Vibber cbf16a4974 Bookmark and poll plugins' custom notice forms now do AJAX submit, with the resulting notice appearing in the timeline.
FormNoticeXHR now is triggered on any form labeled with class 'ajax-notice', so those other than the traditional notice form should work as long as they handle the AJAX submission and return a properly formatted notice.

Things to watch out for:
* to determine whether the resulting notice should show on the current timeline, the JS code needs to be able to check the author and such. Keeping the existing vcard bits helps for this!
* the notice form submission stuff clears out inputs from your form -- test to make sure this behaves correctly
* error messages returned from the thingy _should_ come through, but this needs more testing for consistency
* while form components that aren't in a custom form should just be ignored, this should be tested more. (eg there's no location or attachment box for poll or bookmark plugins)
* NoticeListItem isn't currently reachable via autoloader -- touch NoticeList explicitly before calling into it for now.
2011-03-08 15:10:30 -08:00
..
newpoll.php Bookmark and poll plugins' custom notice forms now do AJAX submit, with the resulting notice appearing in the timeline. 2011-03-08 15:10:30 -08:00
newpollform.php Bookmark and poll plugins' custom notice forms now do AJAX submit, with the resulting notice appearing in the timeline. 2011-03-08 15:10:30 -08:00
Poll_response.php Initial checkin of Poll plugin: micro-app to post mini polls/surveys from the notice form. 2011-03-07 21:28:36 -08:00
Poll.php Bookmark and poll plugins' custom notice forms now do AJAX submit, with the resulting notice appearing in the timeline. 2011-03-08 15:10:30 -08:00
PollPlugin.php Initial checkin of Poll plugin: micro-app to post mini polls/surveys from the notice form. 2011-03-07 21:28:36 -08:00
pollresponseform.php Poll plugin: make the polling response form submit via AJAX and return the results. 2011-03-08 13:45:51 -08:00
pollresultform.php Poll plugin: make the polling response form submit via AJAX and return the results. 2011-03-08 13:45:51 -08:00
README Initial checkin of Poll plugin: micro-app to post mini polls/surveys from the notice form. 2011-03-07 21:28:36 -08:00
respondpoll.php Poll plugin: make the polling response form submit via AJAX and return the results. 2011-03-08 13:45:51 -08:00
showpoll.php Initial checkin of Poll plugin: micro-app to post mini polls/surveys from the notice form. 2011-03-07 21:28:36 -08:00

Unfinished basic stuff:
* make pretty graphs for response counts
* ActivityStreams output of poll data is temporary; the interfaces need more flexibility
* ActivityStreams input not done yet
* need link -> show results in addition to showing results if you already voted
* way to change/cancel your vote

Known issues:
* HTTP caching needs fixing on show-poll; may show you old data if you voted after

Things todo:
* should we allow anonymous responses? or ways for remote profiles to respond locally?

Fancier things todo:
* make sure backup/restore work
* make sure ostatus transfer works
* a way to do poll responses over ostatus directly?
* allow links, tags, @-references in poll question & answers? or not?

Storage todo:
* probably separate the options into a table instead of squishing them in a text blob