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

Use color-eyre for error handling and add a log window #83

Merged
merged 42 commits into from
Jan 2, 2024

Commits on Dec 28, 2023

  1. fix: properly set log verbosity to full in web builds

    To set the verbosity in web builds, we need to use `.lib_verbosity`, not
    `.verbosity`.
    
    There will still be no backtrace displayed because we are using the
    `panic_abort` panic handler instead of the normal `panic_unwind` handler
    that native builds use. There is currently no support for `panic_unwind`
    on the `wasm32-unknown-unknown` target unless we use `no_std`.
    white-axe committed Dec 28, 2023
    Configuration menu
    Copy the full SHA
    5e37f4d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    751baeb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c8b474e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5002bd1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f85afa3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e17abd4 View commit details
    Browse the repository at this point in the history

Commits on Dec 29, 2023

  1. Configuration menu
    Copy the full SHA
    a3db8aa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c520134 View commit details
    Browse the repository at this point in the history

Commits on Dec 30, 2023

  1. refactor: migrate from anyhow to color-eyre

    Moving to color-eyre allows us to use color-backtrace for formatting
    errors, which anyhow does not support. It's otherwise essentially the
    same as anyhow but with some peculiar and confusing names in the API
    changed.
    white-axe committed Dec 30, 2023
    Configuration menu
    Copy the full SHA
    7c42ecf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    762271f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    57f19b3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c573b39 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    23ea3f9 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    493220e View commit details
    Browse the repository at this point in the history

Commits on Dec 31, 2023

  1. Configuration menu
    Copy the full SHA
    c9ad5b3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e347dcd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9be18e6 View commit details
    Browse the repository at this point in the history
  4. fix: terminal UI improvements

    The terminal now immediately resizes to the correct size instead of
    starting at the wrong size and taking several frames to resize.
    
    The terminal size controls have been moved to the top of the terminal
    window so that if the terminal is too big to fit on the screen, the user
    can still access the controls to make it smaller. Also, the format is
    now COLS x ROWS instead of ROWS x COLS.
    
    The terminal also handles focus and hover correctly now. It won't change
    the cursor unless the terminal is hovered, and it won't accept keyboard
    input unless it's focused.
    
    Also, the terminal no longer requests a rerender every frame. Now, it
    only does that if the terminal's contents have been updated. For the
    output window, this is done by making the tracing writer call
    `ctx.request_repaint()` every time it writes to the log. For shells,
    this is done by doing the same whenever there is at least one terminal
    action received by the thread.
    white-axe committed Dec 31, 2023
    Configuration menu
    Copy the full SHA
    2bdcc89 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5400d4a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    84e8437 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    bcb1435 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a97a980 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    efd6ca6 View commit details
    Browse the repository at this point in the history
  10. refactor: toast functions are now macros

    This is so that the logs accurately display where the toast was created
    from instead of displaying the location as somewhere in toasts.rs.
    white-axe committed Dec 31, 2023
    Configuration menu
    Copy the full SHA
    01a4f7f View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    41718d2 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    5ca912e View commit details
    Browse the repository at this point in the history

Commits on Jan 1, 2024

  1. chore: clippy

    white-axe committed Jan 1, 2024
    Configuration menu
    Copy the full SHA
    2ba3962 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6904b66 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8698272 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2259b83 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2a610b8 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    10878b5 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    7adf194 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    fa2777c View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    933ed41 View commit details
    Browse the repository at this point in the history

Commits on Jan 2, 2024

  1. Configuration menu
    Copy the full SHA
    87c7fc7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    226189f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4f028a8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c5171bb View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    19f1f62 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4607532 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f3ac4dd View commit details
    Browse the repository at this point in the history