cal.com icon indicating copy to clipboard operation
cal.com copied to clipboard

feat: Manage Team ooo or crud and fetch past ooo records

Open vijayraghav-io opened this issue 1 year ago • 28 comments

What does this PR do?

  • Fixes #16333
  • Fixes CAL-

Approach to fetch past records:- Infinite scrolling with pagination is implemented to fetch additional records (10 at a time) when the user scrolls to the bottom of the table. Also search by username and email is implemented to fetch past records of a member quickly.

https://www.loom.com/share/fe88b4739846419493fe26836daedf88?sid=96acca39-eaad-4fcc-89e9-c2153532e080

Mandatory Tasks (DO NOT REMOVE)

  • [x] I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • [x] - N/A - I have added a Docs issue here if this PR makes changes that would require a documentation change. If N/A, write N/A here and check the checkbox.
  • [x] I confirm automated tests are in place that prove my fix is effective or that my feature works.

vijayraghav-io avatar Sep 02 '24 07:09 vijayraghav-io

@vijayraghav-io is attempting to deploy a commit to the cal Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Sep 02 '24 07:09 vercel[bot]

Graphite Automations

"Add consumer team as reviewer" took an action on this PR • (09/02/24)

1 reviewer was added to this PR based on Keith Williams's automation.

"Add community label" took an action on this PR • (09/02/24)

1 label was added to this PR based on Keith Williams's automation.

"Add foundation team as reviewer" took an action on this PR • (09/23/24)

1 reviewer was added to this PR based on Keith Williams's automation.

graphite-app[bot] avatar Sep 02 '24 07:09 graphite-app[bot]

Unable to scroll Redirect To Member when editing an entry, can only scroll it while adding a new that too I have to close it and open it for it to work, can you also replicate it?

https://github.com/user-attachments/assets/103278f8-dc90-4cb5-b058-93274247d4fd

Amit91848 avatar Sep 02 '24 08:09 Amit91848

Thankyou! 🙏 @Amit91848 @anikdhabal , sure will address the comments.

vijayraghav-io avatar Sep 02 '24 08:09 vijayraghav-io

Unable to scroll Redirect To Member when editing an entry, can only scroll it while adding a new that too I have to close it and open it for it to work, can you also replicate it?

I checked multiple times, not able to recreate this for me. Able to search the list of members for redirect also.

vijayraghav-io avatar Sep 04 '24 18:09 vijayraghav-io

@CarinaWolli , Thanks for review 🙏

  1. added current-previous tab My view: Screenshot 2024-09-06 at 3 52 19 PM Team view : Screenshot 2024-09-06 at 4 07 56 PM

  2. Updated not to show Team OOO tab for non-admin/owners

  3. For Rounded Corners - Since the DataTable component is generic and any changes here may affect any other views, its taking more time to update this than i expected. Will try to update this. Also i have one doubt - should the rounded corners be there for all items in the list, or only for first and last one.

vijayraghav-io avatar Sep 06 '24 10:09 vijayraghav-io

For Rounded Corners - Since the DataTable component is generic and any changes here may affect any other views, its taking more time to update this than i expected. Will try to update this. Also i have one doubt - should the rounded corners be there for all items in the list, or only for first and last one.

I see, it should be rounded corners on all other tables as well. Like on the team availability view: Screenshot 2024-09-06 at 12 51 49 PM Only the 4 outside corners should be rounded same as in the team member list for example: Screenshot 2024-09-06 at 12 52 32 PM

CarinaWolli avatar Sep 06 '24 16:09 CarinaWolli

I see, it should be rounded corners on all other tables as well. Like on the team availability view:

@CarinaWolli , Thanks for confirming, i tried with existing classes like rounded-lg,rounded-md,... and tried with new class like rounded-[10px]. Though i can see in browser debugger 10px radius gets applied, for some reason this is not visible.

vijayraghav-io avatar Sep 08 '24 10:09 vijayraghav-io

@Amit91848 @anikdhabal , have addressed your comments 🙏

vijayraghav-io avatar Sep 08 '24 10:09 vijayraghav-io

@CarinaWolli , updated for rounded corners. Can you please take this PR forward as all other comments are also addressed and implemented. 🙏

Screenshot 2024-09-18 at 7 35 28 PM

vijayraghav-io avatar Sep 18 '24 14:09 vijayraghav-io

