Overview
We need to add a new page to Tech Admin section of the ui-staff portal for a Queue Explorer. This will largely be inspired by existing implementation in Pathways Tech Admin.
Expected functionality is the page renders all available queues in the application in a grid of two columns, where left column is the queue's name and the right column is the corresponding poison queue for that queue.
When you click on a queue (regular or poison), it should open a popup modal which will render a list of messages that currently sitting on the queue. This should render the full JSON payload (can be collapsible panel to save space).
The popup modal for a queue should also include a button for sending a message on that queue. Clicking on that opens another popup modal with a textarea for copying in a JSON payload to send to that queue, and another textbox to capture the reason from the tech admin user (needed for usage in higher environments, doesn't matter on local or dev but still required everywhere).
The queue storage service is available with all the necessary functionality you need for peeking and sending queue messages, but you will need to implement the queries and mutation for sending a queue message, which will only be used by tech admin users on the staff portal.
If we don't have them already, we will need StaffRole permissions to be added under the techAdminPermissions set for canViewQueues and canSendQueueMessages. The first permission allows for being able to access the Queue Explorer page and read existing queue messages. The second permission allows the user to click the Send Message button on a queue, which should otherwise be disabled.
Acceptance Criteria:
- New page in ui-staff tech-admin section for Queue Explorer
- Page/route is only accessible to staff users with
canViewQueues techAdminPermission
- Queue Explorer page renders all available queues in Owner Community so far
- Queue Explorer page correctly renders contents of a non-empty queue
- Queue Explorer page allows sending messages for staff users with
canSendQueueMessages techAdminPermission
- Queue Explorer page correctly rejects sending a message with an invalid JSON payload for that queue
Overview
We need to add a new page to Tech Admin section of the ui-staff portal for a Queue Explorer. This will largely be inspired by existing implementation in Pathways Tech Admin.
Expected functionality is the page renders all available queues in the application in a grid of two columns, where left column is the queue's name and the right column is the corresponding poison queue for that queue.
When you click on a queue (regular or poison), it should open a popup modal which will render a list of messages that currently sitting on the queue. This should render the full JSON payload (can be collapsible panel to save space).
The popup modal for a queue should also include a button for sending a message on that queue. Clicking on that opens another popup modal with a textarea for copying in a JSON payload to send to that queue, and another textbox to capture the reason from the tech admin user (needed for usage in higher environments, doesn't matter on local or dev but still required everywhere).
The queue storage service is available with all the necessary functionality you need for peeking and sending queue messages, but you will need to implement the queries and mutation for sending a queue message, which will only be used by tech admin users on the staff portal.
If we don't have them already, we will need StaffRole permissions to be added under the techAdminPermissions set for
canViewQueuesandcanSendQueueMessages. The first permission allows for being able to access the Queue Explorer page and read existing queue messages. The second permission allows the user to click the Send Message button on a queue, which should otherwise be disabled.Acceptance Criteria:
canViewQueuestechAdminPermissioncanSendQueueMessagestechAdminPermission