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(visualizer): paused visualizer behaves weirdly when reaching max blocks #1202

Merged
merged 8 commits into from
Mar 7, 2024

Conversation

panteleymonchuk
Copy link
Collaborator

Description of change

Closes #1178

Type of change

  • Bug fix (a non-breaking change which fixes an issue)

How the change has been tested

When user pause visualizer and wait, after some time user see changes color from left to right.
This is because we don't stop stream and overwrite values by index.

Expected result:
when visualizer paused update only visible blocks

Change checklist

Add an x to the boxes that are relevant to your changes, and delete any items that are not.

  • My code follows the contribution guidelines for this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • [] I have made corresponding changes to the documentation
  • [] I have added tests that prove my fix is effective or that my feature works
  • [] New and existing unit tests pass locally with my changes

Signed-off-by: Eugene Panteleymonchuk <[email protected]>
Signed-off-by: Eugene Panteleymonchuk <[email protected]>
Signed-off-by: Eugene Panteleymonchuk <[email protected]>
# Conflicts:
#	client/src/features/visualizer-threejs/VisualizerInstance.tsx
#	client/src/features/visualizer-threejs/store/tangle.ts
#	client/src/features/visualizer-threejs/wrapper/Wrapper.tsx
Signed-off-by: Eugene Panteleymonchuk <[email protected]>
VmMad
VmMad previously requested changes Mar 1, 2024
Copy link
Member

@VmMad VmMad left a comment

Choose a reason for hiding this comment

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

@panteleymonchuk I think this issue needs more work.
You correctly fixed the blocks changing colors, but when you pause the visualizer, the blocks instances are still being updated (even thought the colors arent) so, to explain this better I'll give you some steps to replicate what i mean:

  1. Let the visualizer run until max blocks and then pause it.
  2. You will have to wait a lot, but in the meanwhile, you can click a block close to the end of the screen. You will see the block info popup. That is correct.
  3. Wait a lot more, so until it would start painting colors as pending like previously. You will see the color is not changing, but the block info dissapears. Click a block closer to the emitter and you will see the popup, but it will dissapear soon.

I think we need to try to avoid updating the block instances when the visualizer is paused, and maybe if the instance is not updated, the color won't change anyways

@begonaalvarezd begonaalvarezd merged commit cfb5f7d into dev Mar 7, 2024
4 of 6 checks passed
@begonaalvarezd begonaalvarezd deleted the feat/issues-1178 branch March 7, 2024 11:18
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.

[Task]: Paused visualizer colors the blocks in the screen when reaching max blocks
3 participants