pipeline: optimistic auto-process checkbox state
Build and Push Docker Image / build (push) Successful in 2m42s
Build and Push Docker Image / build (push) Successful in 2m42s
both auto-process toggles (Inbox, Queue) used a fully-controlled checkbox whose checked prop was driven by data.autoProcessing / autoProcessQueue. that made clicks feel frozen on anything slower than localhost: react reconciles the DOM back to the pre-click value between onChange firing and setData landing after loadAll, so a click could look like it snapped back before the server answered. uncheck in particular showed up as "can't turn it off" when the queue was idle. mirror the prop in a local useState + sync via useEffect so the box flips on click and the server value reconciles on the next pipeline refresh. matches the pattern SettingsPage already uses for the same toggle. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "netfelix-audio-fix",
|
||||
"version": "2026.04.19.10",
|
||||
"version": "2026.04.19.11",
|
||||
"scripts": {
|
||||
"dev:server": "NODE_ENV=development bun --hot server/index.tsx",
|
||||
"dev:client": "vite",
|
||||
|
||||
Reference in New Issue
Block a user