mirror of
https://github.com/davidarroyo1234/InstagramUnfollowers.git
synced 2026-04-26 05:15:52 +03:00
[PR #259] [MERGED] Fix select all checkbox functionality and progress bar issues #388
Labels
No labels
bug
documentation
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/InstagramUnfollowers#388
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/davidarroyo1234/InstagramUnfollowers/pull/259
Author: @Kl4rkx
Created: 12/5/2025
Status: ✅ Merged
Merged: 12/7/2025
Merged by: @davidarroyo1234
Base:
master← Head:fixSelectAllBug📝 Commits (1)
86b85b3fix: Resolve select all checkbox bug and progress bar display issues📊 Changes
4 files changed (+27 additions, -25 deletions)
View changed files
📝
public/index.html(+1 -1)📝
src/components/Toolbar.tsx(+16 -21)📝
src/main.tsx(+6 -3)📝
src/styles/main.scss(+4 -0)📄 Description
Problem
The "Select all" and "Select all on this page" checkboxes were not responding when clicked, preventing users from selecting multiple users efficiently. Additionally, the progress bar would stop at 99% instead of reaching 100%, and had a small visual gap at the end.
Root Cause
onClickinstead ofonChange, which doesn't work reliably with controlled React checkboxesstate.percentage < 100 && !scanningPaused, but when the scan completes at exactly 100%,Math.floorwas rounding down to 99%left: 0; top: 0), causing alignment issuesSolution
onClickwithonChangeon both checkboxes for proper React controlled component behaviorscanningPauseddependency from disabled condition, keeping onlystate.percentage < 100Math.floortoMath.roundin both scanning and unfollowing progress calculations to ensure it reaches exactly 100%left: 0andtop: 0positioning to eliminate the visual gapTesting
Files Changed
src/components/Toolbar.tsx- Checkbox event handlers and disabled logicsrc/main.tsx- Progress percentage calculationssrc/styles/main.scss- Progress bar positioningpublic/index.html- Auto-generated build outputAdditional Notes
All changes maintain backward compatibility and follow existing code patterns. Comments have been added to explain the reasoning behind each fix.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.