Repository navigation
feat(dashboard): filter models page by enabled or disabled status - #1133
SantiagoDePolonia wants to merge 1 commit into
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (8)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe models page now filters model rows by enabled or disabled status, in addition to its existing text filter. The page updates filtered counts and no-match messaging based on either filter. New filter labels are provided in English, German, Polish, and Chinese. ChangesModel Status Filtering
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant ModelsPage
participant VirtualModelsStore
participant displayRowEnabled
ModelsPage->>VirtualModelsStore: Set statusFilter from toolbar selection
VirtualModelsStore->>VirtualModelsStore: Apply text filter to display rows
VirtualModelsStore->>displayRowEnabled: Check enabled state for each row
displayRowEnabled-->>VirtualModelsStore: Return row enabled state
VirtualModelsStore-->>ModelsPage: Provide status-filtered rows and active-filter state
Suggested reviewers: Merge Risk: ⚪ Minimal · up to The Enabled and Disabled controls appear to filter the displayed models consistently. No identified issue blocks merging after normal checks. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. A rabbit taps the filter bar, Comment |
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
| options={statusOptions} | ||
| value={virtualModels.statusFilter} | ||
| ariaLabel={m.models_status_filter_label()} | ||
| onchange={(value) => (virtualModels.statusFilter = value)} |
There was a problem hiding this comment.
If someone selects Disabled, leaves the Models page, and then clicks a provider’s model count on Overview, virtualModels.statusFilter stays set to Disabled. The provider link sets a search but does not clear that choice, so the page hides the provider’s enabled models and may say no models match. Clear the saved status choice when opening the provider’s model list.
No flows tested, and faced 3 obstacles. Obstacles faced
To reduce obstacles, configure your TREX environment. |
Part of #1104 (item 2).
Adds an All / Enabled / Disabled control next to the Models page search.
Summary by CodeRabbit