Repository navigation
fix(eval): delete current eval cases independently of tab mounting - #563
Open
Aaravkhanal wants to merge 2 commits into
Open
Aaravkhanal wants to merge 2 commits into
Aaravkhanal wants to merge 2 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #547.
Deleting the current eval case could display “Eval case deleted” without sending a DELETE request because ChatComponent queried EvalTabComponent directly, even though the eval tab is dynamically owned by SidePanelComponent.
The detail-view delete handler now calls EvalService using the app, eval set, and case captured when confirmation opens. It shows success only after the DELETE succeeds, reports failures without clearing the case, and refreshes the matching eval tab after success. The detail toolbar now exposes an accessible delete button that opens the existing confirmation dialog, so the fixed handler is reachable from the reported workflow.
After a successful delete, the detail view is cleared only if the same case and eval set are still selected. The side panel uses its existing post-fetch refresh and next-case selection logic.
Validation:
npm run buildpasses; existing Angular and CommonJS dependency warnings remain.git diff --checkpasses.PR #390 adjusts snackbar styling but does not make the detail-view delete handler send the request. This PR covers the request, success/error handling, and the missing visible action.