2111 - Adjust Show inactive toggle#2112
Conversation
f44bcb8 to
5eb61f5
Compare
43e65c4 to
53d9766
Compare
Code Review FeedbackThanks for working on extending the "Show Inactive" toggle! I've reviewed the changes and found some architectural issues that need to be addressed before merging. Issues Found1. HIGH: Pagination Mismatch (Functional Regression)With Example: If a user has 100 tools (80 active, 20 inactive) with "Show Inactive" unchecked:
The backend applies Recommendation: Restore 2. MEDIUM: Filter Not Re-applied After HTMX SwapsThe inactive filter is only applied once via Fix: Add 3. MEDIUM: Search and Inactive Filters Don't ComposeThe PR removes the inactive check from User experience: If you search for "api" then toggle "Show Inactive", rows that don't match "api" reappear. Fix: Each filter function should respect both search AND inactive state. 4. LOW: ToolOps Toggle Is Non-FunctionalThe Tool Operations panel checkbox calls
Recommended Fix ApproachOption A (Recommended): Keep server-side filtering for pagination accuracy
|
53d9766 to
04a2320
Compare
630bb82 to
3c667d6
Compare
|
@crivetimihai The search will be handled on a separate issue (#2159) |
Redo the "Show inactive" toggle functionality from PR #2099 to leverage HTMX and replace the rendered content with the content rendered on the server. Changes: - Implement filtering based on data-enabled attribute - Sync toggle state with URL query parameter (?include_inactive=true) - Remove "Show inactive" toggle from Roots table (no enabled/disabled state) - Remove "Deactivate" button from Roots table actions - Reorganize Roots table actions to 2x2 grid layout Signed-off-by: Gabriel Costa <gabrielcg@proton.me> Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>
Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>
3c667d6 to
2c0cad5
Compare
Review ChangesRebased onto main and addressed the following issues: Bugs Fixed
Improvements
Summary
|
* Extend "Show inactive" toggle to all entity tables Redo the "Show inactive" toggle functionality from PR IBM#2099 to leverage HTMX and replace the rendered content with the content rendered on the server. Changes: - Implement filtering based on data-enabled attribute - Sync toggle state with URL query parameter (?include_inactive=true) - Remove "Show inactive" toggle from Roots table (no enabled/disabled state) - Remove "Deactivate" button from Roots table actions - Reorganize Roots table actions to 2x2 grid layout Signed-off-by: Gabriel Costa <gabrielcg@proton.me> Signed-off-by: Mihai Criveti <crivetimihai@gmail.com> * Lint fixes Signed-off-by: Mihai Criveti <crivetimihai@gmail.com> --------- Signed-off-by: Gabriel Costa <gabrielcg@proton.me> Signed-off-by: Mihai Criveti <crivetimihai@gmail.com> Co-authored-by: Mihai Criveti <crivetimihai@gmail.com>
🐛 Bug-fix PR
📌 Summary
Fix the Show inactive toggle behaviour on the Tools, Prompts, Resources and A2A Agents. Also, remove the toggle and deactivate button from the Roots table, as the functionality is not supported by the model.
Closes #2111
🔁 Reproduction Steps
Show Inactivecheckbox🐞 Root Cause
The rows are loaded on the server, so a page refresh was needed to update the table content.
💡 Fix Description
Manage which rows should be displayed from the frontend.
🧪 Verification
make lintmake testmake coverage✅ Checklist
make black isort pre-commit)