Commit Graph

15 Commits

Author SHA1 Message Date
Thomas Tracy
7d2fa72768 chore: add edx-next theme to repo (#15) 2022-02-02 11:14:41 -05:00
Justin Hynes
9498dbc691 feat: add tests for bulk course email task manager components
[MICROBA-1621]

* Fix display bug for the error Alert component found during test writing
* Add tests for BulkEmailTaskHistory component
* Fix bug with a column name in the bulk course email content history table
* Add tests for the BulkEmailContentHistory component
* Add tests for the BulkEmailPendingTasks component
2022-01-31 14:18:19 -05:00
Thomas Tracy
ce9cdf642b feat: [MICROBA-1620] Wire BulkEmailForm to API (#11)
- Wires up the BulkEmailForm to be able to actually send email tasks to
  the instructor api
- Adds testing for the BulkEmailForm, as well as BulkEmailTool itself
- Does some cleanup, and adds some additional testing tools as needed
2022-01-27 14:51:17 -05:00
Justin Hynes
796b8010b1 feat: Implement task history and pending task tables
[MICROBA-1621]
* Add a table to the BulkEmailTaskHistory component of the task manager.
* Add a table to the BulkEmailPendingTasks component of the task manager.
* Extract messages to messages.js.
* Add custom hook used to make REST API calls to edx-platform on a regular cadence (every 30 seconds).
* Use the new hook in BulkEmailPendingTasks to retrieve pending instructor tasks for display in a table.
* Create a new BulkEmailHistoryTable component to cutdown on code duplication between task manager componenets that display tables.
* Refactor existing components to use the new BulkEmailHistoryTable component (and reduce amount of duplicate code in the task manager)
* Use a StatefulButton (over a regular button) to show a spinner/loading icon when fetching data for our tables.
2022-01-25 08:29:08 -05:00
Thomas Tracy
2eac5bc12d chore: update setupTest to mock out edX libraries (#13) 2022-01-20 14:25:59 -05:00
Justin Hynes
50747195bf feat: Add historical email content data to bulk course email task manager
[MICROBA-1621]

* Add table that displays info about previously sent bulk course email messages through our tool.
* Add modal to view the contents of previously sent messages.
* Extract strings to a dedicated `messages.js` file to help make the `BulkEmailContentHistory.jsx` file more readable.
2022-01-12 15:44:16 -05:00
Thomas Tracy
ab274d1ea9 feat: [Microba-1620] Add email form to BulkEmailTool (#8)
* feat: [MB-1620] Add email body editor

Add email body and subject line to bulk email tool.
2022-01-12 15:26:43 -05:00
Justin Hynes
2a927017ca feat: add API calls to get data needed by the bulk email task manager section
[MICROBA-1621]

* Add support to the Instructor Dashboard `list_instructor_tasks`, `list_email_content`, and `list_background_email_tasks`  REST API endpoints of edx-platform.
2022-01-07 08:29:12 -05:00
Thomas Tracy
fa46bd5fc5 feat: protect bulk email from non staff (#6)
This will protect the bulk email tool and ONLY the bulk email tool from non-staff users if they know the direct URL. this will not protect the entire app from non-staff entirely.
2022-01-06 11:15:26 -05:00
Justin Hynes
432b6f89be feat: Add some basic scaffolding for the bulk email tool task manager section of the comms MFE
[MICROBA-1621]
* Adds a section for the pending tasks section of the task manager
* Adds a section for the bulk course email task history data
* Adds a section for the bulk course email content history data
2022-01-06 08:18:16 -05:00
Thomas Tracy
008165073a feat: Add top navigation menu (#4)
Adds course navigation menu to the top of the app
2022-01-04 14:10:16 -05:00
Thomas Tracy
3f4b1a1ca5 feat:[MICROBA-1618] Add proper routing and some data (#3)
* feat: add proper routing and some data management
2021-12-13 09:58:34 -05:00
Thomas Tracy
8d1cc534b7 chore: [MICROBA-1498] Add bulk email component structure (#2)
* chore: Add bulk email component structure
2021-12-09 09:38:09 -05:00
Thomas Tracy
434ba53702 chore: find replace template string 2021-12-03 12:41:03 -05:00
Matt Tuchfarber
62bcd459cb Initial commit 2021-12-03 11:33:31 -05:00