feature: add "group by" dropdown to sidebar#551
Merged
Conversation
Contributor
🪼 branch checks and previews
|
Contributor
🦄 change detectedThis Pull Request includes changes to the following packages.
|
🪼 branch checks and previews
Install Trackio from this PR (includes built frontend) pip install "https://huggingface.co/buckets/trackio/trackio-wheels/resolve/0496da6bca1d32bf9aa83d95c8927f0f18997d99/trackio-0.25.1-py3-none-any.whl" |
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds sidebar support for grouping runs by config fields, backed by a new run-config API and static-mode config loading.
Changes:
- Adds
/get_run_configsserver/API support and static frontend equivalent. - Adds grouping utility logic and unit tests for option computation and bucketing.
- Updates the sidebar to render a “Group by” dropdown with per-group run selection.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
trackio/sqlite_storage.py |
Returns all stored run configs keyed by run ID when available. |
trackio/server.py |
Exposes get_run_configs through the API registry. |
trackio/frontend/src/lib/api.js |
Adds frontend API wrapper for run configs. |
trackio/frontend/src/lib/staticApi.js |
Adds static-mode config extraction from exported config parquet data. |
trackio/frontend/src/lib/grouping.js |
Adds config grouping option and bucketing helpers. |
trackio/frontend/src/lib/grouping.test.js |
Adds Vitest coverage for grouping helper behavior. |
trackio/frontend/src/components/Sidebar.svelte |
Adds the grouping dropdown and grouped run checkbox UI. |
trackio/frontend/src/App.svelte |
Fetches run configs and passes them to the sidebar. |
tests/unit/test_local_server_api.py |
Adds API integration tests for run config retrieval. |
.changeset/loose-loops-obey.md |
Adds a minor-version changeset for the feature. |
Comments suppressed due to low confidence (1)
trackio/frontend/src/App.svelte:152
refreshRuns()is called by the app poller every 1s (2.5s on Spaces), so this now downloads every run's full config on each poll even though configs usually change only when runs are created. For projects with many runs or large configs this can add significant recurring API/JSON overhead; consider fetching configs only when the selected project or run list changes, or add a lighter incremental/cache-aware endpoint.
const [data, configs] = await Promise.all([
getRunsForProject(selectedProject),
getRunConfigs(selectedProject).catch(() => null),
]);
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
znation
approved these changes
May 20, 2026
Member
|
Works beautifully @Saba9, LGTM! |
Merged
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.
Short Description
This PR adds support for grouping runs by config fields in the sidebar.
Users can select any run config key from a Group by dropdown. Runs are then displayed in labeled sections with select-all checkboxes per group.
Two reserved keys are promoted to the top of the dropdown:
_Group— set viawandb.init(group=...), displayed as Group_Username— displayed as UsernameThese reserved keys only appear when they have at least two distinct values across runs. Config keys prefixed with
_that are not explicitly promoted are hidden from the dropdown.AI Disclosure
I used AI to write the code on this branch.
Type of Change
Related Issues
Closes:
Testing and Linting
/get_run_configsendpoint:test_get_run_configs_returns_config_per_runtest_get_run_configs_returns_empty_for_unknown_projectgrouping.js, covering:pytestpassesruff check --fix --select Iruff format