Skip to content

Conversation

@john-michaelburke
Copy link
Collaborator

  • Allow frontend to calculate recording size via raw bytes.
  • Add clear button to log panel.
  • Have log panel clear and pause button inherit SwiftButton.
  • Moved refresh recording function to utils where other similar "refresh and send to frontend" functions are located for consistency.
    Screen Shot 2021-12-10 at 11 31 50 AM

@john-michaelburke john-michaelburke requested a review from a team December 10, 2021 19:38

let mut logging_bar_status = msg.init_logging_bar_recording_status();
logging_bar_status.set_recording_duration_sec(duration);
logging_bar_status.set_recording_size(size);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only change here is sending the size parameter instead of passing it to bytes_to_human_readable before sending to frontend. Now frontend will do the calculation and produce the string.

@john-michaelburke john-michaelburke force-pushed the john-michaelburke/logging-bar-adj-clear-button branch from 53ca4c2 to 62853de Compare December 10, 2021 19:45
@silverjam
Copy link
Contributor

Are there changes to diagrams in this PR?

@john-michaelburke
Copy link
Collaborator Author

Are there changes to diagrams in this PR?

This is due to our newline formatter. It is just adding a newline. Could either add it to the exclusions or just add the new line 😄

@silverjam
Copy link
Contributor

silverjam commented Dec 10, 2021

Are there changes to diagrams in this PR?

This is due to our newline formatter. It is just adding a newline. Could either add it to the exclusions or just add the new line 😄

I would add it to the exclusions, the next time we update it with draw.io it'll probably drop the newline again

@john-michaelburke john-michaelburke force-pushed the john-michaelburke/logging-bar-adj-clear-button branch from 62853de to 5b6c128 Compare December 10, 2021 23:04
@john-michaelburke
Copy link
Collaborator Author

Looks like we did not have exclusions for the newline formatter. I added some simple regex matcher with some reasonable patterns.

@john-michaelburke john-michaelburke force-pushed the john-michaelburke/logging-bar-adj-clear-button branch from 5b6c128 to 1f82196 Compare December 10, 2021 23:10
@john-michaelburke john-michaelburke merged commit 04376c2 into main Dec 10, 2021
@john-michaelburke john-michaelburke deleted the john-michaelburke/logging-bar-adj-clear-button branch December 10, 2021 23:18
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