Repository navigation
Role cast table - #7
Merged
Merged
Conversation
Mirror usansred.enums.MeasurementType (sample, background, empty_cell) and add ROLE_LABELS for display text. Raise the Python floor to 3.11 for StrEnum in the project metadata and both Pixi python pins. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
RoleCast holds one RunAssignment per fetched run, defaulting to sample. Refetching keeps the assignments of runs still present, assign() looks up every run number before changing any role, and as_rows() projects the grid rows with a hidden _role key for the row-coloring rules. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
RoleCastTable collects the runs captured by Fetch Runs. Each fetch adds its runs; runs already in the table keep their role. A new run starts as sample, or with the role of the runs sharing its name. Set as Sample, Set as Background and Set as Empty Cell reassign every run sharing a name with a selected run, so runs with the same name always share a role. Remove Runs removes only the selected runs. The table lists runs by decreasing run number. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
RunsSelector.fetched_runs now lists runs by decreasing run number, the order in which ONCat lists them and the IPTSTable shows them, instead of increasing run number. The sort still makes the order independent of the order the selection was built in. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Rows are colored by role through rowClassRules on the hidden _role value: white for sample, light pink for background, light blue for empty cell. Selected rows get a stronger highlight over the role color. The CSS is scoped to the role table's rows. The Name column takes most of the table width and shows the full name in a tooltip. Buttons now replace the rows in the live grid instead of rebuilding it, so column widths, column order and scroll position set by the user are kept. Rows are identified by run number so AG Grid updates them in place, and the selection is cleared after each update. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Add a RoleCastTable section to the usage page covering how fetches add runs, name-group role assignment, Remove Runs and the row colors. Replace the note that role assignment is planned, in the usage page and the index page. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
9 of 14 tasks
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.
Description of the changes
References:
Check all that apply:
Manual test for the reviewer
Checklist for the author
pixi run testpassespixi run build-docspasses, if documentation changedChecklist for the reviewer