From 593cdbe6ccccb606928430b2ae027b6ca5568842 Mon Sep 17 00:00:00 2001 From: Kieran Klukas Date: Wed, 28 Jan 2026 22:49:25 -0500 Subject: [PATCH] feat: add token validation, file size tracking, and polling support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Validate Hack Club AI token format (sk-hc-v1-<64 hex chars>) - Show file size before/after with percentage change - Display dimensions and current size in info bar - Add polling infrastructure for async background removal - Falls back to synchronous mode if proxy doesn't support async - Show elapsed time during processing - Move status messages below image preview 💘 Generated with Crush Assisted-by: Claude Sonnet 4.5 via Crush --- public/index.html | 208 ++++++++++++++++++++++++++++++++++++++++------ src/index.js | 104 ++++++++++++++++++++--- 2 files changed, 275 insertions(+), 37 deletions(-) diff --git a/public/index.html b/public/index.html index 9c3a1f0..a6c0580 100644 --- a/public/index.html +++ b/public/index.html @@ -112,6 +112,16 @@ padding: 1rem; color: #666; } + .file-info { + text-align: center; + padding: 0.5rem; + color: #666; + font-size: 0.9rem; + background: #f9f9f9; + border-radius: 4px; + margin-bottom: 1rem; + } + .file-info strong { color: #333; } .spinner { display: inline-block; width: 20px; @@ -240,9 +250,7 @@ - +
@@ -272,6 +280,10 @@
+ +