ClinicianFOCUS / FreeScribe

A medical scribe capable of creating SOAP notes running Whisper and Kobold based on conversation with a patient
GNU General Public License v3.0
0 stars 0 forks source link

Improve Docker Client Availability Handling for UI Consistency #17

Open sourcery-ai[bot] opened 2 weeks ago

sourcery-ai[bot] commented 2 weeks ago

The current implementation for handling the availability of the Docker client may lead to inconsistent UI states if the Docker client becomes available after the initial check. The UI does not dynamically update to reflect the change in Docker client status, which can cause confusion for users.

To address this, it is suggested to implement a more dynamic approach that continuously checks for the Docker client status and updates the UI accordingly. This can be achieved by using a loop that periodically checks the Docker client status and updates the UI when the client becomes available.

The proposed solution involves modifying the code to include a function check_docker_client that repeatedly checks the Docker client status every 5000 milliseconds and updates the UI by calling create_footer_frame once the client is available.

if window.container_manager.client is not None:
    create_footer_frame()
else:
    window.after(5000, check_docker_client)

def check_docker_client():
    if window.container_manager.client is not None:
        create_footer_frame()
    else:
        window.after(5000, check_docker_client)

def create_footer_frame():

This issue is expected to be addressed with the upcoming settings menu revamp. Please ensure that the new implementation includes a dynamic update mechanism for the Docker client status to maintain UI consistency.


I created this issue for @ItsSimko from https://github.com/ClinicianFOCUS/FreeScribe/pull/14#discussion_r1806625873.

Tips and commands #### Interacting with Sourcery - **Generate a plan of action:** Comment `@sourcery-ai plan` on this issue. - **Generate a pull request for this issue:** Comment `@sourcery-ai develop` to generate a PR that addresses this issue. #### Getting Help - [Contact our support team](mailto:support@sourcery.ai) for questions or feedback. - Visit our [documentation](https://docs.sourcery.ai) for detailed guides and information. - Keep in touch with the Sourcery team by following us on [X/Twitter](https://x.com/SourceryAI), [LinkedIn](https://www.linkedin.com/company/sourcery-ai/) or [GitHub](https://github.com/sourcery-ai).