Commit Graph

277 Commits

Author SHA1 Message Date
Pim Hutting
22da2ca664 feat: added functionality of saving and loadiing
for supported browsers, using the File System Access API.
otherwise, fallback to download the file and then you can load from download

ref: N25B-189
2025-11-12 11:17:15 +01:00
Björn Otgaar
be4fb0e7cd Merge remote-tracking branch 'origin/dev' into feat/show-connected-robots 2025-11-12 11:05:59 +01:00
Pim Hutting
bb7d24b7be chore: merge current dev into this branche
ref: N25B-189
2025-11-12 09:36:22 +01:00
Pim Hutting
3cbf983b41 fix: save and load are now buttons
Really small change so me and Arthur can work on this toegether at the same time

feat: N25B-189
2025-11-11 16:32:37 +01:00
Tuurminator69
45e133e255 feat: added temporary dummy button menu
ref: N25B-189
2025-11-11 16:05:25 +01:00
Gerla, J. (Justin)
b7eb0cb5ec Merge branch 'feat/add-naming-component-to-editor-nodes' into 'dev'
feat: added basic functionality for editable name bar

See merge request ics/sp/2025/n25b/pepperplus-ui!17
2025-11-11 13:50:45 +00:00
Gerla, J. (Justin)
d4d1aecb8c feat: added basic functionality for editable name bar 2025-11-11 13:50:45 +00:00
Björn Otgaar
87cf723c95 chore: fixed merge request suggestion for adding depency array 2025-11-11 11:42:28 +01:00
Björn Otgaar
df4346150e chore: remove old code pt 2 2025-11-11 11:11:46 +01:00
Björn Otgaar
8733bb3c04 chore: remove old remnants from project 2025-11-11 10:25:27 +01:00
Björn Otgaar
1b8095376b fix: fixed npx eslint (also accounting for justins part)
ref: N25B-142
2025-11-05 17:21:36 +01:00
Björn Otgaar
571908cd70 Merge remote-tracking branch 'origin/dev' into feat/show-connected-robots 2025-11-05 16:22:46 +01:00
Gerla, J. (Justin)
04818f48d4 Merge branch 'feat/behavior-program-reduction-algorithm' into 'dev'
feat: added a behavior program reduction algorithm

See merge request ics/sp/2025/n25b/pepperplus-ui!14
2025-11-05 15:21:59 +00:00
Gerla, J. (Justin)
c4845c6738 feat: added a behavior program reduction algorithm 2025-11-05 15:21:59 +00:00
Björn Otgaar
333bd6e6fd chore: single typing change 2025-11-05 16:11:36 +01:00
Björn Otgaar
5e707224cf feat: Show connected robots finished with unit test 94% coverage
ref: N25B-142
2025-10-30 15:47:09 +01:00
Björn Otgaar
6a88aa3d75 merge branch dev into show-connected-robots pt2 2025-10-30 14:57:50 +01:00
Björn Otgaar
32938edca8 Merge remote-tracking branch 'origin/dev' into feat/show-connected-robots 2025-10-30 14:57:18 +01:00
Björn Otgaar
4181454a73 feat: show robots page easier - quick connected sign. Quick reload - no need for manual reloads or anything.
ref: N25B-142
2025-10-30 13:05:56 +01:00
Twirre
52b839ae51 Merge branch 'feat/visual-programming-interface' into 'dev'
feat: added ReactFlow-based node graph

See merge request ics/sp/2025/n25b/pepperplus-ui!11
2025-10-28 11:59:01 +00:00
JGerla
7b12ae1f5e test: added test for addNode error
added test for addNode error thrown on unexpected node type

ref: N25B-114
2025-10-25 21:09:25 +02:00
JGerla
416025bf3f test: added test for nodeId generation
added test for addNode id generation

ref: N25B-114
2025-10-25 20:59:41 +02:00
JGerla
9bfc39afa1 test: added test
added test for addNode

ref: N25B-114
2025-10-25 20:53:09 +02:00
JGerla
e1d6b08a1c refactor: removed start and end nodes from the addNode functionality as they are not supported for manual adding
removed unnecessary code.

BREAKING: end and start nodes are no longer supported by the dnd addNode functionality.

ref: N25B-114
2025-10-25 18:58:41 +02:00
JGerla
a0324479e6 refactor: removed start and end nodes from the addNode functionality as they are not supported for manual adding
removed unnecessary code.

BREAKING: end and start nodes are no longer supported by the dnd addNode functionality.

ref: N25B-114
2025-10-25 18:41:57 +02:00
JGerla
b7cd925c2c refactor: moved addNode function outside the handleNode definition
Made sure to minimize responsibilities per function, by taking the addNode logic and moving it into its own function.

ref: N25B-114
2025-10-25 18:29:53 +02:00
JGerla
e1d131e642 feat: updated the phase node creation to better assign ids to new phase and norm nodes.
ref: N25B-114
2025-10-25 18:12:57 +02:00
JGerla
8038674167 test: added tests for deleteNode function
ref: N25B-114
2025-10-25 17:13:42 +02:00
JGerla
8c698d1f8e refactor: moved delete logic out of the toolbar declaration and into the FlowStore.
BREAKING: changed type of FlowState

ref: N25B-114
2025-10-25 16:58:23 +02:00
JGerla
c8484d28e5 test: added tests for onReconnectEnd
ref: N25B-114
2025-10-25 16:03:57 +02:00
JGerla
48dabb86e0 test: updated the onReconnectStart test to reflect updated setupFlowTest.ts
ref: N25B-114
2025-10-25 15:37:24 +02:00
JGerla
1f2b57fbcd chore: updated setupFlowTests.ts to properly handle resetting of the flowState for each test
ref: N25B-114
2025-10-25 15:34:49 +02:00
JGerla
2e2bd587d0 test: Added test for onReconnectStart
ref: N25B-114
2025-10-25 15:27:50 +02:00
JGerla
42357217e5 test: Added test for onReconnect
ref: N25B-114
2025-10-25 15:17:14 +02:00
JGerla
023e1d2b8b test: Added tests for setNodes and setEdges.
ref: N25B-114
2025-10-25 14:59:34 +02:00
JGerla
ea79de5ee5 style: restructured and renamed VisProg.test.tsx to VisProgStores.test.tsx
renamed as the functionality being tested is contained within the VisProgStores.tsx file and thus the filename for the tests should reflect that relation, so order is preserved in the project.
also added a second describe layer to group the tests for all FlowStore functions together for organisational purposes.

ref: N25B-114
2025-10-25 13:57:37 +02:00
JGerla
b64d4fbd01 chore: added test coverage collection
updated the jest configuration to generate a coverage report on the entire project when tests are run. this coverage report has been added to the the gitignore file as it is not relevant to store it in the online repository.

ref: N25B-114
2025-10-25 13:54:18 +02:00
JGerla
8513be5a56 test: added test for onConnect event
ref: N25B-114
2025-10-22 16:30:24 +02:00
JGerla
3bd1aa99e3 chore: added setupFlowTests.ts for ReactFlow specific testing
added Setup config for mocking reactflow based on the provided information in ReactFlow documentation

ref: N25B-114
2025-10-22 15:43:47 +02:00
JGerla
6a655f62f8 style: moved all logic from VisProgUI.tsx to VisProg.tsx and the css from VisProgUI.module.css to VisProg.module.css.
made code easier to navigate, by removing an unnecessary set of files through combining logic into a mostly empty file that is suitable for hosting said logic.

BREAKING: removed VisProgUI.module.css and removed VisProgUI.tsx, logic is now in VisProg.module.css and VisProg.tsx respectively

ref: N25B-114
2025-10-22 15:12:29 +02:00
JGerla
34dd48ecb6 fix: updated jest.config.js to allow for folders in the test directory
ref: N25B-212
2025-10-22 12:39:35 +02:00
JGerla
b365a8754e style: moved inline styles to VisProgUI.module.css and used some existing classes to replace simple css
ref: N25B-114
2025-10-22 12:31:04 +02:00
JGerla
e880e00b6d style: changed VisProgUI.css to VisProgUI.module.css and updated relevant references
ref: N25B-114
2025-10-22 12:12:16 +02:00
Björn Otgaar
ea17b95a53 Merge remote-tracking branch 'origin/dev' into feat/show-connected-robots 2025-10-22 12:00:00 +02:00
JGerla
1f56eff9a8 Merge remote-tracking branch 'origin/feat/visual-programming-interface' into feat/visual-programming-interface 2025-10-22 11:53:50 +02:00
JGerla
d3c327c100 fixup! build: moved dependencies for merge with dev 2025-10-22 11:53:30 +02:00
JGerla
5a6bcb9298 build: moved dependencies for merge with dev
ref: N25B-114
2025-10-22 11:51:12 +02:00
JGerla
af7eb5ee73 build: added moved depencies for merge with dev
ref: N25B-114
2025-10-22 11:50:29 +02:00
JGerla
f8c152ecfb Merge remote-tracking branch 'origin/dev' into feat/visual-programming-interface
# Conflicts:
#	package-lock.json
2025-10-22 11:44:10 +02:00
Twirre
6c5ccbdd07 Merge branch 'chore/set-up-testing' into 'dev'
chore: set up jest for testing the UI

See merge request ics/sp/2025/n25b/pepperplus-ui!13
2025-10-22 07:37:54 +00:00