Description:
Create a user interface (UI) feature that allows users to request Out of Office (OOO) status. This UI should include a form with the following fields:
From Date Picker: Allows the user to select the start date of their OOO status.
Until Date Picker: Allows the user to select the end date of their OOO status.
Message Text Area: A text area where the user can provide additional information or a message related to their OOO request.
Integration:
The UI should integrate with the backend through a POST API call to /requests?dev=true. Additionally, a feature flag named "dev" should be implemented for the UI.
API Payload:
The POST API call should include the following JSON payload:
{
"type": "OOO",
"from": [Date in UNIX timestamp],
"until": [Date in UNIX timestamp],
"message": "[string]",
"state": "PENDING"
}
Notes:
Ensure that proper input validation is implemented on the UI to handle valid date formats and mandatory fields.
Provide clear user feedback upon successful submission or if any errors occur during the request.
Consider implementing loading indicators to enhance user experience while waiting for the API response.
Description: Create a user interface (UI) feature that allows users to request Out of Office (OOO) status. This UI should include a form with the following fields:
Integration: The UI should integrate with the backend through a POST API call to
/requests?dev=true
. Additionally, a feature flag named "dev" should be implemented for the UI.API Payload: The POST API call should include the following JSON payload:
Notes: