Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.

Conversation

@aaronherman
Copy link
Contributor

@aaronherman aaronherman commented Aug 8, 2025

Adds a top level "Report Security Event" button
image

Adds a footer on the Report Incident page for configured projects
image

@aaronherman aaronherman requested a review from Copilot August 8, 2025 20:09
@aaronherman aaronherman added the enhancement New feature or request label Aug 8, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request adds configurable functionality to suggest security event reporting over incident reporting. The feature enables projects to display UI hints directing users to the Security Event reporting page when they might be reporting a security-related incident.

  • Adds a new project-level configuration option suggest_security_event_over_incident with database schema changes
  • Introduces a top-level "Report Security Event" button in the application toolbar
  • Displays a warning alert on the incident reporting page when the feature is enabled

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/dispatch/project/models.py Adds database model field and schema for the new configuration option
src/dispatch/database/revisions/tenant/versions/2025-08-06_f2bce475e71b.py Database migration to add the new column
src/dispatch/static/dispatch/src/project/store.js Updates frontend store with new project configuration fields
src/dispatch/static/dispatch/src/project/NewEditSheet.vue Adds UI checkbox for configuring the security event suggestion
src/dispatch/static/dispatch/src/components/AppToolbar.vue Adds "Report Security Event" button to the toolbar
src/dispatch/static/dispatch/src/incident/ReportSubmissionCard.vue Displays warning alert suggesting security event reporting when enabled

@aaronherman aaronherman requested a review from whitdog47 August 11, 2025 19:44
@aaronherman aaronherman merged commit 0b99a22 into main Aug 15, 2025
14 checks passed
@aaronherman aaronherman deleted the toggle-incident-creation-button-by-project branch August 15, 2025 18:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants