Skip to content

Conversation

@mpieniak01
Copy link
Owner

@mpieniak01 mpieniak01 commented Feb 2, 2026

Zakres:

  1. poprawa typów dla mypy (narzędzia MCP, redis_queue, google_assistant, provider_router) +
  2. uzupełnienie tłumaczeń EN (web/*.html, dashboard_base.html, i18n.js)

w ramach wydania zbiorczego #214/#215.

Status: make typecheck przechodzi; testy z listy regresyjnej (m.in. test_assistant_router, test_mcp_tools, test_project_issues) zakończone wynikiem 132 passed / 27 skipped.

Szczegóły i kontekst: docs_pl/_to_do/215_plan-naprawy-mypy.md
i docs_pl/_to_do/214_tlumaczenia-en.md

@mpieniak01 mpieniak01 self-assigned this Feb 2, 2026
Copilot AI review requested due to automatic review settings February 2, 2026 16:23
@mpieniak01 mpieniak01 changed the title 215 215 poprawa typów dla myp i uzupełnienie tłumaczeń EN Feb 2, 2026
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @mpieniak01, 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 focuses on improving code quality and enhancing the user experience. It addresses type annotation issues to ensure better code maintainability and adds missing English translations to improve the accessibility of the application for English-speaking users. Additionally, it includes updates to the Makefile and documentation to provide better guidance and context for developers and users.

Highlights

  • Mypy Type Checking: Improved type annotations for better code quality and maintainability, addressing issues in MCP tools, redis queue, Google Assistant, and provider router.
  • English Translations: Completed missing English translations in web UI files (web/*.html, dashboard_base.html, i18n.js) to enhance the user experience for English speakers.
  • Makefile Enhancement: Added a 'typecheck' command to the Makefile for easy execution of Mypy type checking.
  • Documentation Updates: Enhanced README files and added new documentation files to provide more context and details about the changes.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

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.

Footnotes

  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.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request implements comprehensive type safety improvements for mypy and completes English translations across all web UI screens. The changes span ~50 files with two primary objectives:

Changes:

  • Type annotations added to core modules (MCP tools, queue, providers, adapters) to achieve clean make typecheck execution
  • Complete English translations for all /web/*.html screens via i18n.js dictionary expansion
  • New validation script check_i18n.mjs to enforce translation completeness

Reviewed changes

Copilot reviewed 65 out of 66 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
mypy.ini New mypy configuration targeting Python 3.11 with strict optional checks
pc_client/utils/async_helpers.py New helper module providing thread-safe fallback for asyncio.to_thread
pc_client/mcp/tools/*.py Added TypedDict definitions for all MCP tool return types
pc_client/queue/redis_queue.py Added type hints with TYPE_CHECKING guards for Redis client
pc_client/services/google_assistant.py Fixed tomllib/tomli imports and added GoogleCredentials typing
pc_client/providers/*.py Updated constructors to accept Optional[Dict] configs
pc_client/adapters/*.py Added return type normalization for subprocess return codes
web/assets/i18n.js Expanded with 300+ English translation keys across all UI sections
web/*.html Added data-i18n attributes and replaced hardcoded Polish strings
scripts/check_i18n.mjs New validation script ensuring all i18n keys have English translations

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

To jest bardzo obszerne i wartościowe pull request, który wprowadza statyczną analizę typów za pomocą mypy oraz uzupełnia tłumaczenia na język angielski w całym interfejsie użytkownika. Zmiany znacząco poprawiają jakość i utrzymywalność kodu. Wprowadzenie TypedDict w modułach mcp/tools oraz poprawki typowania w adapterach i serwisach są doskonałym krokiem w kierunku większej niezawodności. Dodałem kilka sugestii, w tym jedną krytyczną poprawkę błędu, który mógłby prowadzić do UnboundLocalError, oraz propozycję refaktoryzacji w celu zmniejszenia duplikacji kodu w plikach HTML. Świetna robota!

@mpieniak01
Copy link
Owner Author

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 68 out of 69 changed files in this pull request and generated 6 comments.

Comments suppressed due to low confidence (1)

pc_client/utils/system_info.py:25

  • The _safe_call function signature changed to require a default value of the same type T as the return type. However, this forces callers to provide typed defaults even when they want None. Consider using Optional[T] as the return type and allowing default to be None, which would be more flexible: def _safe_call(fn: Callable[[], T], default: Optional[T] = None) -> Optional[T]:

@mpieniak01 mpieniak01 added bug Something isn't working refactor hotfix test labels Feb 2, 2026
@mpieniak01 mpieniak01 merged commit 0a62d5a into main Feb 2, 2026
6 checks passed
@mpieniak01 mpieniak01 deleted the 215 branch February 2, 2026 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working hotfix refactor test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant