864 B
864 B
Enable Clear Session Button in Pack Generator
Object
Enable and improve the "Clear Session" button in the Cube Manager (Pack Generator) to allow users to restart the generation process from a clean state.
Changes
- Modified
CubeManager.tsx:- Updated
handleResetlogic (verified). - enhanced "Clear Session" button styling to be more visible (red border/text) and indicate its destructive nature.
- Added
disabled={loading}to prevent state conflicts during active operations. - Replaced
window.confirmwith a double-click UI confirmation pattern to ensure reliability and better UX (fixed issue where native confirmation dialog was failing).
- Updated
Status
- Implementation complete.
- Verified logic for
localStorageclearing. - Verified interaction in browser (button changes state, clears data on second click).