Commit Graph

170 Commits

Author SHA1 Message Date
David Taylor 0547543a1d Add server-side validation to rules 2017-07-03 17:38:13 +01:00
David Taylor f40f602a4f Add validation to slack settings (adapted from old slack plugin) 2017-07-03 16:28:26 +01:00
David Taylor 1c416d5a81 Allow providers to be disabled, and tidy up translations 2017-07-03 15:53:26 +01:00
David Taylor 984211e9ce Fix javascript imports after plugin rename 2017-07-03 12:18:30 +01:00
David Taylor 4643ad255c Rename plugin to discourse-chat-integration 2017-07-03 11:08:14 +01:00
David Taylor b824773a8a Add tests for SlackProvider 2017-06-30 16:39:19 +01:00
David Taylor 0074f90f14 Allow sending by API instead of webhooks for slack 2017-06-30 15:28:44 +01:00
David Taylor 3f0462d40c Implement slack provider, based on existing plugin.
Currently only implements the “Webhook” method, not the “Web API” method
2017-06-30 13:09:36 +01:00
David Taylor 4ad9ad6a7a Move lib files inside a discourse_chat directory, and make the notifications run on a delay after post creation 2017-06-30 11:10:11 +01:00
David Taylor 8d70b4ad46 Allow add, edit & delete in the admin UI 2017-06-29 20:19:40 +01:00
David Taylor 61caca3c5b Use new DiscourseChat::Rule model throughout the backend code 2017-06-29 17:50:54 +01:00
David Taylor cd3bd8d807 Add a “Rule” class, borrowing and extending the ActiveRecord-like design from data-explorer plugin 2017-06-29 17:01:04 +01:00
David Taylor 8b1a065e3d Style categories in list to match rest of Discourse 2017-06-29 13:28:49 +01:00
David Taylor 304d8f962f Refresh the list of rules when the modal dialog closes 2017-06-29 12:56:48 +01:00
David Taylor 8e0bec6e6f Use RestModel and buildPluginAdapter to deal with communication of data models between client and server 2017-06-28 22:32:02 +01:00
David Taylor e067f8611d Add modal dialog for editing rules.
Currently non-functional, work in progress
2017-06-28 18:04:21 +01:00
David Taylor d8e5494d4c Add (currently read-only) UI to the admin panel, displaying all existing rules. Dynamic routes created for each registered provider. 2017-06-28 15:12:37 +01:00
David Taylor 02692cf100 Added filtering logic for multiple providers, along with many RSpec tests.
General structure of the filter rules is taken from discourse-slack-official, but re-written to be more robust and easier to understand.
2017-06-27 19:43:29 +01:00
David Taylor 3967e2cd91 Created basic system to allow multiple integrations to register themselves, creating a separate tab in the admin interface for each one. 2017-06-26 19:19:50 +01:00
David Taylor 3e3a309c44 Initial commit 2017-06-26 15:08:06 +01:00