Add multi-action rules UI

This commit is contained in:
Jordan Wages 2025-06-25 03:23:13 -05:00
commit 74fb932b45
5 changed files with 212 additions and 36 deletions

View file

@ -78,6 +78,19 @@
flex-wrap: wrap;
}
.tab-button {
background: #e0e0e0;
}
.tab-button.active {
background: #007acc;
color: #fff;
}
.tab {
margin-top: 20px;
}
#rules-container {
margin-top: 10px;
}
@ -93,6 +106,10 @@
margin-top: 10px;
}
.action-row {
margin-bottom: 5px;
}
button {
padding: 10px 20px;
border: none;
@ -132,7 +149,13 @@
<img src="../resources/img/full-logo.png" alt="AI Filter Logo">
</header>
<nav style="display:flex; gap:10px; justify-content:center; margin-top:10px;">
<button type="button" data-tab="settings" class="tab-button">Settings</button>
<button type="button" data-tab="rules" class="tab-button">Rules</button>
</nav>
<main>
<div id="settings-tab" class="tab">
<div class="form-group">
<label for="endpoint">Endpoint:</label>
<input type="text" id="endpoint" placeholder="https://api.example.com">
@ -213,10 +236,14 @@
</div>
</div>
<hr>
</div>
<div id="rules-tab" class="tab" style="display:none">
<h2>Classification Rules</h2>
<div id="rules-container"></div>
<button id="add-rule" type="button">Add Rule</button>
</div>
</main>
<script src="options.js"></script>