Skip to content

Conversation

@lilstiffy
Copy link
Contributor

@lilstiffy lilstiffy commented Sep 23, 2025

This pull request introduces improvements to the scan results workflow and enhances the live feed UI in the application. The main changes include a new "Clear feed" button for the scan live feed, refined scan completion dialogs, and better handling of UI visibility for scan-related components. Additionally, some exception handling logic was simplified in the scan service. Below are the most important changes grouped by theme:

Live Feed UI Enhancements:

  • Added a "Clear feed" button to the scan tab, including all necessary wiring, visibility logic, and action handler. The button allows users to clear the scan live feed and resets the difference count. (HomeScreen.form, HomeScreen.java, HomePresenter.java) [1] [2] [3] [4] [5] [6]
  • Updated layout of the scan tab and live feed components to accommodate the new button and improve visual clarity. (HomeScreen.form, HomeScreen.java) [1] [2] [3] [4] [5] [6] [7] [8]

Scan Completion Workflow Improvements:

  • Refined scan completion dialogs: users are now prompted to view results whether or not differences were found, with tailored messages for each case. Navigation after scan completion is also improved—users are taken to the appropriate tab based on whether differences were detected. (HomePresenter.java, StringConstants.java) [1] [2] [3]

Service Exception Handling Simplification:

  • Simplified exception handling in ScanService: removed explicit handling for 404 errors in scan-related service methods so that missing data now results in an empty list rather than an exception. (ScanService.java) [1] [2] [3]

These changes collectively improve user experience by making scan results and live feed management clearer and more interactive, while also streamlining backend error handling.

When this PR is approved and merged, I'll do a Develop -> Master PR and release the this plus last thing i added as 0.3.1

@lilstiffy lilstiffy self-assigned this Sep 23, 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 enhances the scan results workflow by adding a "Clear feed" button to the scan tab and refining the scan completion user experience. The changes make the live feed management more interactive and improve navigation after scan completion.

  • Added a "Clear feed" button that allows users to manually clear the scan live feed and reset difference count
  • Refined scan completion dialogs to prompt users to view results regardless of whether differences were found
  • Simplified exception handling in ScanService by removing explicit 404 error handling

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
HomeScreen.form Added "Clear feed" button to UI layout and adjusted grid layout to accommodate new component
HomeScreen.java Added clearFeedButton field, getter method, and updated layout constraints for new button
StringConstants.java Updated scan completion messages to consistently offer viewing results for both scenarios
HomePresenter.java Implemented clear feed functionality, refined visibility logic, and improved scan completion workflow
ScanService.java Removed explicit 404 error handling to return empty lists instead of throwing exceptions

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

screen.getLiveFeedText().setText("");
// Reset diff count for the next scan
totalDiffCount = 0;
// Clear the live feed text area in preparation for the next scan
Copy link

Copilot AI Sep 23, 2025

Choose a reason for hiding this comment

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

[nitpick] Lines 312 and 314 could be reordered for better logical flow. Consider resetting totalDiffCount before clearing the text area, as the count reset is logically independent of the UI update.

Suggested change
// Clear the live feed text area in preparation for the next scan
// Update the live feed diff count in preparation for the next scan

Copilot uses AI. Check for mistakes.
@lilstiffy lilstiffy linked an issue Sep 23, 2025 that may be closed by this pull request
Copy link
Contributor

@pwgit-create pwgit-create left a comment

Choose a reason for hiding this comment

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

After testing the PR code, we found it to be exactly what we wanted and needed. :)

While I recommend following the suggestions from GitHub Copilot (which are valid), I won't hold this great PR hostage.

Good work Stefan! 💠

@lilstiffy lilstiffy merged commit 38fb866 into develop Sep 23, 2025
2 checks passed
@lilstiffy lilstiffy deleted the 232-persistent-scan-window-with-live-feed branch September 23, 2025 21:07
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.

Persistent Scan Window with Live Feed

3 participants