Commit Graph

38 Commits

Author SHA1 Message Date
Keegan George bdc2f27a2a
DEV: Ember upgrade (#155) 2023-01-23 10:30:48 -08:00
Jarek Radosz 359d6f6be8
DEV: Fix imports (#111) 2022-03-06 21:18:46 +01:00
Jarek Radosz 46cdce24bd
DEV: Lose the es6 suffix (#110) 2022-03-04 19:27:42 +01:00
David Taylor 9bfb3ec4b2
FIX: Ensure edit modal validation works on first opening (#96)
(Ember's `defineProperty` no longer sees to fire the notifyPropertyChange event, so we need to do it manually)
2021-12-02 14:27:50 +00:00
Jarek Radosz 369ca14711
DEV: Fix imports in tests, minor clean up (#93)
Still doesn't work with ember cli though.
2021-11-14 14:14:49 +01:00
David Taylor 08dd442c1c
FIX: Remove use of InputValidation library (#92)
This was deprecated in e39d89ecd9, and stopped working following the move to Ember CLI
2021-11-09 14:45:50 +00:00
Mark VanLandingham a8b7e9631b
DEV: Move admin namespace (#87) 2021-08-26 08:52:53 -05:00
jjaffeux 51d3cc93cb DEV: linting 2020-09-22 17:11:12 +02:00
Joffrey JAFFEUX 9327e705cf
DEV: apply coding standards (#43) 2020-09-04 13:23:28 +02:00
David Taylor 933a3f5aa2
DEV: Apply prettier 2020-07-16 12:41:05 +01:00
David Taylor 945c0a6e4f
FIX: Allow using `thread` filter for new rules 2020-07-16 12:31:42 +01:00
Penar Musaraj 63ddf106a4 DEV: Find/replace deprecated decorators 2020-02-19 11:56:45 -05:00
Joffrey JAFFEUX cd53275098 REFACTOR: uses more modern patterns to prevent issues (#27) 2019-03-20 10:57:07 +00:00
David Taylor 44001e259b DEV: Apply prettier to JS and SCSS files 2018-09-12 16:16:18 +01:00
David Taylor fc721a1768 FEATURE: Improve channel error visibility in the admin panel, stop adding chat integration errors to logs 2018-08-20 12:06:10 +01:00
David Taylor c766a9cae9 FIX: client-side channel validation (#10) 2017-10-15 22:25:02 +08:00
Guo Xiang Tan eb6575fd44 Fix plugin after I broke it while refactoring. 2017-10-03 22:49:19 +08:00
Guo Xiang Tan 44ade676e1 Fix JS tests. 2017-10-03 18:11:58 +08:00
Guo Xiang Tan f836047f90 REFACTOR: Clean up code in plugin. 2017-10-03 17:42:07 +08:00
David Taylor 645c21f2f7 Correct eslint fails 2017-08-21 16:46:43 +01:00
David Taylor 4932c078ed Correct eslint offences 2017-08-02 11:33:50 +01:00
David Taylor 209daf7801 Add group messages support to admin UI, and add a ‘type’ field for further improvements 2017-08-01 15:20:00 +01:00
David Taylor d437634f61 Move rule editing into a modal dialog 2017-07-31 17:09:21 +01:00
David Taylor 11c8817ebd Allow enter key to submit admin modal forms 2017-07-28 15:09:04 +01:00
David Taylor c5fdebd1bc Store errors per-channel rather than per-rule, and update UI to match 2017-07-18 23:08:06 +01:00
David Taylor 2772856201 Update qunit tests
Have removed a lot of them until the UI is finalised, so as not to waste time constantly updating them.
2017-07-18 20:42:00 +01:00
David Taylor bdb81191d7 New admin interface for improved channel definitions 2017-07-18 16:17:03 +01:00
David Taylor 95dd6bc09c Add error handling to the slack API requests, and associated tests 2017-07-07 11:23:25 +01:00
David Taylor aaaffdf371 Add ‘send test message’ functionality to the admin interface 2017-07-04 23:35:45 +01:00
David Taylor d97d35fd0d Handle errors on trigger_notification
Providers can define their own errors, and these are presented in the user interface. e.g. Slack can define an error that says “That channel doesn’t exist”.
Errors in the UI disappear once a message has been sent successfully, or the rule is edited.
2017-07-04 19:37:56 +01:00
David Taylor 4be010fd07 Allow providers to specify a regex that the channel identifier is checked against during validation 2017-07-04 00:14:01 +01:00
David Taylor 984211e9ce Fix javascript imports after plugin rename 2017-07-03 12:18:30 +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 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