Skip to content

Update ExperimentConditionsTableComponent #2678

@zackcl

Description

@zackcl

Description

Update the conditions table in the experiment details page to reflect the new design requirements. The table currently displays 4 columns (Condition, Payload, Weight (%), Actions) but needs to be updated to show (Condition, Weight (%), Description, Actions).

Changes Required

  • Remove the "Payload" column and related logic (getPayloadDisplayType(), getUniversalPayload() methods)
  • Add a "Description" column that displays the condition.description field
  • Update the displayedColumns array to reflect the new column order: ['condition', 'weight', 'description', 'actions']
  • Remove the @Input() conditionPayloads property and related payload logic since payloads will be handled separately
  • Update column CSS classes and translation keys accordingly
  • Remove imports related to payload display types (EXPERIMENT_PAYLOAD_DISPLAY_TYPE)

Files to Update

  • experiment-conditions-table.component.ts
  • experiment-conditions-table.component.html
  • experiment-conditions-table.component.scss (if needed for styling)

Acceptance Criteria

  • The conditions table displays 4 columns in the correct order: Condition, Weight (%), Description, Actions
  • The Description column shows the condition's description text
  • All payload-related logic and UI elements are removed from the conditions table
  • The table maintains its existing functionality for editing weights and row actions

References

  • Screenshots:
Image

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done for Release

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions