Skip to content

total reward counts, supressed field that are unused instead of grayi… - #3416

Open
danoswaltCL wants to merge 1 commit into
devfrom
wip/rewards-table-touchups
Open

danoswaltCL wants to merge 1 commit into
devfrom
wip/rewards-table-touchups

Conversation

@danoswaltCL

Copy link
Copy Markdown
Collaborator

#3415

  • Adds a count of total unique rewards to reward table
  • Adds a count for each condition also in the table
  • Hides fields instead of graying them out
  • Makes sure est weights don't round up or down to absolute 0 or 100, which isn't really true. it should say >1% or >99%
Screenshot 2026-11-10 at 11 55 07 AM Screenshot 2026-11-10 at 11 52 30 AM Screenshot 2026-11-10 at 11 50 04 AM Screenshot 2026-11-10 at 11 47 32 AM

@danoswaltCL
danoswaltCL requested review from bcb37 and a balanced review from Copilot November 10, 2026 17:14
@danoswaltCL
danoswaltCL requested a review from zackcl November 10, 2026 17:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The Algorithm in Effect row still appears when warmupThreshold is 1 because the guard checks > 0 rather than the required > 1.

1 open issue
What changed in this PR

Updates the Thompson Sampling rewards card for issue #3415, making received reward counts visible and refining status and estimated-weight displays.

Changes:

  • Adds per-condition received counts, including pending rewards, and displays the experiment-wide total.
  • Hides inactive batching and warm-up rows instead of graying them out.
  • Displays extreme estimated weights as <1% or >99% for multi-condition experiments.
File Description
packages/​types/​src/​Experiment/​interfaces.ts Adds per-condition totalRewardCount to the shared contract.
packages/​frontend/​projects/​upgrade/​src/​assets/​i18n/​en.json Adds reward-count labels and tooltips.
packages/​frontend/​projects/​upgrade/​src/​app/​features/​dashboard/​experiments/​pages/​experiment-details-page/​experiment-details-page-content/​experiment-reward-feedback-section-card/​ts-configurable-reward-count-table/​ts-configurable-reward-count-table.component.ts Registers received-count columns and formats estimated weights.
packages/​frontend/​projects/​upgrade/​src/​app/​features/​dashboard/​experiments/​pages/​experiment-details-page/​experiment-details-page-content/​experiment-reward-feedback-section-card/​ts-configurable-reward-count-table/​ts-configurable-reward-count-table.component.scss Adjusts column widths for received counts.
packages/​frontend/​projects/​upgrade/​src/​app/​features/​dashboard/​experiments/​pages/​experiment-details-page/​experiment-details-page-content/​experiment-reward-feedback-section-card/​ts-configurable-reward-count-table/​ts-configurable-reward-count-table.component.html Renders received counts and formatted weights.
packages/​frontend/​projects/​upgrade/​src/​app/​features/​dashboard/​experiments/​pages/​experiment-details-page/​experiment-details-page-content/​experiment-reward-feedback-section-card/​experiment-reward-feedback-section-card.component.scss Removes inactive-row styling.
packages/​frontend/​projects/​upgrade/​src/​app/​features/​dashboard/​experiments/​pages/​experiment-details-page/​experiment-details-page-content/​experiment-reward-feedback-section-card/​experiment-reward-feedback-section-card.component.html Conditionally hides status rows and displays total rewards.
packages/​frontend/​projects/​upgrade/​src/​app/​core/​experiments/​store/​experiments.selectors.ts Initializes fallback received counts to zero.
packages/​frontend/​projects/​upgrade/​src/​app/​core/​experiments/​store/​experiments.selector.spec.ts Updates selector expectations for the count field.
packages/​frontend/​projects/​upgrade/​src/​app/​core/​experiments/​store/​experiments.reducer.spec.ts Updates reward-summary fixtures.
packages/​frontend/​projects/​upgrade/​src/​app/​core/​experiments/​store/​experiments.effects.spec.ts Updates reward-fetch fixtures.
packages/​backend/​test/​unit/​services/​ThompsonSamplingExperimentCrudService.test.ts Tests per-condition counts including pending rewards.
packages/​backend/​src/​api/​services/​ThompsonSamplingExperimentCrudService.ts Returns applied plus pending reward counts per condition.

Review effort: Balanced

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.

2 participants