Closed ItsSimko closed 2 days ago
This PR enhances the FreeScribe client by introducing pre/post-processing capabilities for text handling and improving the settings UI layout. The changes focus on refactoring the settings window to use a two-column layout and adding new processing options for text manipulation. The implementation includes error handling improvements and model selection enhancements.
sequenceDiagram
actor User
participant Client
participant AI
User->>Client: Enter text
Client->>AI: Send pre-processing request
AI-->>Client: Return list of facts
Client->>AI: Send note generation request
AI-->>Client: Return generated note
alt Post-processing enabled
Client->>AI: Send post-processing request
AI-->>Client: Return post-processed note
end
Client->>User: Display final note
classDiagram
class CustomTextBox {
+String placeholderText
+void insertText(String text)
+void copyText()
}
note for CustomTextBox "CustomTextBox widget with placeholder and copy functionality"
class SettingsWindowUI {
+void create_editable_settings_col(Frame left_frame, Frame right_frame, int left_row, int right_row, Set settings_set)
+void create_advanced_settings()
+void save_settings(boolean close_window)
}
note for SettingsWindowUI "Enhanced settings window with two-column layout and dynamic model selection"
SettingsWindowUI --> CustomTextBox : uses
Change | Details | Files |
---|---|---|
Refactored settings window layout to use an evenly distributed two-column design |
|
src/FreeScribe.client/UI/SettingsWindowUI.py |
Added pre/post-processing functionality for text handling |
|
src/FreeScribe.client/UI/SettingsWindow.py src/FreeScribe.client/client.py |
Enhanced error handling and model selection in the client |
|
src/FreeScribe.client/client.py src/FreeScribe.client/UI/SettingsWindowUI.py |
Hey @ItsSimko, here is an example of how you can ask me to improve this pull request:
@sweep Add unit tests for the `send_text_to_chatgpt` function to verify error handling for different types of exceptions (ConnectionError, Timeout, RequestException) and ensure correct error messages are displayed.
:book: For more information on how to use Sweep, please read our documentation.
Issue: #27
Summary by Sourcery
Refactor the FreeScribe client to enhance the user interface and settings management. Introduce a CustomTextBox widget for improved text handling and add placeholder text functionality. Enhance the settings window with a two-column layout and dynamic model selection. Update the CI workflow to handle alpha releases and improve release notes.
New Features:
Enhancements:
CI:
Documentation:
Summary by Sourcery
Refactor the FreeScribe client to enhance the user interface and settings management. Introduce a CustomTextBox widget for improved text handling and add placeholder text functionality. Enhance the settings window with a two-column layout and dynamic model selection. Update the CI workflow to handle alpha releases and improve release notes.
New Features:
Enhancements:
CI: