Skip to content

feature: request management system page#701

Merged
iamitprakash merged 16 commits intoRealDevSquad:developfrom
Swapnil099:feat/oooRequest/listing
Feb 27, 2024
Merged

feature: request management system page#701
iamitprakash merged 16 commits intoRealDevSquad:developfrom
Swapnil099:feat/oooRequest/listing

Conversation

@Swapnil099
Copy link
Contributor

@Swapnil099 Swapnil099 commented Feb 18, 2024

Date: 18 Feb 2024

Developer Name: Swapnil Gawande


Issue Ticket Number

693

Description

This PR consists of html , css and Js code for new Out-Of-Office requests listings UI.

  1. Integrated OOO requests listing API along with the UI.
  2. Integrated OOO requests accept/reject API with UI.
  3. Added sort and filter functionality for OOO requests.

Documentation Updated?

  • Yes
  • [✓] No

Under Feature Flag

  • [✓] Yes
  • No

Database Changes

  • Yes
  • [✓] No

Breaking Changes

  • Yes
  • [✓] No

Development Tested?

  • [✓] Yes
  • No

Screenshots

Mobile and Destop View Screenshort as test with local backend setup APIs.

desktop_local_test_screenshot

mobile_view_1

Test Coverage

Screenshot 1

test_cases_result

Additional Notes

@sahsisunny
Copy link
Contributor

image

No OOO requests found! message should be in the center of the screen

@sahsisunny
Copy link
Contributor

image

OOO tab name should be OOO not Ooo

@sahsisunny
Copy link
Contributor

sahsisunny commented Feb 20, 2024

Can you change the style of the selector like this? The arrow icon should rotate based on the state of the selector, and we can call the API based on the selection. I don't think we need to click on the search button until we have added text to search input.
image

@sahsisunny
Copy link
Contributor

sahsisunny commented Feb 20, 2024

Recording.2024-02-20.200740.mp4

please observe and fix this issue

issue :
image

@sahsisunny sahsisunny changed the title Feat/ooo request/listing feature: request management system page Feb 21, 2024
@sahsisunny sahsisunny linked an issue Feb 21, 2024 that may be closed by this pull request
@Swapnil099
Copy link
Contributor Author

Swapnil099 commented Feb 21, 2024

Recording.2024-02-20.200740.mp4
please observe and fix this issue

issue : image

@sahsisunny, The PUT api to update OOO request does not accept "Reason" as a "Null" value. that why this error is coming. I think we should make the API accept "Reason" as a "Null" value because in some cases admin might just accept request without any reason. what's your thought on this ?

@sahsisunny
Copy link
Contributor

Recording.2024-02-20.200740.mp4
please observe and fix this issue

issue : image

@sahsisunny, The PUT api to update OOO request does not accept "Reason" as a "Null" value. that why this error is coming. I think we should make the API accept "Reason" as a "Null" value because in some cases admin might just accept request without any reason. what's your thought on this ?

When the reason is null then not send in the body

@Swapnil099
Copy link
Contributor Author

Recording.2024-02-20.200740.mp4
please observe and fix this issue
issue : image

@sahsisunny, The PUT api to update OOO request does not accept "Reason" as a "Null" value. that why this error is coming. I think we should make the API accept "Reason" as a "Null" value because in some cases admin might just accept request without any reason. what's your thought on this ?

When the reason is null then not send in the body

Okay got it

@Swapnil099
Copy link
Contributor Author

image

No OOO requests found! message should be in the center of the screen

This change is implemented. please check.

@Swapnil099
Copy link
Contributor Author

image

OOO tab name should be OOO not Ooo

Tab name is changes to "OOO.

@Swapnil099
Copy link
Contributor Author

Can you change the style of the selector like this? The arrow icon should rotate based on the state of the selector, and we can call the API based on the selection. I don't think we need to click on the search button until we have added text to search input. image

suggested icon change is done.

@Swapnil099
Copy link
Contributor Author

Recording.2024-02-20.200740.mp4
please observe and fix this issue
issue : image

@sahsisunny, The PUT api to update OOO request does not accept "Reason" as a "Null" value. that why this error is coming. I think we should make the API accept "Reason" as a "Null" value because in some cases admin might just accept request without any reason. what's your thought on this ?

