Real-Dev-Squad / website-my

My profile section of the app
https://my.realdevsquad.com
MIT License
6 stars 91 forks source link

Request for UI Development: Out of Office (OOO) Status #559

Closed sahsisunny closed 7 months ago

sahsisunny commented 9 months ago

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:

  1. From Date Picker: Allows the user to select the start date of their OOO status.
  2. Until Date Picker: Allows the user to select the end date of their OOO status.
  3. 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: