-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feature/#117 distribute button #148
Conversation
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried it. If I refresh the page, deactivate any instead of the first two signals, turn on and then click distribute, the plot looks like in the screenshot. The signals are distributed but so as they would be as if all 10 channels were active. Maybe this is a user-mistake from me. Could you please provide more information on how to test this?
Furthermore, you screenshot indicates that signal one (red) is at the bottom. I would prefer to maintain the order of the signals as used in the sliders.
I always distribute all 10 channels. I can change the arrangement of the channels. |
If I remember correct meeting right we should have all channels off on start per default and only disturbute channels that are switched on. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The distribution should only happen once on button click now. |
I move the offset data into a store ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me the waves aren't even displayed. Tried out the #122 commit and there everything works fine?
This means I sadly can't test out the functionality, code-wise it looks like it'd work.
Additionally, two more things:
- Can we please merge master into this branch so we actually use the new layout?
- Can you add some JSDoc for the functions you added?
Apps/frontend/cypress/e2e/2-control-panel/distribute-button.cy.js
Outdated
Show resolved
Hide resolved
Signed-off-by: Marcel Schöckel <marcel.schoeckel@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. But, when the button is clicked once, it distributes also when channels are (de-)activated. This is nice on one side and could be considered as a feature but I think it also has a drawback: namely when a custom offset is chosen via the slider for channel A and then channel B is activated or deactivated, the removes the user's custom offset of A. Maybe we should just distribute on-click and not always after the button is clicked once.
If this behavior is for purpose, it is also fine for me.
@nicolaskolbenschlag can you elaborate on your comment? For me it only changes the offsets on channels that are switched on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops, just noticed the same thing as Philipp: In the indicators, the offsets should be pulled from the store like the amplitudes.
Signed-off-by: Marcel Schöckel <marcel.schoeckel@gmail.com>
Signed-off-by: Marcel Schöckel <marcel.schoeckel@gmail.com>
Signed-off-by: Marcel Schöckel <marcel.schoeckel@gmail.com>
Signed-off-by: Marcel Schöckel <marcel.schoeckel@gmail.com>
Signal seems oddly inconsistent (x-axis). |
…e-button Signed-off-by: Marcel Schöckel <marcel.schoeckel@gmail.com>
…t for distribute button Signed-off-by: Philipp Kramer <philipp.p.kramer@gmail.com>
…ate system Signed-off-by: Philipp Kramer <philipp.p.kramer@gmail.com>
@motschel123 You missed some deprecated files in the merge, should be fixed now. Also changed text to icon, added the test I mentioned in one of my previous comments and improved scalability of UI. Should be good to go now. |
One more thing, does this also happen on any of you guys' machines or is this a purely local problem on my side? |
Signed-off-by: Philipp Kramer <philipp.p.kramer@gmail.com>
…eset-button-and-text-box' into feature/#117-distribute-button Signed-off-by: Marcel Schöckel <marcel.schoeckel@gmail.com>
…eset-button-and-text-box' into feature/#117-distribute-button Part2 Signed-off-by: Marcel Schöckel <marcel.schoeckel@gmail.com>
Signed-off-by: Marcel Schöckel <marcel.schoeckel@gmail.com>
Has been implemented
Added a button for distributing signals evenly on the canvas
Image of three signals after clicking the button