-
Notifications
You must be signed in to change notification settings - Fork 61
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
Persist state of view after pin/unpin #782
Persist state of view after pin/unpin #782
Conversation
d67ffff
to
86003c2
Compare
@@ -26,8 +26,8 @@ export declare interface SignalManager { | |||
fireTraceServerStartedSignal(): void; | |||
fireUndoSignal(): void; | |||
fireRedoSignal(): void; | |||
firePinView(output: OutputDescriptor): void; | |||
fireUnPinView(): void; | |||
firePinView(payload: { output: OutputDescriptor, checkedSeries?: number[], collapsedNodes?: number[], collapsedMarkerNodes?: number[]}): void; |
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.
It feels like the persisted state of outputs should be opaque as it can be different for every output (e.g. there are no checkedSeries in timegraph). It doesn't feel right to have a merge of all possible state properties here.
I would perhaps keep the output and persistedState as separate parameters in the signal. I'm not sure if the persisted state can be an 'any' object or a choice of state classes defined in each specific output.
But I think signal-manager, abstract-output-component and trace-context-component should pass the persisted state as a 'black box' object.
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.
Thanks for the suggestion Patrick, I've added another commit which passes the persisted state as a 'black-box' object. I was able to specify the persisted state as an 'any' object with the help of disable es-lint statements.
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.
It needs a rebase. Heads-up that the merge of xy-output-component will be non-trivial due to the overview addition.
I tested it and it works fine. I wonder if you could persist the selectedRow
of the timegraphs?
Keep track of tree selections of the pinned/unpinned chart so that users don't have to redo them Fixes eclipse-cdt-cloud#762 Signed-off-by: hriday-panchasara <hriday.panchasara@ericsson.com>
2a67c51
to
48a9336
Compare
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.
It looks good to me. Nice improvement. Thanks.
I'm going to open a follow-up issue to track other things that could be persisted as well, and would delay this PR to implement.
Note that there is a network issue that prevents a successful build. I'll re-trigger build once it's back to normal. |
helps fix eclipse-cdt-cloud#762 Signed-off-by: hriday-panchasara <hriday.panchasara@ericsson.com>
Fixes #762
Signed-off-by: hriday-panchasara hriday.panchasara@ericsson.com