feat: show connected robots in ui when getting cb pings #15

Merged
9828273 merged 20 commits from feat/show-connected-robots into dev 2025-11-14 13:09:22 +00:00
9828273 commented 2025-11-05 16:25:26 +00:00 (Migrated from git.science.uu.nl)

Using a branch of CB which sends pings to the ping_stream, we want to update and show these on the UI.
For now, this is a page.

In order to complete this merge, follow steps and mark the checklist:

  1. Switch to the feat/cb2ui-robot-connections on CB.
  2. Switch to this branch on UI.
  3. Make sure that all the agents that are based on the feat/cb2ui-robot-connections (based on dev) are correctly setup in your localhost certificate. (using sudo prodactl adduser {name@localhost} with password {name}.
  4. Make sure the environment is up to date using uv sync and npm i.
  5. Follow the checklist and see if everything is working:
  • This branch is up to date with dev
  • npx jest shows that all test suites pass (with 93% line coverage in ConnectedRobots.tsx)
  • First starting the CB, then starting the RI to connect, and finally launching the UI, the Connected Robots page shows whether the robot is currently connected (should be true)
  • AFTER, disconnecting the RI (by Cntr+C or other ways) should result in the page showing the robot is disconnected.
  • Then, when reconnecting (using same ports) on RI, it should switch back to connected again.
  • Also make sure that when the CB is not correctly setup yet, the page shows its currently checking...
  • npx eslint doesn't show any formatting/ style errors or warnings.

Additional comments:
We still have to work out the CB-sided merge for connected robots. This means that the page will just show checking... on dev for now.
In case there are different cases I need to clarify or work out, let me know.

Using a branch of CB which sends pings to the ping_stream, we want to update and show these on the UI. For now, this is a page. In order to complete this merge, follow steps and mark the checklist: 1. Switch to the feat/cb2ui-robot-connections on CB. 2. Switch to this branch on UI. 3. Make sure that all the agents that are based on the feat/cb2ui-robot-connections (based on dev) are correctly setup in your localhost certificate. (using `sudo prodactl adduser {name@localhost}` with password {name}. 4. Make sure the environment is up to date using `uv sync` and `npm i`. 5. Follow the checklist and see if everything is working: - [x] This branch is up to date with dev - [x] `npx jest` shows that all test suites pass (with 93% line coverage in ConnectedRobots.tsx) - [x] First starting the CB, then starting the RI to connect, and finally launching the UI, the `Connected Robots` page shows whether the robot is currently connected (should be true) - [x] AFTER, disconnecting the RI (by Cntr+C or other ways) should result in the page showing the robot is disconnected. - [x] Then, when reconnecting (using same ports) on RI, it should switch back to connected again. - [x] Also make sure that when the CB is not correctly setup yet, the page shows its currently `checking...` - [x] `npx eslint` doesn't show any formatting/ style errors or warnings. Additional comments: We still have to work out the CB-sided merge for connected robots. This means that the page will just show `checking...` on dev for now. In case there are different cases I need to clarify or work out, let me know.
9828273 commented 2025-11-05 16:25:50 +00:00 (Migrated from git.science.uu.nl)

changed the description

changed the description
9828273 commented 2025-11-05 16:26:36 +00:00 (Migrated from git.science.uu.nl)

changed the description

changed the description
9828273 commented 2025-11-06 14:03:47 +00:00 (Migrated from git.science.uu.nl)

assigned to @9828273

assigned to @9828273
9828273 commented 2025-11-06 14:29:37 +00:00 (Migrated from git.science.uu.nl)

unassigned @9828273

unassigned @9828273
0950726 commented 2025-11-09 21:16:13 +00:00 (Migrated from git.science.uu.nl)

Looks like this has remnants of an older version of the project. For example, src/visualProgrammingUI should no longer exist because its contents have been moved under src/pages.

Looks like this has remnants of an older version of the project. For example, `src/visualProgrammingUI` should no longer exist because its contents have been moved under `src/pages`.
9828273 commented 2025-11-11 09:25:31 +00:00 (Migrated from git.science.uu.nl)

added 1 commit

  • 8733bb3c - chore: remove old remnants from project

Compare with previous version

added 1 commit <ul><li>8733bb3c - chore: remove old remnants from project</li></ul> [Compare with previous version](/ics/sp/2025/n25b/pepperplus-ui/-/merge_requests/15/diffs?diff_id=133491&start_sha=1b8095376b31027fd7bc39199c9d8c96d4e9ba69)
9828273 commented 2025-11-11 10:11:50 +00:00 (Migrated from git.science.uu.nl)

added 1 commit

Compare with previous version

added 1 commit <ul><li>df434615 - chore: remove old code pt 2</li></ul> [Compare with previous version](/ics/sp/2025/n25b/pepperplus-ui/-/merge_requests/15/diffs?diff_id=133495&start_sha=8733bb3c040706f301ba08a9c042257e254577cb)
0950726 commented 2025-11-11 10:14:32 +00:00 (Migrated from git.science.uu.nl)

Without a dependency array, this runs every render, which is every time it gets a new message.

  }, []);
Without a dependency array, this runs every render, which is every time it gets a new message. ```suggestion:-0+0 }, []); ```
0950726 commented 2025-11-11 10:23:52 +00:00 (Migrated from git.science.uu.nl)

marked the checklist item This branch is up to date with dev as completed

marked the checklist item **This branch is up to date with dev** as completed
0950726 commented 2025-11-11 10:24:10 +00:00 (Migrated from git.science.uu.nl)

marked the checklist item npx jest shows that all test suites pass (with 93% line coverage in ConnectedRobots.tsx) as completed

marked the checklist item **`npx jest` shows that all test suites pass (with 93% line coverage in ConnectedRobots.tsx)** as completed
0950726 commented 2025-11-11 10:24:16 +00:00 (Migrated from git.science.uu.nl)

marked the checklist item First starting the CB, then starting the RI to connect, and finally launching the UI, the Connected Robots page shows whether the robot is currently connected (should be true) as completed

marked the checklist item **First starting the CB, then starting the RI to connect, and finally launching the UI, the `Connected Robots` page shows whether the robot is currently connected (should be true)** as completed
0950726 commented 2025-11-11 10:32:12 +00:00 (Migrated from git.science.uu.nl)

marked the checklist item AFTER, disconnecting the RI (by Cntr+C or other ways) should result in the page showing the robot is disconnected. as completed

marked the checklist item **AFTER, disconnecting the RI (by Cntr+C or other ways) should result in the page showing the robot is disconnected.** as completed
0950726 commented 2025-11-11 10:32:29 +00:00 (Migrated from git.science.uu.nl)

marked the checklist item Then, when reconnecting (using same ports) on RI, it should switch back to connected again. as completed

marked the checklist item **Then, when reconnecting (using same ports) on RI, it should switch back to connected again.** as completed
0950726 commented 2025-11-11 10:32:33 +00:00 (Migrated from git.science.uu.nl)

marked the checklist item Also make sure that when the CB is not correctly setup yet, the page shows its currently checking... as completed

marked the checklist item **Also make sure that when the CB is not correctly setup yet, the page shows its currently `checking...`** as completed
0950726 commented 2025-11-11 10:33:17 +00:00 (Migrated from git.science.uu.nl)

marked the checklist item npx eslint doesn't show any formatting/ style errors or warnings. as completed

marked the checklist item **`npx eslint` doesn't show any formatting/ style errors or warnings.** as completed
0950726 commented 2025-11-11 10:38:34 +00:00 (Migrated from git.science.uu.nl)

requested review from @0950726

requested review from @0950726
9828273 commented 2025-11-11 10:42:32 +00:00 (Migrated from git.science.uu.nl)

changed this line in version 4 of the diff

changed this line in [version 4 of the diff](/ics/sp/2025/n25b/pepperplus-ui/-/merge_requests/15/diffs?diff_id=133502&start_sha=df4346150e2bf6a81d9629cdbc48884572bae3a5#bbaea557d50ad9b4f7746280cf7d5b9118efcceb_32_30)
9828273 commented 2025-11-11 10:42:32 +00:00 (Migrated from git.science.uu.nl)

added 1 commit

  • 87cf723c - chore: fixed merge request suggestion for adding depency array

Compare with previous version

added 1 commit <ul><li>87cf723c - chore: fixed merge request suggestion for adding depency array</li></ul> [Compare with previous version](/ics/sp/2025/n25b/pepperplus-ui/-/merge_requests/15/diffs?diff_id=133502&start_sha=df4346150e2bf6a81d9629cdbc48884572bae3a5)
9828273 commented 2025-11-12 10:06:04 +00:00 (Migrated from git.science.uu.nl)

added 3 commits

  • 87cf723c...b7eb0cb5 - 2 commits from branch dev
  • be4fb0e7 - Merge remote-tracking branch 'origin/dev' into feat/show-connected-robots

Compare with previous version

added 3 commits <ul><li>87cf723c...b7eb0cb5 - 2 commits from branch <code>dev</code></li><li>be4fb0e7 - Merge remote-tracking branch &#39;origin/dev&#39; into feat/show-connected-robots</li></ul> [Compare with previous version](/ics/sp/2025/n25b/pepperplus-ui/-/merge_requests/15/diffs?diff_id=133536&start_sha=87cf723c95d2f0e235a53ce6d2d42273f80f8dea)
2584433 commented 2025-11-14 12:17:02 +00:00 (Migrated from git.science.uu.nl)

added 7 commits

  • be4fb0e7...fe8e04d3 - 6 commits from branch dev
  • 476c5384 - build: fixed small merge conflict

Compare with previous version

added 7 commits <ul><li>be4fb0e7...fe8e04d3 - 6 commits from branch <code>dev</code></li><li>476c5384 - build: fixed small merge conflict</li></ul> [Compare with previous version](/ics/sp/2025/n25b/pepperplus-ui/-/merge_requests/15/diffs?diff_id=133616&start_sha=be4fb0e7cdfab76c461014c6c4a9cf5c4fd80c23)
2584433 commented 2025-11-14 12:17:33 +00:00 (Migrated from git.science.uu.nl)

marked the checklist item npx eslint doesn't show any formatting/ style errors or warnings. as incomplete

marked the checklist item **`npx eslint` doesn't show any formatting/ style errors or warnings.** as incomplete
2584433 commented 2025-11-14 12:17:34 +00:00 (Migrated from git.science.uu.nl)

marked the checklist item Also make sure that when the CB is not correctly setup yet, the page shows its currently checking... as incomplete

marked the checklist item **Also make sure that when the CB is not correctly setup yet, the page shows its currently `checking...`** as incomplete
2584433 commented 2025-11-14 12:17:34 +00:00 (Migrated from git.science.uu.nl)

marked the checklist item Then, when reconnecting (using same ports) on RI, it should switch back to connected again. as incomplete

marked the checklist item **Then, when reconnecting (using same ports) on RI, it should switch back to connected again.** as incomplete
2584433 commented 2025-11-14 12:17:35 +00:00 (Migrated from git.science.uu.nl)

marked the checklist item AFTER, disconnecting the RI (by Cntr+C or other ways) should result in the page showing the robot is disconnected. as incomplete

marked the checklist item **AFTER, disconnecting the RI (by Cntr+C or other ways) should result in the page showing the robot is disconnected.** as incomplete
2584433 commented 2025-11-14 12:17:36 +00:00 (Migrated from git.science.uu.nl)

marked the checklist item First starting the CB, then starting the RI to connect, and finally launching the UI, the Connected Robots page shows whether the robot is currently connected (should be true) as incomplete

marked the checklist item **First starting the CB, then starting the RI to connect, and finally launching the UI, the `Connected Robots` page shows whether the robot is currently connected (should be true)** as incomplete
2584433 commented 2025-11-14 12:17:36 +00:00 (Migrated from git.science.uu.nl)

marked the checklist item npx jest shows that all test suites pass (with 93% line coverage in ConnectedRobots.tsx) as incomplete

marked the checklist item **`npx jest` shows that all test suites pass (with 93% line coverage in ConnectedRobots.tsx)** as incomplete
2584433 commented 2025-11-14 12:21:03 +00:00 (Migrated from git.science.uu.nl)

marked the checklist item npx jest shows that all test suites pass (with 93% line coverage in ConnectedRobots.tsx) as completed

marked the checklist item **`npx jest` shows that all test suites pass (with 93% line coverage in ConnectedRobots.tsx)** as completed
2584433 commented 2025-11-14 12:23:41 +00:00 (Migrated from git.science.uu.nl)

marked the checklist item First starting the CB, then starting the RI to connect, and finally launching the UI, the Connected Robots page shows whether the robot is currently connected (should be true) as completed

marked the checklist item **First starting the CB, then starting the RI to connect, and finally launching the UI, the `Connected Robots` page shows whether the robot is currently connected (should be true)** as completed
2584433 commented 2025-11-14 12:24:03 +00:00 (Migrated from git.science.uu.nl)

marked the checklist item AFTER, disconnecting the RI (by Cntr+C or other ways) should result in the page showing the robot is disconnected. as completed

marked the checklist item **AFTER, disconnecting the RI (by Cntr+C or other ways) should result in the page showing the robot is disconnected.** as completed
2584433 commented 2025-11-14 12:24:38 +00:00 (Migrated from git.science.uu.nl)

marked the checklist item Then, when reconnecting (using same ports) on RI, it should switch back to connected again. as completed

marked the checklist item **Then, when reconnecting (using same ports) on RI, it should switch back to connected again.** as completed
2584433 commented 2025-11-14 12:25:25 +00:00 (Migrated from git.science.uu.nl)

marked the checklist item Also make sure that when the CB is not correctly setup yet, the page shows its currently checking... as completed

marked the checklist item **Also make sure that when the CB is not correctly setup yet, the page shows its currently `checking...`** as completed
2584433 commented 2025-11-14 12:27:23 +00:00 (Migrated from git.science.uu.nl)

marked the checklist item npx eslint doesn't show any formatting/ style errors or warnings. as completed

marked the checklist item **`npx eslint` doesn't show any formatting/ style errors or warnings.** as completed
2584433 commented 2025-11-14 12:30:35 +00:00 (Migrated from git.science.uu.nl)

approved this merge request

approved this merge request
8464960 commented 2025-11-14 12:48:37 +00:00 (Migrated from git.science.uu.nl)

requested review from @8464960 and removed review request for @0950726

requested review from @8464960 and removed review request for @0950726
8464960 commented 2025-11-14 12:48:41 +00:00 (Migrated from git.science.uu.nl)

requested review from @0950726 and removed review request for @8464960

requested review from @0950726 and removed review request for @8464960
8464960 commented 2025-11-14 12:48:44 +00:00 (Migrated from git.science.uu.nl)

requested review from @8464960 and removed review request for @0950726

requested review from @8464960 and removed review request for @0950726
8464960 commented 2025-11-14 12:48:53 +00:00 (Migrated from git.science.uu.nl)

requested review from @0950726 and removed review request for @8464960

requested review from @0950726 and removed review request for @8464960
8464960 commented 2025-11-14 12:49:09 +00:00 (Migrated from git.science.uu.nl)

assigned to @8464960

assigned to @8464960
8464960 commented 2025-11-14 12:49:14 +00:00 (Migrated from git.science.uu.nl)

assigned to @0950726 and unassigned @8464960

assigned to @0950726 and unassigned @8464960
8464960 commented 2025-11-14 12:49:18 +00:00 (Migrated from git.science.uu.nl)

assigned to @8464960 and unassigned @0950726

assigned to @8464960 and unassigned @0950726
8464960 commented 2025-11-14 12:49:44 +00:00 (Migrated from git.science.uu.nl)

requested review from @8464960 and removed review request for @0950726

requested review from @8464960 and removed review request for @0950726
8464960 commented 2025-11-14 12:49:50 +00:00 (Migrated from git.science.uu.nl)

requested review from @0950726 and removed review request for @8464960

requested review from @0950726 and removed review request for @8464960
8464960 commented 2025-11-14 12:51:17 +00:00 (Migrated from git.science.uu.nl)

assigned to @9828273 and unassigned @8464960

assigned to @9828273 and unassigned @8464960
k.marinus commented 2025-11-14 12:51:31 +00:00 (Migrated from git.science.uu.nl)

unassigned @9828273

unassigned @9828273
8464960 commented 2025-11-14 13:03:02 +00:00 (Migrated from git.science.uu.nl)

Write as a comment briefly what this function does

Write as a comment briefly what this function does
8464960 commented 2025-11-14 13:03:02 +00:00 (Migrated from git.science.uu.nl)

Also write here what the boolean represents, that would make the code easier to understand to someone who is not an expert

Also write here what the boolean represents, that would make the code easier to understand to someone who is not an expert
8464960 commented 2025-11-14 13:03:02 +00:00 (Migrated from git.science.uu.nl)

Great work!

I had some comments about some lack of comments, but someone will go over the entire work to check them this sprint. I think it would be more efficient to approve this now and then add comments later, so that's why I still approve.

Note: as requested by Job, as a second reviewer I only went over the code.

Great work! I had some comments about some lack of comments, but someone will go over the entire work to check them this sprint. I think it would be more efficient to approve this now and then add comments later, so that's why I still approve. Note: as requested by Job, as a second reviewer I only went over the code.
8464960 commented 2025-11-14 13:03:22 +00:00 (Migrated from git.science.uu.nl)

approved this merge request

approved this merge request
8464960 (Migrated from git.science.uu.nl) merged commit 96bd1c697c into dev 2025-11-14 13:09:23 +00:00
8464960 commented 2025-11-14 13:11:50 +00:00 (Migrated from git.science.uu.nl)

mentioned in commit 96bd1c697c

mentioned in commit 96bd1c697cd6529d018c93db68aae153695a38f3
2584433 (Migrated from git.science.uu.nl) approved these changes 2026-02-02 13:31:17 +00:00
8464960 (Migrated from git.science.uu.nl) approved these changes 2026-02-02 13:31:17 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: pepperplus/pepperplus-ui#15