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

Fix rendering of chat info button #252

Merged
merged 2 commits into from
Dec 18, 2023

Conversation

nenb
Copy link
Contributor

@nenb nenb commented Dec 17, 2023

Addresses #229.

Currently a new chat info button is created whenever the UI is updated. This creates a problem as when the UI is re-rendered it is still referencing the original button (which has not actually been updated). To fix this issue a button should only be created once and then updated in place prior to each re-render.

ragna/deploy/_ui/central_view.py Outdated Show resolved Hide resolved
ragna/deploy/_ui/central_view.py Outdated Show resolved Hide resolved
Copy link
Member

@pmeier pmeier left a comment

Choose a reason for hiding this comment

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

Thanks @nenb! Can confirm that this fixes the issue. LGTM after my comments have been addressed!

Currently a new chat info button is created whenever the UI is updated. This
creates a problem as when the UI is re-rendered it is still referencing the
original button (which has not actually been updated). To fix this issue a
button should only be created once and then updated in place prior to each
re-render.
@nenb nenb force-pushed the chat-info-button-correct-render branch from 9e91b4c to 948e27c Compare December 18, 2023 17:19
@nenb
Copy link
Contributor Author

nenb commented Dec 18, 2023

@pmeier I've added your suggestions and I think this should be ready for merge now.

Copy link
Member

@pmeier pmeier left a comment

Choose a reason for hiding this comment

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

Thanks @nenb! I took the liberty to merge style sheet and callback into the constructor.

@pmeier pmeier merged commit a437e7e into Quansight:main Dec 18, 2023
10 checks passed
pmeier added a commit that referenced this pull request Dec 20, 2023
Co-authored-by: Philip Meier <github.pmeier@posteo.de>
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.

None yet

2 participants