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

[Bug] Fix display of marks in vm.Slider and vm.RangeSlider #613

Merged
merged 15 commits into from
Aug 2, 2024

Conversation

huong-li-nguyen
Copy link
Contributor

@huong-li-nguyen huong-li-nguyen commented Aug 1, 2024

Description

Closes: #612: Previously, our marks were converted to integers, leading to incorrect value displays. This, combined with an existing bug in Dash, caused the marks to be displayed incorrectly.

@nadijagraca - I noticed that we previously had the typing marks: Optional[Dict[float, str]], but it was changed in this PR: #230. Do you remember the reason for this change? I couldn't reproduce the original bug that the PR fixes, so I'm uncertain if reverting to the original typing will cause any issues. Could you also take a look? 🤔

Screenshot

Notice

  • I acknowledge and agree that, by checking this box and clicking "Submit Pull Request":

    • I submit this contribution under the Apache 2.0 license and represent that I am entitled to do so on behalf of myself, my employer, or relevant third parties, as applicable.
    • I certify that (a) this contribution is my original creation and / or (b) to the extent it is not my original creation, I am authorized to submit this contribution on behalf of the original creator(s) or their licensees.
    • I certify that the use of this contribution as authorized by the Apache 2.0 license does not violate the intellectual property rights of anyone else.
    • I have not referenced individuals, products or companies in any commits, directly or indirectly.
    • I have not added data or restricted code in any commits, directly or indirectly.

Copy link
Contributor

@antonymilne antonymilne left a comment

Choose a reason for hiding this comment

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

Thank you for getting to the bottom of this and fixing it! Super clear dev example also - I love the containers with title which is much better than me getting confused about which row is which 😅 🤦

Just a couple of things about the tests but otherwise looks great.

huong-li-nguyen and others added 4 commits August 2, 2024 10:14
…_slider.py


Thanks!! I like the first 👍 It prints out the types as well.

Co-authored-by: Antony Milne <49395058+antonymilne@users.noreply.github.com>
Copy link
Contributor

@nadijagraca nadijagraca left a comment

Choose a reason for hiding this comment

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

LGTM. 🙌

@huong-li-nguyen huong-li-nguyen enabled auto-merge (squash) August 2, 2024 12:48
@huong-li-nguyen huong-li-nguyen merged commit dd125de into main Aug 2, 2024
30 checks passed
@huong-li-nguyen huong-li-nguyen deleted the bug/fix-slider-type branch August 2, 2024 13:01
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.

[Bug] Marks are displayed incorrectly in Sliders
3 participants