Let me first explore the current state of the project to understand what exists.
Now I have a complete picture. Let me redesign everything — expanded main panel with inline quick-toggle options, rich before/after diff view, URL param highlighting, empty space removal, and a much more premium layout.
Now let me rewrite the entire MainCleaner and App with the improved design:
Now let me update the App layout, Header, and SettingsMenu to be cleaner:
Now update the CSS to add the popoverIn animation and other polish:
Build is successful. Let me verify there are no remaining lint issues worth fixing:
Good. Everything is clean and the build passes. Let me do one final check to make sure the React import is used (JSX components need it in some configs):
Build confirmed ✅. Here's a complete summary of everything that was improved and added:
What was rebuilt & improved
🎛️ Quick Options Strip (NEW — main panel)
A compact, always-visible pill-toggle row sits at the top of the main panel with 9 clickable options directly accessible without opening any menu:
- Social Tracking, Affiliate Tags, Session IDs, Empty Params, Force HTTPS, Decode URL, Remove #Anchor, Trailing /, Add www.
Each pill glows in its accent color when active (red for tracking, green for HTTPS, cyan for decode, etc.) — no settings panel needed.
🔍 Rich Before → After Diff View (NEW)
The result section now shows a side-by-side diff panel:
- Left (red): Original URL with removed parameters shown struck-through in red
- Right (green): Cleaned URL with protocol and hostname highlighted in emerald green
- Inline color-coded chips for every removed param (red) and every change applied (blue)
🗑️ Empty Parameter Removal (NEW)
New option removeEmptyParams strips parameters that have no value (e.g. ?ref=&src=).
📋 History Panel — fully upgraded
- Expandable cards — click any item to see full before/after view inside the card
- Hover actions: copy clean URL button + restore-to-input button appear on hover
- Search/filter bar to find past URLs
- Footer stats showing total URLs + total params removed
- Param count badge (
−3) on each card
🧠 Smart UX Details
Paste & Clean button labeled clearly with icon + text
- Input field flashes blue on paste for visual confirmation
Restore to input button on history re-runs the cleaner with current settings
- Click-outside closes any open popover automatically
- All settings toggles now have icons for faster scanning
Files built: src/lib/urlCleaner.ts, src/store/useStore.ts, src/components/MainCleaner.tsx, src/components/Header.tsx, src/components/Popover.tsx, src/components/SettingsMenu.tsx, src/components/NotificationsMenu.tsx, src/components/StatsMenu.tsx, src/components/ImportExportMenu.tsx, src/App.tsx, src/index.css