Skip to content

Guard all incident actions against nil selection#233

Merged
clcollins merged 1 commit into
mainfrom
srepd/fix-actions-no-selection
May 30, 2026
Merged

Guard all incident actions against nil selection#233
clcollins merged 1 commit into
mainfrom
srepd/fix-actions-no-selection

Conversation

@clcollins
Copy link
Copy Markdown
Owner

Summary

Added nil-selection guards to 10 action handlers in msgHandlers.go:

  • Table mode: Enter, SOP
  • Incident view: Refresh, Ack, UnAck, Silence, Note, Login, Open, SOP
  • 12 new tests

Closes #224

🤖 Generated with Claude Code

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 30, 2026

Codecov Report

❌ Patch coverage is 86.11111% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 67.73%. Comparing base (14ea86b) to head (fe643f3).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
pkg/tui/msgHandlers.go 86.11% 4 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #233      +/-   ##
==========================================
+ Coverage   67.01%   67.73%   +0.71%     
==========================================
  Files          26       26              
  Lines        3762     3790      +28     
==========================================
+ Hits         2521     2567      +46     
+ Misses       1108     1088      -20     
- Partials      133      135       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@clcollins clcollins force-pushed the srepd/fix-actions-no-selection branch from da6475f to e07b7a7 Compare May 30, 2026 01:03
Actions in both table and incident-view modes now check for a valid
selection before executing, returning "no incident selected" or
"no incident highlighted" status messages instead of proceeding with
nil data or opening empty viewers.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@clcollins clcollins force-pushed the srepd/fix-actions-no-selection branch from e07b7a7 to fe643f3 Compare May 30, 2026 01:05
@clcollins clcollins merged commit 0d0986a into main May 30, 2026
7 checks passed
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.

Actions triggered when no issue is selected should not run

2 participants