Skip to content

[OPIK-4481] [FE] Update Optimization Studio table default columns#5279

Draft
YarivHashaiComet wants to merge 1 commit intomainfrom
yariv-h/OPIK-4481-update-optimization-studio-default-columns
Draft

[OPIK-4481] [FE] Update Optimization Studio table default columns#5279
YarivHashaiComet wants to merge 1 commit intomainfrom
yariv-h/OPIK-4481-update-optimization-studio-default-columns

Conversation

@YarivHashaiComet
Copy link
Collaborator

Details

Update default column order and visibility for the Optimization Studio table. Reordered DEFAULT_COLUMNS to: Status, Trial count, Best score, Created, ID, Created by, Optimizer. Updated DEFAULT_SELECTED_COLUMNS to show: Status, Trial count, Best score, Created (removed Optimizer).

Change checklist

  • User facing
  • Documentation update

Issues

  • OPIK-4481

Testing

  • Verify new users see columns in order: Status, Trial count, Best score, Created
  • Verify existing users retain their saved column preferences

🤖 Generated with Claude Code

Reorder DEFAULT_COLUMNS to match ticket spec: Status, Trial count, Best score, Created.
Remove optimizer from DEFAULT_SELECTED_COLUMNS.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Contributor

📋 PR Linter Failed

Missing Section. The description is missing the ## Documentation section.

Comment on lines 163 to +167
export const DEFAULT_SELECTED_COLUMNS: string[] = [
"created_at",
"status",
"num_trials",
"optimizer",
"objective_name",
"status",
"created_at",
Copy link
Contributor

Choose a reason for hiding this comment

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

DEFAULT_SELECTED_COLUMNS was rewritten to include status/created and new ordering, but the page still reads optimizations-selected-columns from localStorage (lines ~250-254), so anyone who already has that key saved will keep their previous column set/order and never see the new defaults; can we migrate/reset stored selections or version the key so the updated defaults actually take effect?

Finding type: Logical Bugs


  • Apply fix with Baz
Other fix methods

Prompt for AI Agents:

In apps/opik-frontend/src/components/pages/OptimizationsPage/OptimizationsPage.tsx
around lines 163-167 (DEFAULT_SELECTED_COLUMNS) and the localStorage read/write around
lines ~250-254, address that existing users keep the old saved column set. Implement a
migration or versioning strategy: either rename the storage key (e.g. append a version
suffix like optimizations-selected-columns-v2) or add a small migration function that
checks a stored schema/version value and, if outdated, replaces or merges the saved
columns with DEFAULT_SELECTED_COLUMNS and writes the updated value and new version back
to localStorage. Ensure the code falls back to DEFAULT_SELECTED_COLUMNS when the stored
value is invalid and add a comment explaining the version bump so future changes can
follow the same pattern.

Fix in Cursor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant