Skip to content

Conversation

@d4rken
Copy link
Member

@d4rken d4rken commented Aug 20, 2025

This commit significantly revamps the Debug Log Recorder screen with a more modern Material Design 3 look and feel, and introduces several UX improvements.

Key changes:

  • New Layout: The debug_recorder_activity.xml has been completely redesigned using CoordinatorLayout, NestedScrollView, and MaterialCardView to create a more structured and visually appealing interface. This includes:
    • A hero section with an icon, title, and subtitle.
    • Dedicated cards for sensitive information warning, session path, and log files.
    • Improved styling for log file items in debug_recorder_logfile_item.xml.
  • Edge-to-Edge Display: Enabled edge-to-edge display for RecorderActivity for a more immersive experience.
  • Action Bar Behavior: The bottom action bar now hides when scrolling down and reappears when scrolling up.
  • Discard Functionality: Added a "Discard" button and corresponding discard() function in RecorderViewModel to allow users to delete the recorded log files and close the screen.
  • Improved Information Display:
    • The number of log files and the total compressed size are now more prominently displayed.
    • File sizes are formatted using Formatter.formatShortFileSize.
  • Loading State: The isWorking flag in RecorderViewModel.State now more accurately reflects the loading/processing state, and the UI updates accordingly.
  • Theme Update: Removed the AppThemeFloating style as RecorderActivity no longer uses a floating dialog theme.
  • String Resources: Added new string resources for the updated UI elements.
  • Code Refinements:
    • Updated RecorderViewModel to handle the new isWorking state and provide formatted compressed size.
    • Adjusted LogFileAdapter to match the new item layout.
    • Implemented edge-to-edge insets handling in RecorderActivity.

See #1912

d4rken added 4 commits August 20, 2025 16:10
This commit significantly revamps the Debug Log Recorder screen with a more modern Material Design 3 look and feel, and introduces several UX improvements.

Key changes:

- **New Layout:** The `debug_recorder_activity.xml` has been completely redesigned using `CoordinatorLayout`, `NestedScrollView`, and `MaterialCardView` to create a more structured and visually appealing interface. This includes:
    - A hero section with an icon, title, and subtitle.
    - Dedicated cards for sensitive information warning, session path, and log files.
    - Improved styling for log file items in `debug_recorder_logfile_item.xml`.
- **Edge-to-Edge Display:** Enabled edge-to-edge display for `RecorderActivity` for a more immersive experience.
- **Action Bar Behavior:** The bottom action bar now hides when scrolling down and reappears when scrolling up.
- **Discard Functionality:** Added a "Discard" button and corresponding `discard()` function in `RecorderViewModel` to allow users to delete the recorded log files and close the screen.
- **Improved Information Display:**
    - The number of log files and the total compressed size are now more prominently displayed.
    - File sizes are formatted using `Formatter.formatShortFileSize`.
- **Loading State:** The `isWorking` flag in `RecorderViewModel.State` now more accurately reflects the loading/processing state, and the UI updates accordingly.
- **Theme Update:** Removed the `AppThemeFloating` style as `RecorderActivity` no longer uses a floating dialog theme.
- **String Resources:** Added new string resources for the updated UI elements.
- **Code Refinements:**
    - Updated `RecorderViewModel` to handle the new `isWorking` state and provide formatted compressed size.
    - Adjusted `LogFileAdapter` to match the new item layout.
    - Implemented edge-to-edge insets handling in `RecorderActivity`.
This commit removes the `getFormattedCompressedSize` method from the `UiState` data class within `RecorderViewModel.kt`. This method was not being used and has been removed to simplify the codebase.
@d4rken d4rken added enhancement New feature, request, improvement or optimization c: Debug Debugging related features/issues labels Aug 20, 2025
@d4rken
Copy link
Member Author

d4rken commented Aug 20, 2025

Screenshot_20250820_180542

d4rken added 3 commits August 20, 2025 19:04
This commit refactors the `RecorderViewModel` to improve the management of recorded log files and their compressed archives.

Key changes:
- Renamed `recordedPath` to `sessionPath` for clarity.
- Introduced `zipPath` to explicitly manage the path of the compressed log archive.
- Ensured that both the session directory and the zip file are deleted when the "discard" action is triggered.
- Added logging for warnings if deletion of the session directory or zip file fails.
If creating the session log directory in public external storage fails, this commit introduces a fallback mechanism to attempt creating it in private internal storage.

This ensures that session logging can proceed even if public external storage is unavailable or unwritable.
This commit updates the padding in the debug recorder activity and log file item layouts.

These changes aim to improve the visual spacing and layout of the debug recorder interface.
d4rken added 2 commits August 20, 2025 19:23
This commit removes the unused string resources `debug_debuglog_size_label` and `debug_debuglog_size_compressed_label` from the Welsh, Irish, and Esperanto localizations.
@d4rken d4rken merged commit 304e44d into main Aug 20, 2025
16 checks passed
@d4rken d4rken deleted the new-debug-log branch August 20, 2025 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c: Debug Debugging related features/issues enhancement New feature, request, improvement or optimization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants