fix: add undo disk selection capability #3

Closed
bot wants to merge 0 commits from fio_workflow into dev
Collaborator

Summary

Fixes issue #1: Users can now undo disk selection in the Benchmark tab.

Changes

templates/benchmark.html

  • Added a "Clear Selection" button below the drive selection info
  • Button is hidden by default (display: none)

static/js/main.js

  • Modified selectDrive(): Shows the clear selection button when a drive is selected
  • Added clearDriveSelection(): New function that:
    • Resets the selectedDrive global state
    • Clears the selection info alert
    • Hides the clear selection button
    • Resets the benchmark configuration section to its default state
    • Unchecks all radio buttons
  • Added click event listener for the clear selection button

User Flow

  1. User selects a drive → "Clear Selection" button appears
  2. User clicks "Clear Selection" → All selections are reset
  3. User can select a different drive if needed
## Summary Fixes issue #1: Users can now undo disk selection in the Benchmark tab. ## Changes ### `templates/benchmark.html` - Added a "Clear Selection" button below the drive selection info - Button is hidden by default (`display: none`) ### `static/js/main.js` - Modified `selectDrive()`: Shows the clear selection button when a drive is selected - Added `clearDriveSelection()`: New function that: - Resets the `selectedDrive` global state - Clears the selection info alert - Hides the clear selection button - Resets the benchmark configuration section to its default state - Unchecks all radio buttons - Added click event listener for the clear selection button ## User Flow 1. User selects a drive → "Clear Selection" button appears 2. User clicks "Clear Selection" → All selections are reset 3. User can select a different drive if needed
bot added 1 commit 2026-10-01 22:26:25 +04:00
max closed this pull request 2026-10-01 22:38:58 +04:00

Pull request closed

Sign in to join this conversation.