-
Notifications
You must be signed in to change notification settings - Fork 2
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
Navbar Redesign with Icons #39
Conversation
…ator, and added hover effect on navbar items.
…d dynamic title on containers.
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.
Just merge from master and looks good
src/store/useRoslib.ts
Outdated
@@ -11,6 +11,7 @@ const SECONDS_TO_TIMESTAMP = 1000; | |||
export const useRoslibStore = defineStore('roslib', () => { | |||
const ros = new ROSLIB.Ros({ url: undefined }); | |||
const isWebSocketConnected = ref<boolean>(false); | |||
const latency = ref<Number>(0); |
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.
Small thing with typescript. Primitive types string, number and boolean are lowercase while all others you capital the first letter. Change to "number"
@Quashnock I resolved the merge conflict above. Make sure do a |
Also, looks like CI failed. Make sure you have the formatter enabled. You can format everything using |
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.
Looks good!
The icons I used from the vue materials UI library. I tested them by temporarily hardcoding the websocket and robot controller states, so you may want to fully test them with actual connections to the robot.
As requested in the discord meeting on 11/15 I added a placeholder ref for latency inside of useRobotLibStore and had the respective TS file export it. The ping indicator should update accordingly when the latency value is changed.
I felt that if we use icons it may be a bit difficult to seperate indicators from clickable tabs, so I gave indicators a different background color and the clickable tabs a hover effect.
Please let me know if you have any questions or run into any issues!