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

BI-2377 - Add Delete Option to Experiments View #423

Merged
merged 10 commits into from
Jan 22, 2025
Merged

Conversation

davedrp
Copy link
Contributor

@davedrp davedrp commented Jan 9, 2025

Description

BI-2377 Add Delete Option to Experiments View

Also fixed one accessibility issue ("Text not included in an ARIA landmark")

Dependencies

bi-api: develop
brapi-Java-TestServer: develop (be sure to pull the latest version. there is a needed bug fix)

Testing

Checklist:

  • I have performed a self-review of my own code
  • I have tested my code and ensured it meets the acceptance criteria of the story
  • I have create/modified unit tests to cover this change
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to documentation
  • I have run TAF: <link to TAF run>
  • I have run SiteImprove on pages impacted by changes

@davedrp davedrp requested review from a team, dmeidlin and nickpalladino and removed request for a team January 9, 2025 16:44
Comment on lines 18 to 51
<template>
<section
v-bind:id="'deleteModal-' + uniqueId"
v-bind:class="modalClass"
>
<FormModal
v-bind:active.sync="active"
v-bind:title="modalTitle"
v-on:deactivate="closeDeleteModal"
>
<template #form>
<slot name="form" />
</template>
<template #buttons>
<div class="columns">
<div class="column is-whole has-text-centered buttons">
<button
class="button is-primary has-text-weight-bold"
v-on:click="invokeDeleteAction"
>
<strong>Yes</strong>
</button>
<button
class="button"
v-on:click="closeDeleteModal"
>
Cancel
</button>
</div>
</div>
</template>
</FormModal>
</section>
</template>
Copy link
Contributor

Choose a reason for hiding this comment

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

This modal seems to be based off of /src/components/modals/ConfirmationModal.vue. The germplasm list delete uses ConfirmationModal.vue in the same way DeleteModal is being used here. Is there a reason to add a new modal component or can ConfirmationModal.vue be used for experiments as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks.
Done

@@ -17,7 +17,7 @@

import {Ability, AbilityClass} from '@casl/ability';

type Actions = 'manage' | 'create' | 'read' | 'update' | 'delete' | 'archive' | 'access' | 'submit';
type Actions = 'manage' | 'delete' |'create' | 'read' | 'update' | 'delete' | 'archive' | 'access' | 'submit';
Copy link
Contributor

Choose a reason for hiding this comment

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

'delete' is already present between update and archive and shouldn't need to be added again.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you.
Implemented.

@davedrp davedrp marked this pull request as ready for review January 14, 2025 14:45
@davedrp davedrp changed the title DRAFT BI-2377 - Add Delete Option to Experiments View BI-2377 - Add Delete Option to Experiments View Jan 14, 2025
@davedrp davedrp requested a review from dmeidlin January 15, 2025 14:48
Copy link
Member

@nickpalladino nickpalladino left a comment

Choose a reason for hiding this comment

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

I think there should probably be a success notification when an experiment is successfully deleted to be consistent with behavior in other areas of the UI. Other than that testing looked good.

@davedrp
Copy link
Contributor Author

davedrp commented Jan 16, 2025

@nickpalladino The success notification was aded

@davedrp davedrp requested a review from nickpalladino January 16, 2025 16:17
Copy link
Member

@nickpalladino nickpalladino left a comment

Choose a reason for hiding this comment

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

Testing looks good

@davedrp davedrp merged commit 1e9d449 into develop Jan 22, 2025
1 check passed
@davedrp davedrp deleted the feature/BI-2377 branch January 22, 2025 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants