-
Notifications
You must be signed in to change notification settings - Fork 47
Fzchriha/labgraph UI #71
Fzchriha/labgraph UI #71
Conversation
|
@bennaaym I added the test for the existence of a .env.local file Please let me know if you have any other suggestions? |
|
@fzchriha, maybe the message could be updated to |
|
@jfResearchEng Hi Jimmy here is my final PR, I have made all the requested changes as well as added additional UI features & tests. Can you please review my code? |
navn-r
left a comment
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.
extensions/prototypes/labgraph_monitor/src/components/SettingPanel/EdgeSettings.tsx
Show resolved
Hide resolved
extensions/prototypes/labgraph_monitor/src/components/SettingPanel/EdgeSettings.tsx
Outdated
Show resolved
Hide resolved
extensions/prototypes/labgraph_monitor/src/redux/reducers/graph/mock/interfaces/IMock.ts
Outdated
Show resolved
Hide resolved
| state.mockGraph = action.payload; | ||
| }, | ||
|
|
||
| setMockRealtimeData: (state, action: PayloadAction<any>) => { |
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.
same here with PayloadAction<T>
extensions/prototypes/labgraph_monitor/src/contexts/WSContext/WSContext.tsx
Outdated
Show resolved
Hide resolved
| const handleMouseUp = () => { | ||
| document.removeEventListener('mouseup', handleMouseUp, true); |
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'm a bit confused on what's going on here. The function is handleMouseUp, and its passing itself in the event listener?
The onMouseDown and related event callbacks were made in order to not use the native document object. In React's event system, the listener is onMouseDown itself, iirc it uses the native mousedown event internally, so you don't needa use both.
extensions/prototypes/labgraph_monitor/src/components/SettingPanel/EdgeSettings.tsx
Outdated
Show resolved
Hide resolved
|
Just to confirm with you, whether this PR can be used for final review and the rest of your LabGraph UI drafts can be ignored for now? |
|
Yes I confirm, the other PRs are drafts |
|
Has this PR been rebased and included the latest changes made in PR #64 ? |
|
@jfResearchEng Yes I tested my changes with Damir's latest changed |
As this is a later-launched PR (71) than PR #64, can you please rebase this PR to include the latest changes in PR #64 , for example, extensions/yaml_support/labgraph_monitor/examples/labgraph_monitor_example.py has been added in #64 . The documentation would also need to be updated accordingly. |
jfResearchEng
left a comment
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.
Please rebase this PR with latest updates from PR64 so that an end-to-end test can be conducted by the reviewer(s).
|
@jfResearchEng I updated the README file with the latest changes from PR64 |
|
|
||
| ``` | ||
| yarn start | ||
| labgraph\extensions\prototypes\labgraph_monitor> yarn start |
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.
An empty UI has launched after running this line.
Reference: https://pasteboard.co/K6noFCNDD7A3.png
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.
jfResearchEng
left a comment
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.
Merging this PR for now and for the other improvements, please help create a new PR.




Description
Create UI for real-time messaging and set up the logic behind real-time data rendering.
Fixes #45
Demo
Type of change
Please delete options that are not relevant.
Checklist: