Real-Dev-Squad / website-status

Shows a roadmap of the ongoing projects being done
https://status.realdevsquad.com/
MIT License
21 stars 145 forks source link

Fix the editable mode of task-card for superuser #823

Closed AnjaliDeshwani closed 8 months ago

AnjaliDeshwani commented 9 months ago

Issue:

Editable mode of task-card for superuser -

  1. Task title can not be edited, on clicking title it redirects super user to task details page.
  2. There is no icon button to come out of editable mode.
  3. On selecting user as a assignee, user's profile picture doesn't reflect correctly corresponding to the assigned user.
  4. There is no spinner/checkmark to indicate the user that data is saving/saved.

Description:

Dev Tested:

image

image

Images/video of the change:

Before Change -

https://github.com/Real-Dev-Squad/website-status/assets/30263070/189ae06b-d27a-433f-b22e-6ba6049d6168

After Change -

https://github.com/Real-Dev-Squad/website-status/assets/30263070/6f7b49bf-c15b-4fcc-9069-32f27192a3c2

When there is error while saving data -

https://github.com/Real-Dev-Squad/website-status/assets/30263070/acb4e06b-8aaf-403b-9c37-ec2a489d585d

Test Coverage Before

TestCoverage_Before

Test Coverage After

TestCoverage_After

vercel[bot] commented 9 months ago

@AnjaliDeshwani is attempting to deploy a commit to the RDS-Team Team on Vercel.

A member of the Team first needs to authorize it.

AnjaliDeshwani commented 9 months ago

in Edit mode Text font looks different, can you align that

It's fixed now.

vinit717 commented 9 months ago

Why not toast for success also? why we are creating different logic for updates as we have a loader, and success toast already

AnjaliDeshwani commented 9 months ago

Why not toast for success also? why we are creating different logic for updates as we have a loader, and success toast already

@vinit717 - It was the requirement told to me by Ankush, as per that we need to show spinner besides editable field when it's being getting saved, and once saved we need to show the checkmark(for few seconds) to indicate that data is being saved.

For error, I am showing toast. If you have any good suggestion to show or make it differently, we can discuss that. Let me know if we need to discuss this.

AnjaliDeshwani commented 9 months ago

is this behind feature flag

No, It is not behind feature flag. Will be visible to all users in editmode.

iamitprakash commented 9 months ago

is this behind feature flag

No, It is not behind feature flag. Will be visible to all users in editmode.

please put this under feature flag

sahsisunny commented 9 months ago

Can you add the test coverage stats?

AnjaliDeshwani commented 8 months ago

Can you add the test coverage stats?

@sahsisunny - I have added few test cases and updated the coverage please check. Thank you.

AnjaliDeshwani commented 8 months ago

Closing this PR as because of rebase and reverting changes again it's facing some conflicting issues while someone approves the PR.

Opened the new PR - https://github.com/Real-Dev-Squad/website-status/pull/839