When the reason is null then not send in the body

Change implemented as per suggestion. now accept/reject functionality working fine without remark.

@sahsisunny
Copy link
Contributor

image

triangle icon should be clickable

@sahsisunny
Copy link
Contributor

image

UI is breaking

@sahsisunny
Copy link
Contributor

sahsisunny commented Feb 21, 2024

Can you also add query param for tabs and filters?

For tab:

@Swapnil099
Copy link
Contributor Author

image

UI is breaking

this issue is now fixed. please check.

@Swapnil099
Copy link
Contributor Author

image

triangle icon should be clickable

icon is now clickable.

@Swapnil099
Copy link
Contributor Author

Can you also add query param for tabs and filters?

For tab:

I will have to research on how to get this done. can we add this to the next task/PR?

@Swapnil099
Copy link
Contributor Author

Amd author name "Real Dev Squad" in mera tag

change done.

@Swapnil099
Copy link
Contributor Author

Why tabs are shifting when toast is showing?
now made it overlap.
image

sahsisunny
sahsisunny previously approved these changes Feb 24, 2024
Copy link
Contributor

@sahsisunny sahsisunny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please link the issue ticket for test cases

Copy link
Contributor

@Achintya-Chatterjee Achintya-Chatterjee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Swapnil099 Add a working proof for the whole feature. I'm not seeing any videos

Copy link
Contributor

@Achintya-Chatterjee Achintya-Chatterjee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Swapnil099 where is the tests for this feature?

@Swapnil099
Copy link
Contributor Author

@Swapnil099 Add a working proof for the whole feature. I'm not seeing any videos
Here is the working proof. Please check.

Ooo_working_proof.mp4

@Swapnil099
Copy link
Contributor Author

@Swapnil099 where is the tests for this feature?
Test cases have not been written yet, as I thought they would be added in the next task, can I write them in the next PR/Task?

Copy link
Contributor

@Achintya-Chatterjee Achintya-Chatterjee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you put this feature behind the feature flag? I'm not seeing a feature flag in your working proof.

@Swapnil099
Copy link
Contributor Author

Did you put this feature behind the feature flag? I'm not seeing a feature flag in your working proof.

Added dev feature flag. The video is attached.
CC: @sahsisunny can you please check and confirm?

ooo_dev_flag.mp4

@Achintya-Chatterjee
Copy link
Contributor

@Swapnil099 where are the tests for this feature?
Test cases have not been written yet, as I thought they would be added in the next task, can I write them in the next PR/Task?

@Swapnil099 open an issue ticket for test and assign this ticket yourself

@Achintya-Chatterjee
Copy link
Contributor

Did you put this feature behind the feature flag? I'm not seeing a feature flag in your working proof.

Added dev feature flag. The video is attached. CC: @sahsisunny can you please check and confirm?

ooo_dev_flag.mp4

Why it's showing N/A in the name field?

@Swapnil099
Copy link
Contributor Author

Did you put this feature behind the feature flag? I'm not seeing a feature flag in your working proof.

Added dev feature flag. The video is attached. CC: @sahsisunny can you please check and confirm?
ooo_dev_flag.mp4

Why it's showing N/A in the name field?

I had set first_name to null in my local DB for testing the edge cases where user first_name is not available. that's why it is showing N/a here.

@Swapnil099
Copy link
Contributor Author

@Swapnil099 where are the tests for this feature?
Test cases have not been written yet, as I thought they would be added in the next task, can I write them in the next PR/Task?

@Swapnil099 open an issue ticket for test and assign this ticket yourself

okay

@Achintya-Chatterjee
Copy link
Contributor

Did you put this feature behind the feature flag? I'm not seeing a feature flag in your working proof.

Added dev feature flag. The video is attached. CC: @sahsisunny can you please check and confirm?
ooo_dev_flag.mp4

Why it's showing N/A in the name field?

I had set first_name to null in my local DB for testing the edge cases where user first_name is not available. that's why it is showing N/a here.

okay, No worries

@iamitprakash iamitprakash merged commit 838b956 into RealDevSquad:develop Feb 27, 2024
@prakashchoudhary07 prakashchoudhary07 mentioned this pull request Mar 15, 2024
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Request for UI Development: Request Management Page

4 participants