Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions find_ux.py

This file was deleted.

9 changes: 0 additions & 9 deletions fix_script.py

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -1445,8 +1445,8 @@ class WebServer(
<div id="apps" class="content" role="tabpanel" aria-labelledby="tab_apps">
<div class="panel">
<h3>New Rule</h3>
<div style="margin-bottom:10px;"><label for="appPkg">Package Name</label><input type="text" id="appPkg" list="pkgList" placeholder="Type to search packages..." oninput="toggleAddButton()" onkeydown="if(event.key==='Enter') addAppRule()" spellcheck="false" autocomplete="off" autocorrect="off" autocapitalize="off"><datalist id="pkgList"></datalist></div>
<div class="grid-2" style="margin-bottom:10px;"><div><label for="appTemplate">Identity Profile</label><select id="appTemplate"><option value="null">No Identity Spoof</option></select></div><div><label for="appKeybox">Custom Keybox</label><input type="text" id="appKeybox" list="keyboxList" placeholder="Custom Keybox" onkeydown="if(event.key==='Enter') addAppRule()" spellcheck="false" autocomplete="off" autocorrect="off" autocapitalize="off"><datalist id="keyboxList"></datalist></div></div>
<div style="margin-bottom:10px; position:relative;"><label for="appPkg">Package Name</label><input type="text" id="appPkg" list="pkgList" placeholder="Type to search packages..." oninput="toggleAddButton(); document.getElementById('clearPkgBtn').style.display=this.value?'block':'none';" onkeydown="if(event.key==='Enter') addAppRule()" spellcheck="false" autocomplete="off" autocorrect="off" autocapitalize="off" style="padding-right:30px;"><button id="clearPkgBtn" class="clear-btn" onclick="document.getElementById('appPkg').value=''; this.style.display='none'; toggleAddButton(); document.getElementById('appPkg').focus();" style="top:auto; bottom:6px; transform:none;">&times;</button><datalist id="pkgList"></datalist></div>
<div class="grid-2" style="margin-bottom:10px;"><div><label for="appTemplate">Identity Profile</label><select id="appTemplate"><option value="null">No Identity Spoof</option></select></div><div style="position:relative;"><label for="appKeybox">Custom Keybox</label><input type="text" id="appKeybox" list="keyboxList" placeholder="Custom Keybox" oninput="document.getElementById('clearKbBtn').style.display=this.value?'block':'none';" onkeydown="if(event.key==='Enter') addAppRule()" spellcheck="false" autocomplete="off" autocorrect="off" autocapitalize="off" style="padding-right:30px;"><button id="clearKbBtn" class="clear-btn" onclick="document.getElementById('appKeybox').value=''; this.style.display='none'; document.getElementById('appKeybox').focus();" style="top:auto; bottom:6px; transform:none;">&times;</button><datalist id="keyboxList"></datalist></div></div>
<div class="section-header">Blank Permissions (Privacy)</div><div style="display:flex; gap:15px;"><div class="row"><input type="checkbox" id="permContacts" class="toggle"><label for="permContacts">Contacts</label></div><div class="row"><input type="checkbox" id="permMedia" class="toggle"><label for="permMedia">Media</label></div><div class="row"><input type="checkbox" id="permMicrophone" class="toggle"><label for="permMicrophone">Microphone</label></div></div>
<button id="btnAddRule" class="primary" style="width:100%" onclick="addAppRule()" disabled>Add Rule</button>
</div>
Expand Down Expand Up @@ -2431,7 +2431,7 @@ class WebServer(
if (pMedia) permissions.push('MEDIA');
if (pMicrophone) permissions.push('MICROPHONE');
appRules.push({ package: pkg, template: tmpl === 'null' ? '' : tmpl, keybox: kb, permissions: permissions });
renderAppTable(); pkgInput.value = ''; document.getElementById('appKeybox').value = '';
renderAppTable(); pkgInput.value = ''; document.getElementById('appKeybox').value = ''; if(document.getElementById('clearPkgBtn')) document.getElementById('clearPkgBtn').style.display='none'; if(document.getElementById('clearKbBtn')) document.getElementById('clearKbBtn').style.display='none';
document.getElementById('permContacts').checked = false; document.getElementById('permMedia').checked = false; document.getElementById('permMicrophone').checked = false;
toggleAddButton(); pkgInput.focus(); notify('Rule Added');
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class WebServerPaletteTest {

// 3. Verify appPkg input has oninput handler
assertTrue("appPkg input should have oninput handler",
html.contains("id=\"appPkg\"") && html.contains("oninput=\"toggleAddButton()\"")
html.contains("id=\"appPkg\"") && html.contains("toggleAddButton();")
)

// 4. Verify toggleAddButton function exists
Expand Down
Loading