UI extension improvements: sorting, registry path, field colors#216
Merged
Conversation
Adds a boolean sort_children parameter (default False) to RegistryBrowser and ModelRegistryViewer. When True, child entries are sorted alphabetically by name at every nested ModelRegistry level. Default preserves existing insertion-order behavior. Signed-off-by: Pascal Tomecek <pascal.tomecek@cubistsystematic.com>
Adds the full slash-separated registry path of the currently selected model to the top of the Summary tab, formatted similarly to the existing Registry Dependencies section. The path is plumbed from RegistryBrowser through ModelRegistryViewer and ModelViewer as plain instance attributes, set in lockstep with (and before) each model assignment so the existing model watcher renders both together. Signed-off-by: Pascal Tomecek <pascal.tomecek@cubistsystematic.com>
Introduces a small _FIELD_STYLES dict mapping kinds (name, type, description) to inline CSS, and applies them in ModelTypeViewer's field list and the top 'Type:' line. Colors follow a GitHub-light-style palette (blue for names, purple for types, muted gray italic for descriptions). Adding a new kind requires only one dict entry. Signed-off-by: Pascal Tomecek <pascal.tomecek@cubistsystematic.com>
Flips the default for sort_children on both RegistryBrowser and ModelRegistryViewer so children render alphabetically out of the box. Set sort_children=False to restore insertion order. Signed-off-by: Pascal Tomecek <pascal.tomecek@cubistsystematic.com>
When sort_children is enabled, group child entries like a file browser: subregistries listed first (alphabetical), then leaf models (alphabetical). Achieved with a tuple sort key (not is_registry, name). Signed-off-by: Pascal Tomecek <pascal.tomecek@cubistsystematic.com>
Wraps each Registry Dependencies entry in <code> so paths render in the same monospace font as the Registry Path shown above them. Signed-off-by: Pascal Tomecek <pascal.tomecek@cubistsystematic.com>
Contributor
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #216 +/- ##
=======================================
Coverage 95.37% 95.37%
=======================================
Files 142 142
Lines 11404 11428 +24
Branches 620 623 +3
=======================================
+ Hits 10876 10899 +23
Misses 399 399
- Partials 129 130 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Pascal Tomecek <pascal.tomecek@cubistsystematic.com>
feussy
approved these changes
May 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Several small, independent improvements to the Panel-based UI extension in `ccflow/ui/`. All cosmetic / quality-of-life; no behavior changes outside the UI.
Commits
Not in this PR
A separate follow-up will tackle viewport-scaling and a draggable sidebar/main divider via `pmui.Page`. Tracking that on its own branch.