Skip to content

Conversation

@jjelliott
Copy link
Contributor

Implemented service request removal suggestions.

Backend:

  • Added removal suggestions with soft deletes.
  • Added count of active suggestions to ServiceRequestDTO.
  • Implemented endpoint to dismiss suggestions.

Frontend:

  • Added "Suggest Removal" button and form to map view.
  • Added a "Removal Suggestions" column to the admin issues table.
  • Integrated a list of removal suggestions into the admin detail sidebar.
  • Implemented suggestion dismissal with confirmation modal and table refresh.

Signed-off-by: Jesse Elliott <elliottj@objectcomputing.com>
Signed-off-by: Jesse Elliott <elliottj@objectcomputing.com>
Signed-off-by: Jesse Elliott <elliottj@objectcomputing.com>
Signed-off-by: Jesse Elliott <elliottj@objectcomputing.com>
Signed-off-by: Jesse Elliott <elliottj@objectcomputing.com>
Comment on lines +36 to +41
setTimeout(() => {
handleClose();
setTimeout(() => {
reset();
}, 500);
}, 1500);
Copy link
Member

Choose a reason for hiding this comment

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

There could be a potential leak here if the user closes the modal or navigates away prior to firing.

Copy link
Member

@stanleykc stanleykc left a comment

Choose a reason for hiding this comment

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

Working with Claude, I found a few items that might improve the code. I think it works well, although the "Suggest Removal" link is not very obvious - it kind

Signed-off-by: Jesse Elliott <elliottj@objectcomputing.com>
@jjelliott jjelliott requested a review from stanleykc January 19, 2026 16:56
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.

3 participants