Skip to content

Role cast table - #7

Merged
jmborr merged 8 commits into
nextfrom
RoleCastTable
Sep 30, 2026
Merged

jmborr merged 8 commits into
nextfrom
RoleCastTable

Conversation

@jmborr

@jmborr jmborr commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

Description of the changes

References:

  • Links to IBM EWM items: 17735

Check all that apply:

  • Updated documentation
  • Source added/refactored
  • Unit tests added/refactored
  • Widget/UI tests added/refactored
  • Updated packaging, dependency, or Pixi configuration

Manual test for the reviewer

Checklist for the author

  • pixi run test passes
  • pixi run build-docs passes, if documentation changed
  • Documentation is updated or not required
  • Versioning/package metadata changes were verified, if applicable

Checklist for the reviewer

  • Code follows project conventions and best software practices
  • Variables and public names are clear
  • Comments explain non-obvious intent, not mechanics
  • Tests cover the changed behavior
  • Documentation and packaging metadata are consistent with the change

jmborr and others added 6 commits September 30, 2026 09:17
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>
@jmborr

This comment was marked as resolved.

@coderabbitai

This comment was marked as resolved.

@codecov-commenter

This comment was marked as resolved.

@read-the-docs-community

This comment was marked as resolved.

@jmborr jmborr self-assigned this Sep 30, 2026
@coderabbitai

This comment was marked as resolved.

This comment was marked as resolved.

@jmborr
jmborr merged commit c07099b into next Sep 30, 2026
6 checks passed
@jmborr
jmborr deleted the RoleCastTable branch September 30, 2026 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants