Skip to content
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

Port/icons tests change level fix #827

Merged
merged 4 commits into from
Nov 3, 2023

Conversation

aaronchongth
Copy link
Member

What's new

Self-checks

  • I have prototyped this new feature (if necessary) on Figma
  • I'm familiar with and follow this Typescript guideline
  • I added unit-tests for new components
  • I tried testing edge cases
  • I tested the behavior of the components that interact with the backend, with an e2e test

Angatupyry and others added 3 commits November 2, 2023 23:46
* Render image if robot icon exists

Signed-off-by: angatupyry <[email protected]>

* Add scale to robot resource

Signed-off-by: angatupyry <[email protected]>

* Using scale if exists in resource

Signed-off-by: angatupyry <[email protected]>

* Make waypoints transparent

Signed-off-by: angatupyry <[email protected]>

* Adjust text according to its length

Signed-off-by: angatupyry <[email protected]>

* Remove hasOwn property control

Signed-off-by: angatupyry <[email protected]>

---------

Signed-off-by: angatupyry <[email protected]>
(cherry picked from commit db60f9c)
Signed-off-by: Aaron Chong <[email protected]>
* Separate components to make it more testable

Signed-off-by: angatupyry <[email protected]>

* Create react three components tests

Signed-off-by: angatupyry <[email protected]>

* Add test for shape three rendering component

Signed-off-by: angatupyry <[email protected]>

* Create three fiber component test

Signed-off-by: angatupyry <[email protected]>

* Add test to layers controller

Signed-off-by: angatupyry <[email protected]>

* Add test id to the component

Signed-off-by: angatupyry <[email protected]>

* Install test-renderer in order to create test for three. Remove datatest id because it make app break

Signed-off-by: angatupyry <[email protected]>

* Fix spanish description

Signed-off-by: angatupyry <[email protected]>

* Change the way to import circle shape component

Signed-off-by: angatupyry <[email protected]>

* Fixing merge conflict

Signed-off-by: angatupyry <[email protected]>

---------

Signed-off-by: angatupyry <[email protected]>
(cherry picked from commit 3c19fe6)
Signed-off-by: Aaron Chong <[email protected]>
* Fix the bug that keeps the robot in the opposite position to its task

Signed-off-by: angatupyry <[email protected]>

* Delete robot name from state if we can't get the current level

Signed-off-by: angatupyry <[email protected]>

* Check if robot location is available before attempting to render (#825)

Signed-off-by: Aaron Chong <[email protected]>

---------

Signed-off-by: angatupyry <[email protected]>
Signed-off-by: Aaron Chong <[email protected]>
Co-authored-by: Aaron Chong <[email protected]>
(cherry picked from commit 6f7da8c)
Signed-off-by: Aaron Chong <[email protected]>
Copy link

codecov bot commented Nov 3, 2023

Codecov Report

Merging #827 (fe0e808) into deploy/hammer (534d0f4) will increase coverage by 0.04%.
Report is 12 commits behind head on deploy/hammer.
The diff coverage is 10.66%.

@@                Coverage Diff                @@
##           deploy/hammer     #827      +/-   ##
=================================================
+ Coverage          49.30%   49.35%   +0.04%     
=================================================
  Files                284      285       +1     
  Lines               7462     7564     +102     
  Branches            1023     1050      +27     
=================================================
+ Hits                3679     3733      +54     
- Misses              3640     3682      +42     
- Partials             143      149       +6     
Flag Coverage Δ
dashboard 15.06% <0.00%> (+0.10%) ⬆️
react-components 48.07% <21.05%> (+0.82%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
packages/api-server/api_server/authenticator.py 82.69% <ø> (+1.56%) ⬆️
packages/api-server/api_server/models/__init__.py 100.00% <ø> (ø)
packages/api-server/api_server/models/lifts.py 94.44% <ø> (ø)
...ckages/api-server/api_server/rmf_io/book_keeper.py 97.24% <ø> (-0.03%) ⬇️
packages/api-server/api_server/routes/lifts.py 72.72% <ø> (ø)
...ashboard/src/components/tasks/task-details-app.tsx 0.00% <ø> (ø)
.../dashboard/src/components/tasks/task-inspector.tsx 0.00% <ø> (ø)
...d/src/components/three-fiber/layers-controller.tsx 64.28% <ø> (+64.28%) ⬆️
...ct-components/lib/map/three-fiber/circle-shape.tsx 100.00% <100.00%> (ø)
...ents/lib/map/three-fiber/shape-three-rendering.tsx 66.66% <ø> (+58.33%) ⬆️
... and 8 more

... and 1 file with indirect coverage changes

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

Signed-off-by: Aaron Chong <[email protected]>
(cherry picked from commit 574de78)
Signed-off-by: Aaron Chong <[email protected]>
@aaronchongth aaronchongth merged commit 6847391 into deploy/hammer Nov 3, 2023
@aaronchongth aaronchongth deleted the port/icons-tests-change-level-fix branch November 3, 2023 00:56
@aaronchongth aaronchongth removed the request for review from Angatupyry November 3, 2023 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants