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

Disable Scaling for Point Params #39

Conversation

jescalada
Copy link
Collaborator

PR for G-Research/fasttrackml#840.

Internally, this PR tries to centralize the scale state of the params, so that both the ParamsScalePopover and the HighPlot chart can use it. The main issue was that the scale states in selectedParams are originally undefined, whereas the HighPlot needs to be aware of the new states in order to render the axes for each param. I made a clear distinction between the two and made sure that the selectedParams are appropriately updated from the beginning.

I also solved some other styling issues by abridging long param names and allowing the tooltip to show the full name.

Changelog

  • Fixed issue with Point scale parameters (like strings) allowing Linear/Log button options to be changed
  • Fixed issue with long param names messing up the button styles
  • Added support for tooltip overriding for ToggleButton to see full param name on ParamScalePopover when it is too long

suprjinx
suprjinx previously approved these changes Feb 1, 2024
suprjinx
suprjinx previously approved these changes Feb 2, 2024
@jescalada jescalada merged commit 497ef3a into G-Research:release/v3.17.5 Feb 3, 2024
3 checks passed
vinayan3 pushed a commit to vinayan3/fasttrackml-ui-aim that referenced this pull request Aug 28, 2024
* Add ParamsScalePopover interfaces

* Add preliminary ParamsScalePopover component

* Add onParamsScaleTypeChange logic

* Add ParamsScalePopover to Params Controls

* Improve ParamsScalePopover logic

* Load selected params into component

* Store params scale type state

* Unify props into single variable

* Fix onParamsScaleTypeChange logic to handle selectedParams state

* Add scale support for high plot charts

* Add analytics

* Remove todos

* Fix popover styling bug

* Disable controls for Point params

* Fix chart scale state not changing

* Add tooltip overriding for ToggleButton

* Fix ParamsScalePopover title/button styling issue

* Add short comment for scale state functions
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