From 8ef7de80a7abc4c0a91aff5d226d08f9bd8d92f2 Mon Sep 17 00:00:00 2001 From: Rob Webb Date: Fri, 22 May 2026 18:24:01 +0100 Subject: [PATCH 1/2] fix(ui): call correct handler for Open Folder action - Fix openLocalFolder function to call launchLocalFolderPicker() instead of openExcludeModal() --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 24f5c38..ec7edac 100644 --- a/index.html +++ b/index.html @@ -5777,7 +5777,7 @@ } function openLocalFolder(){ - openExcludeModal(true); + launchLocalFolderPicker() } function openLocalZip(){ From 78fb3944bc604ad1315188995e2c3526884bd328 Mon Sep 17 00:00:00 2001 From: Braedon Saunders Date: Sun, 24 May 2026 11:18:43 -0400 Subject: [PATCH 2/2] refactor(ui): remove dead exclude-modal-to-folder plumbing Open Folder now opens the directory picker directly, so the "launch folder after saving excludes" flow is unreachable. Remove the launchFolderAfterExcludeSave state, the openExcludeModal continueToFolder param, and the continuation branch in saveExcludePatterns. Simplify the modal Save button label and add the missing semicolon in openLocalFolder. Co-Authored-By: Claude Opus 4.7 (1M context) --- index.html | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/index.html b/index.html index ec7edac..6878068 100644 --- a/index.html +++ b/index.html @@ -5286,7 +5286,6 @@ var _ah=useState(false),showExcludeModal=_ah[0],setShowExcludeModal=_ah[1]; var _ai=useState(''),excludePatternInput=_ai[0],setExcludePatternInput=_ai[1]; var _aj=useState(''),excludePatternDraft=_aj[0],setExcludePatternDraft=_aj[1]; - var _ak=useState(false),launchFolderAfterExcludeSave=_ak[0],setLaunchFolderAfterExcludeSave=_ak[1]; var _al=useState(null),confirmDialog=_al[0],setConfirmDialog=_al[1]; var _am=useState(window.innerWidth),viewportWidth=_am[0],setViewportWidth=_am[1]; var _an=useState(null),mobilePanel=_an[0],setMobilePanel=_an[1]; @@ -5497,27 +5496,18 @@ setShowGraphConfig(false); } - function openExcludeModal(continueToFolder){ + function openExcludeModal(){ setExcludePatternDraft(excludePatternInput); - setLaunchFolderAfterExcludeSave(!!continueToFolder); setShowExcludeModal(true); } function closeExcludeModal(){ setShowExcludeModal(false); - setLaunchFolderAfterExcludeSave(false); } function saveExcludePatterns(){ - var nextInput=excludePatternDraft; - var nextPatterns=compileExcludePatterns(nextInput); - var shouldLaunchFolder=launchFolderAfterExcludeSave; - setExcludePatternInput(nextInput); + setExcludePatternInput(excludePatternDraft); setShowExcludeModal(false); - setLaunchFolderAfterExcludeSave(false); - if(shouldLaunchFolder){ - launchLocalFolderPicker(nextPatterns); - } } function closeConfirmDialog(result){ @@ -5777,7 +5767,7 @@ } function openLocalFolder(){ - launchLocalFolderPicker() + launchLocalFolderPicker(); } function openLocalZip(){ @@ -7649,7 +7639,7 @@ ) ) ), - React.createElement('button',{className:'top-btn','aria-label':'Edit exclude patterns',onClick:function(){openExcludeModal(false);},disabled:loading,type:'button',style:customExcludeCount?{borderColor:'var(--acc)',color:'var(--acc)'}:null}, + React.createElement('button',{className:'top-btn','aria-label':'Edit exclude patterns',onClick:function(){openExcludeModal();},disabled:loading,type:'button',style:customExcludeCount?{borderColor:'var(--acc)',color:'var(--acc)'}:null}, React.createElement(Icon,{name:'ban',size:'m'}), 'Excludes', customExcludeCount>0?' ('+customExcludeCount+')':'' @@ -7694,7 +7684,7 @@ ) ) ), - React.createElement('button',{className:'top-btn','aria-label':'Edit exclude patterns',onClick:function(){openExcludeModal(false);},disabled:loading,style:customExcludeCount?{borderColor:'var(--acc)',color:'var(--acc)'}:null}, + React.createElement('button',{className:'top-btn','aria-label':'Edit exclude patterns',onClick:function(){openExcludeModal();},disabled:loading,style:customExcludeCount?{borderColor:'var(--acc)',color:'var(--acc)'}:null}, React.createElement(Icon,{name:'ban',size:'m'}), 'Excludes', customExcludeCount>0?' ('+customExcludeCount+')':'' @@ -8252,7 +8242,7 @@ React.createElement('div',{className:'modal-footer'}, excludePatternDraft&&React.createElement('button',{className:'top-btn',onClick:function(){setExcludePatternDraft('');},style:{marginRight:'auto'}},'Clear Custom'), React.createElement('button',{className:'top-btn',onClick:closeExcludeModal},'Cancel'), - React.createElement('button',{className:'top-btn primary',onClick:saveExcludePatterns},launchFolderAfterExcludeSave?'Save & Continue':'Save') + React.createElement('button',{className:'top-btn primary',onClick:saveExcludePatterns},'Save') ) ) ),