Found a few month things that need to be addressed first 🙏

@CarinaWolli Thankyou! 🙏 , i have addressed the review comments.

vijayraghav-io avatar Sep 21 '24 09:09 vijayraghav-io

@Amit91848 @anikdhabal addressed the comments

vijayraghav-io avatar Sep 23 '24 15:09 vijayraghav-io

@CarinaWolli , @Amit91848 , @anikdhabal Can you please approve and merge this PR, as all review comments are addressed

vijayraghav-io avatar Sep 25 '24 17:09 vijayraghav-io

This PR is being marked as stale due to inactivity.

github-actions[bot] avatar Oct 12 '24 00:10 github-actions[bot]

@keithwillcode , reminding that have attached raw sql queries as requested, these are simple queries without complex joins, hope these should be ok, Please share if any concerns. Thankyou! 🙏

vijayraghav-io avatar Oct 15 '24 17:10 vijayraghav-io

@vijayraghav-io thanks for your work so far. I will give the final review. Could pls fix the conflicts?

anikdhabal avatar Oct 15 '24 17:10 anikdhabal

@vijayraghav-io thanks for your work so far. I will give the final review. Could pls fix the conflicts?

sure will fix the conflicts, by tomorrow , hope it is fine.

vijayraghav-io avatar Oct 15 '24 17:10 vijayraghav-io

@anikdhabal , Sorry for the delay! resolved merge conflicts, and updated due to latest changes in DataTable generic component & others. Have tested again thoroughly and its working fine. Please take it forward.

vijayraghav-io avatar Oct 21 '24 06:10 vijayraghav-io

This PR is being marked as stale due to inactivity.

github-actions[bot] avatar Nov 08 '24 00:11 github-actions[bot]

@anikdhabal , resolved merge conflicts again. Updated due to changes in member search feature. Tested again and verified working as expected. Please do merge 🙏

PFB loom with updated UI https://www.loom.com/share/a20dd52901714dfaadd735f7e15893b6?sid=2229d2d9-8584-4920-9d3a-7194ac4eb2ca

vijayraghav-io avatar Nov 09 '24 16:11 vijayraghav-io

hey @vijayraghav-io can you resolve merge conflicts ?

Ok will resolve

vijayraghav-io avatar Nov 24 '24 03:11 vijayraghav-io

@Praashh, resolved merge conflicts.

vijayraghav-io avatar Nov 24 '24 09:11 vijayraghav-io

@vijayraghav-io Thanks for your patience, man. Could you please fix the conflicts again?

anikdhabal avatar Dec 09 '24 15:12 anikdhabal

@vijayraghav-io Thanks for your patience, man. Could you please fix the conflicts again?

sure will do

vijayraghav-io avatar Dec 09 '24 16:12 vijayraghav-io

resolved merge conflicts. Will do one more self review by tomorrow, that should fix the tests as well

vijayraghav-io avatar Dec 09 '24 18:12 vijayraghav-io

E2E results are ready!

github-actions[bot] avatar Dec 09 '24 22:12 github-actions[bot]

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Visit Preview Dec 11, 2024 1:20pm
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Dec 11, 2024 1:20pm

vercel[bot] avatar Dec 10 '24 15:12 vercel[bot]

@vijayraghav-io unit tests are failing, please fix it 🙏

@anikdhabal , @Praashh resolved conflicts, updated tests due to changes from merges. Also verified and tested again team OOO flow.

vijayraghav-io avatar Dec 10 '24 17:12 vijayraghav-io

@vijayraghav-io great works man. But I am thinking of completely transferring all the E2E tests related to OOO into unit tests. Could you go through all the OOO E2E tests and add them to your current test file along with the other tests?

anikdhabal avatar Dec 29 '24 07:12 anikdhabal

@vijayraghav-io great works man. But I am thinking of completely transferring all the E2E tests related to OOO into unit tests. Could you go through all the OOO E2E tests and add them to your current test file along with the other tests?

Thank you! @anikdhabal . IMO replacing E2E tests with unit tests may reduce the current scope of testing for OOO. As these are End to End tests testing both UI and backend functionalities. Also the flakiness for OOO tests is reduced very much now, observing the E2E results from latest PRs merged after https://github.com/calcom/cal.com/pull/18367

vijayraghav-io avatar Dec 29 '24 14:12 vijayraghav-io