Skip to content

[ENG-12457] Update delete project/component - #1084

Open
nsemets wants to merge 6 commits into
CenterForOpenScience:feature/pbs-26-20from
nsemets:fix/ENG-12457
Open

nsemets wants to merge 6 commits into
CenterForOpenScience:feature/pbs-26-20from
nsemets:fix/ENG-12457

Conversation

@nsemets

@nsemets nsemets commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator

Summary of Changes

  1. Delete project/component flows were consolidated into a one shared flow.
  2. Updated unit tests.
  3. Clean up code.

@nsemets
nsemets requested a review from brianjgeiger October 20, 2026 14:47

readonly isInputValid = computed(() => this.userInput() === this.selectedScientist);
readonly hasMultipleResources = computed(() => (this.resources()?.length ?? 0) > 1);
readonly showList = computed(() => !this.dialogData.singleMessageKey || this.hasMultipleResources());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I believe project deletion should show the short confirmation message when there are no sub-components, same as component deletion does. right now it looks like it always shows the list and warning instead, even when the list would be empty. Can you verify/confirm if this is handled correctly?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I didn’t change any of the deletion logic. It works the same way as before. I just consolidated everything into one shared flow. If we need to change the behavior, we should discuss it with Product first.

@nsemets
nsemets requested a review from omar-cos October 21, 2026 07:39
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