-
Notifications
You must be signed in to change notification settings - Fork 2
[CPP-155] SBP/ SBPJson/Solution Logging + LogBar #64
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
Conversation
ColorOverlay { | ||
anchors.fill: navBarConnect | ||
source: navBarConnect | ||
color: !connectButton.checked ? "dimgrey" : "crimson" |
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.
See comment in the PR body.
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.
There's a lot of comments in the PR body 😞
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.
This refers to this comment:
The SVG coloring for the connect/folder/folder open buttons is showing some issues. I can't seem to be able to accurately color things with rgba(r,g,b,a) and only hardcoded colors seem to work.
Ideally I would have wanted to point to "current_theme.button_pressed"/"current_theme.button_depressed" or something of the sort. I was trying to work with https://doc.qt.io/qt-5/qml-qtquick-systempalette.html but I think there may be an inherent issue with the ColorOverlay feature. I can only get the blue channel to show when providing an Qt.rgba(r,g,b,a).
7746b20
to
99fd3a7
Compare
…ogging mechanism).
async console for the hackathon?? |
One option before surrendering to an async rewrite could be to pull the MainTab out of "process_messages" and instead have maintab invoke process_messages. Then when the backend gets data to change in the shared state, it could call on the main tab to handle these new changes. Not positive that would work nor make it any more efficient though. I'm just assume the biggest performance drop is the mutex lock in serialize_sbp. |
5b80946
to
4d57653
Compare
ColorOverlay { | ||
anchors.fill: navBarConnect | ||
source: navBarConnect | ||
color: !connectButton.checked ? "dimgrey" : "crimson" |
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.
There's a lot of comments in the PR body 😞
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.
Some more feedback:
- Default logging dir should be "$HOME/SwiftNav" -- on Windows this default to a hidden AppData folder, which isn't very easy to find ($HOME/SwiftNav should be created if it doesn't exist)
- Hover for the button that shows the logging bar should probably just say "Logging" or "Show Logging Toolbar"
- Had a lot of trouble getting the folder selector to accept a different folder than the default, see here: https://youtu.be/6lHk92s0tTQ
- Default logging should probably be SBP-JSON
- "SBP Json" should be referred to as "SBP-JSON" or "SBP JSON"
- the radio button could just be a drop down that selects the logging type, or if there's a combined button/drop-down that would probably be the best
- The "solution log" button should probably just be "CSV Log" (that's what we're mirroring right?) -- and we need to hide this the same as we do in the current console, unless there's a command line switch
@silverjam I did a bit of reworking for some of the logic to make some of the UI features a little more stable (primarily behavior confirmation). I added the relevant CLI args. And also added the communications and UI for setting log level though it is not implemented yet. I was unable to find anything easy to set up as you suggested for the SBP logging (button + combobox) this may need some rework but maybe for another PR. I still need to write up some unittests but thinking maybe after the hackathon and any additional feedback. |
d238848
to
5754bcf
Compare
fd6e77e
to
831a724
Compare
@john-michaelburke I think this is good enough to get feedback on, let's go ahead and merge and do a release cut |
Implements
Todo