ClinicianFOCUS / clinicianfocus-installer

Install tool to help with installing the software and tools under development in this applied research project.
GNU Affero General Public License v3.0
0 stars 1 forks source link

Add installation mode and Whisper settings to NSIS installer #19

Closed ItsSimko closed 1 month ago

ItsSimko commented 1 month ago

Summary by Sourcery

Add new installation mode selection and Whisper settings pages to the installer, allowing users to choose between Basic and Advanced installations and configure Whisper settings. Enhance the installer with conditional page displays and improved finish page options for launching components.

New Features:

Enhancements:

Summary by Sourcery

Add new installation mode and Whisper settings to the NSIS installer, allowing users to choose between Basic and Advanced installations and configure Whisper settings. Implement conditional page displays and enhance the finish page with options for launching components. Introduce a system restart feature after Docker installation, with the installer resuming file installation post-restart.

New Features:

Enhancements:

sourcery-ai[bot] commented 1 month ago

Reviewer's Guide by Sourcery

This PR enhances the NSIS installer by adding installation mode selection (Basic/Advanced) and Whisper settings configuration. The implementation includes conditional page displays, improved finish page options, and system restart handling after Docker installation. The changes focus on providing a more streamlined installation experience while maintaining advanced configuration options for users who need them.

No diagrams generated as the changes look simple and do not need a visual representation.

File-Level Changes

Change Details Files
Added installation mode selection with Basic and Advanced options
  • Created new installation mode selection page with radio-button behavior
  • Implemented conditional page display based on selected installation mode
  • Added default configuration settings for Basic installation mode
install.nsi
Implemented Whisper settings configuration during installation
  • Added page for configuring Whisper API key and model selection
  • Created dropdown for model selection with size/performance descriptions
  • Implemented .env file generation for Whisper settings
install.nsi
Enhanced Docker installation process with system restart handling
  • Added registry-based state tracking for installation progress
  • Implemented system restart functionality after Docker installation
  • Added logic to resume installation after system restart
install.nsi
Improved finish page and component launch options
  • Added conditional checkbox display based on installed components
  • Implemented component launch handlers for selected options
  • Added cleanup of installation registry entries on completion
install.nsi

Tips and commands #### Interacting with Sourcery - **Trigger a new review:** Comment `@sourcery-ai review` on the pull request. - **Continue discussions:** Reply directly to Sourcery's review comments. - **Generate a GitHub issue from a review comment:** Ask Sourcery to create an issue from a review comment by replying to it. - **Generate a pull request title:** Write `@sourcery-ai` anywhere in the pull request title to generate a title at any time. - **Generate a pull request summary:** Write `@sourcery-ai summary` anywhere in the pull request body to generate a PR summary at any time. You can also use this command to specify where the summary should be inserted. #### Customizing Your Experience Access your [dashboard](https://app.sourcery.ai) to: - Enable or disable review features such as the Sourcery-generated pull request summary, the reviewer's guide, and others. - Change the review language. - Add, remove or edit custom review instructions. - Adjust other review settings. #### 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).
ItsSimko commented 1 month ago

Note: This still has Gemma 2 2b it as the basic default but it requires a huggingface token which doesn't let the llm container launch without it. We need to find a model that can isn't gated so the basic install does not require any input/additional steps from user.