Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OPIK-239] [UX improvements] Add charts of experiment table #601

Merged
merged 2 commits into from
Nov 11, 2024

Conversation

andriidudar
Copy link
Contributor

@andriidudar andriidudar commented Nov 11, 2024

Details

OPIK-239 [UX improvements] Add charts of experiment table
OPIK-223 [UX improvements] Add grouping by dataset in experiment table

image
image
image

Issues

Resolves #

Testing

Documentation

@andriidudar andriidudar added the enhancement New feature or request label Nov 11, 2024
@andriidudar andriidudar requested a review from a team as a code owner November 11, 2024 15:18
[OPIK-223] [UX improvements] Add grouping by dataset in experiment table
@andriidudar andriidudar force-pushed the andriidudar/OPIK-223-experiments-dashboard branch from 90ae0e2 to 0487c5d Compare November 11, 2024 15:21
Copy link
Collaborator

@ferc ferc left a comment

Choose a reason for hiding this comment

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

Some improvements for next PR:

  1. I guess we could avoid this kind of empty charts (dataset with no feedback scores)
    Screenshot 2024-11-11 at 7 41 31 PM

  2. The feedback scores with 0 as value are not displayed in the charts

  3. Also in another topic, we should start thinking about performance (virtualize the table), the resize of the columns is slow in big tables

type="natural"
key={line}
isAnimationActive={false}
dataKey={(x) => x.scores[line] || undefined}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why we don't display the 0 data points? Not sure what we're trying to achieve with this || undefined here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was some testing code that I forgot to delete, thanks for poining me.

Comment on lines +202 to +209
if (isUndefined(experimentsData)) {
experimentsData = experimentsCache.current[dataset.id] ?? {
content: [],
total: 0,
};
} else {
experimentsCache.current[dataset.id] = experimentsData;
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice cache layer :)

@ferc ferc merged commit 66e3271 into main Nov 11, 2024
5 checks passed
@ferc ferc deleted the andriidudar/OPIK-223-experiments-dashboard branch November 11, 2024 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants