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-2373 Add Delete Option to Germplasm Lists View #420

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

dmeidlin
Copy link
Contributor

@dmeidlin dmeidlin commented Dec 10, 2024

Description

Story: BI-2373

Dependencies

BI-2372 BI-2374

Testing

  • Import a germplasm list to a project
  • navigate to the project's germplasm lists table and click on the details link for the imported list
  • in the list details table click on manage-list and select delete
  • verify that the list no longer appears in the lists table
  • navigate to the all-germplasm tab and verify that the individual germplasm contained in the deleted list are still present

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

@dmeidlin dmeidlin requested review from a team, HMS17 and mlm483 and removed request for a team December 10, 2024 19:37
Copy link
Contributor

@HMS17 HMS17 left a comment

Choose a reason for hiding this comment

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

A couple comments

src/components/germplasm/GermplasmListDeletionlModal.vue Outdated Show resolved Hide resolved
src/components/germplasm/GermplasmListDeletionlModal.vue Outdated Show resolved Hide resolved
@HMS17 HMS17 self-requested a review December 18, 2024 18:25
Copy link
Contributor

@mlm483 mlm483 left a comment

Choose a reason for hiding this comment

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

In addition to my comments, one thing to consider is making the list name a link to the list detail view rather than having a separate "Details" action stacked on top of "Download". I think it would make the UI easier to navigate.

src/breeding-insight/service/ListService.ts Show resolved Hide resolved
Comment on lines 25 to 27
<h1 class="title">
{{ list ? list.listName : "" | toStartCase }}
{{ toStartCase(list ? list.listName : "") }}
</h1>
Copy link
Contributor

Choose a reason for hiding this comment

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

Because the system treats list names as case-sensitive for validation purposes, I would not alter the casing for display. For example, I can upload lists called "yhh" and "Yhh", but when I try to upload a third list with the name "Yhh", I get the validation error, "Error: Import group name already exists".
image

Copy link
Contributor Author

@dmeidlin dmeidlin Dec 19, 2024

Choose a reason for hiding this comment

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

The edit on line 26 just fixes the old filter syntax that was throwing an error. The filter has the same functionality and list names are still displayed with case sensitivity as in the image, so I don't think there is any change needed here.

Copy link
Contributor

Choose a reason for hiding this comment

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

My initial comment may have been unclear, I'm talking about the <h1> on the germplasm by list view. In this screenshot, you can see how the list of lists view shows the case-sensitive names, but the germplasm by list view uses toStartCase. I recommend removing the call to toStartCase on line 26 of GermplasmByList.vue.
Screenshot 2024-12-20 at 9 01 37 AM

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed. I removed the filter.

src/breeding-insight/service/ListService.ts Outdated Show resolved Hide resolved
@dmeidlin
Copy link
Contributor Author

In addition to my comments, one thing to consider is making the list name a link to the list detail view rather than having a separate "Details" action stacked on top of "Download". I think it would make the UI easier to navigate.

That's a valid point. I would bring this up at a meeting and at least let @shawnyarnes weigh in since it's a UI change, rather than tacking it on to this feature where the scope doesn't really overlap.

@dmeidlin dmeidlin requested a review from mlm483 December 19, 2024 22:24
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