Dev 1.8.0 #399

Merged
LukeGus merged 42 commits from dev-1.8.0 into main 2025-10-15 03:50:34 +00:00
LukeGus commented 2025-10-10 03:48:45 +00:00 (Migrated from github.com)
No description provided.
gemini-code-assist[bot] commented 2025-10-10 03:51:50 +00:00 (Migrated from github.com)

Summary of Changes

Hello @LukeGus, I'm Gemini Code Assist1 ! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly upgrades the Termix application by integrating robust code quality tools and introducing new features for server management. It standardizes code style and commit practices, enhances SSH connection security with advanced authentication methods like TOTP, and expands server monitoring capabilities with a detailed statistics dashboard. Additionally, it streamlines data management operations and broadens language support.

Highlights

  • Code Quality and Consistency: Introduced commit linting with @commitlint/config-conventional and integrated Husky hooks (.husky/commit-msg, .husky/pre-commit) to enforce consistent commit messages and run lint-staged before commits. Expanded .prettierignore and defined specific formatting rules in .prettierrc for improved code style consistency. Added recommended VS Code extensions in .vscode/extensions.json.
  • Node.js Version Update: Updated the .nvmrc file to specify Node.js version 20, indicating a downgrade from version 22.
  • Server Statistics Dashboard: Implemented a new server statistics dashboard with various widgets including CPU, memory, disk, network, uptime, processes, and system information. This feature is supported by new database columns (stats_config in ssh_data) and API routes.
  • Snippet Management System: Added a new snippet management system with dedicated API routes (/snippets) for creating, retrieving, updating, and deleting code snippets, allowing for quick command execution in the terminal.
  • Enhanced SSH Connection Handling: Improved SSH connection handling to support keyboard-interactive authentication, including specific logic for Two-Factor Authentication (TOTP) in both terminal and file manager contexts. This includes new TOTPDialog components in the UI.
  • Improved Data Handling and Security: Refined database import/export processes with better type safety and error handling across various backend routes and utility functions. Updated keyPassword to key_password and privateKey/publicKey to private_key/public_key for consistency in database schemas and API interactions. Added allow_password_login setting and API endpoints for administrative control over password-based authentication.
  • German Language Support: Added comprehensive German language translations across the application, enhancing multi-language support.
Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • .github/workflows/pr-check.yml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.


  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩︎

## Summary of Changes Hello @LukeGus, I'm Gemini Code Assist[^1]! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly upgrades the Termix application by integrating robust code quality tools and introducing new features for server management. It standardizes code style and commit practices, enhances SSH connection security with advanced authentication methods like TOTP, and expands server monitoring capabilities with a detailed statistics dashboard. Additionally, it streamlines data management operations and broadens language support. ### Highlights * **Code Quality and Consistency**: Introduced commit linting with `@commitlint/config-conventional` and integrated Husky hooks (`.husky/commit-msg`, `.husky/pre-commit`) to enforce consistent commit messages and run `lint-staged` before commits. Expanded `.prettierignore` and defined specific formatting rules in `.prettierrc` for improved code style consistency. Added recommended VS Code extensions in `.vscode/extensions.json`. * **Node.js Version Update**: Updated the `.nvmrc` file to specify Node.js version 20, indicating a downgrade from version 22. * **Server Statistics Dashboard**: Implemented a new server statistics dashboard with various widgets including CPU, memory, disk, network, uptime, processes, and system information. This feature is supported by new database columns (`stats_config` in `ssh_data`) and API routes. * **Snippet Management System**: Added a new snippet management system with dedicated API routes (`/snippets`) for creating, retrieving, updating, and deleting code snippets, allowing for quick command execution in the terminal. * **Enhanced SSH Connection Handling**: Improved SSH connection handling to support keyboard-interactive authentication, including specific logic for Two-Factor Authentication (TOTP) in both terminal and file manager contexts. This includes new `TOTPDialog` components in the UI. * **Improved Data Handling and Security**: Refined database import/export processes with better type safety and error handling across various backend routes and utility functions. Updated `keyPassword` to `key_password` and `privateKey`/`publicKey` to `private_key`/`public_key` for consistency in database schemas and API interactions. Added `allow_password_login` setting and API endpoints for administrative control over password-based authentication. * **German Language Support**: Added comprehensive German language translations across the application, enhancing multi-language support. <details> <summary><b>Ignored Files</b></summary> * **Ignored by pattern:** `.github/workflows/**` (1) * .github/workflows/pr-check.yml </details> <details> <summary><b>Using Gemini Code Assist</b></summary> <br> The full guide for Gemini Code Assist can be found on our [documentation page](https://developers.google.com/gemini-code-assist/docs/review-github-code), here are some quick tips. <b>Invoking Gemini</b> You can request assistance from Gemini at any point by creating a comment using either `/gemini <command>` or `@gemini-code-assist <command>`. Below is a summary of the supported commands on the current page. Feature | Command | Description --- | --- | --- Code Review | `/gemini review` | Performs a code review for the current pull request in its current state. Pull Request Summary | `/gemini summary` | Provides a summary of the current pull request in its current state. Comment | @gemini-code-assist | Responds in comments when explicitly tagged, both in pull request comments and review comments. Help | `/gemini help` | Displays a list of available commands. <b>Customization</b> To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a `.gemini/` folder in the base of the repository. Detailed instructions can be found [here](https://developers.google.com/gemini-code-assist/docs/customize-gemini-behavior-github). <b>Limitations & Feedback</b> Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with :thumbsup: and :thumbsdown: on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up [here](https://google.qualtrics.com/jfe/form/SV_2cyuGuTWsEw84yG). <b>You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the [Gemini Code Assist IDE Extension](https://cloud.google.com/products/gemini/code-assist).</b> </details> [^1]: Review the [Privacy Notices](https://policies.google.com/privacy), [Generative AI Prohibited Use Policy](https://policies.google.com/terms/generative-ai/use-policy), [Terms of Service](https://policies.google.com/terms), and learn how to configure Gemini Code Assist in GitHub [here](https://developers.google.com/gemini-code-assist/docs/customize-gemini-behavior-github). Gemini can make mistakes, so double check it and [use code with caution](https://support.google.com/legal/answer/13505487).
gemini-code-assist[bot] (Migrated from github.com) reviewed 2025-10-10 03:54:21 +00:00
gemini-code-assist[bot] (Migrated from github.com) left a comment

Code Review

This pull request introduces a wide range of improvements, including new features, refactoring, and developer experience enhancements. The changes are generally of high quality, with better typing, removal of unused code, and improved configurations. I've found one minor issue related to dead code that should be addressed.

## Code Review This pull request introduces a wide range of improvements, including new features, refactoring, and developer experience enhancements. The changes are generally of high quality, with better typing, removal of unused code, and improved configurations. I've found one minor issue related to dead code that should be addressed.
@@ -1191,7 +1174,7 @@ app.post(
);
gemini-code-assist[bot] (Migrated from github.com) commented 2025-10-10 03:54:21 +00:00

medium

This statement has no effect as the result of .all() is not used. It seems to be a leftover from debugging or a refactoring mistake. It should be removed to avoid confusion and unnecessary database operations.

![medium](https://www.gstatic.com/codereviewagent/medium-priority.svg) This statement has no effect as the result of `.all()` is not used. It seems to be a leftover from debugging or a refactoring mistake. It should be removed to avoid confusion and unnecessary database operations.
Sign in to join this conversation.