Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/cls2 695 allow for deletion of tasks #6549

Merged

Conversation

marijnkampf
Copy link
Contributor

@marijnkampf marijnkampf commented Feb 22, 2024

Description of change

Update the FE to use the new status field and allow for Deletion of Tasks using archived.

On the my tasks dashboard deleted tasks should be hidden.

On the task details page, show DELETED status on the task - this is so users can click through from ‘task deleted by other user’ notification.

Add Delete button on Task view page using.

Test instructions

  1. Create a Task from the Tasks tab on the Data Hub homepage.
  2. Edit the task
  3. From the edit page mark the task as complete. [The task should be marked complete]
  4. From the edit page mark the task as deleted. [The task should be deleted]
  5. Using the back button of your browser go back to the deleted task, it should be marked Deleted.
  6. The deleted task should not be included in the Tasks tab table.

Screenshots

Before

No delete button visible.

image

After

A delete button should be displayed on the Edit Task page.

image

Checklist

  • Has the branch been rebased to main?
  • Automated tests (Any of the following when applicable: Unit, Functional or End-to-End)
  • Manual compatibility testing (Browsers: Chrome, Firefox, Edge, Safari)

@marijnkampf marijnkampf changed the base branch from main to feature/task-deletion February 22, 2024 08:16
Copy link

cypress bot commented Feb 22, 2024

Passing run #51357 ↗︎

0 26 0 0 Flakiness 0

Details:

Remove empty arrow function.
Project: data-hub-frontend Commit: 5525fab7c5
Status: Passed Duration: 02:08 💡
Started: Feb 26, 2024 9:06 AM Ended: Feb 26, 2024 9:08 AM

Review all test suite changes for PR #6549 ↗︎

@marijnkampf marijnkampf marked this pull request as ready for review February 22, 2024 12:02
@marijnkampf marijnkampf requested a review from a team as a code owner February 22, 2024 12:02
Copy link
Contributor

@dredmonds dredmonds left a comment

Choose a reason for hiding this comment

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

Please find the comment with suggestion, otherwise it looks functional.

submitButtonLabel="Delete task"
initialValues={task}
>
{() => <></>}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think more elegant to remove empty arrow function inside Form component to make it like this:

<Form 
id="task-delete-form"
data-test="task-delete-form"
...<more props>
/>

@marijnkampf marijnkampf force-pushed the feature/task-deletion branch from 99e698b to 47dd438 Compare February 26, 2024 08:54
@marijnkampf marijnkampf force-pushed the feature/CLS2-695-allow-for-deletion-of-tasks branch from 0988a40 to d833496 Compare February 26, 2024 08:54
@marijnkampf marijnkampf merged commit acde6cb into feature/task-deletion Feb 26, 2024
11 of 13 checks passed
@marijnkampf marijnkampf deleted the feature/CLS2-695-allow-for-deletion-of-tasks branch February 26, 2024 10:21
@cypress cypress bot mentioned this pull request Feb 26, 2024
3 tasks
marijnkampf added a commit that referenced this pull request Feb 27, 2024
* Update the FE to use the new status field and allow for Deletion of Tasks using archived.
marijnkampf added a commit that referenced this pull request Feb 28, 2024
* Update the FE to use the new status field and allow for Deletion of Tasks using archived.
marijnkampf added a commit that referenced this pull request Feb 28, 2024
* Use status complete/active instead of archive true/false (#6497 / #6543)
* Feature/cls2 695 allow for deletion of tasks (#6549)
---------
Co-authored-by: Claudia Gonzalez-Casales @ClaudiaGC1339
Co-authored-by: santosh dasari <[email protected]>
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.

2 participants