Commit Graph

2128 Commits

Author SHA1 Message Date
Christian Krakau-Louis d5fb0da335 Merge pull request #639 from christianlouis/refactor-audit-logs-annotated-b008-6104828608171783200
🧹 Use Annotated pattern in audit_logs.py to resolve Ruff B008
2026-03-14 12:44:26 +01:00
Christian Krakau-Louis 777910b653 Merge pull request #640 from christianlouis/refactor-filename-regex-constant-13933144971632372772
Refactor filename regex to shared constant
2026-03-14 12:44:11 +01:00
Christian Krakau-Louis ee95173de0 Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-03-14 12:43:59 +01:00
github-actions[bot] e1ad8eae8c chore(release): update build metadata files [skip ci] 2026-03-14 11:24:54 +00:00
semantic-release 12bea9a861 0.133.5
Automatically generated by python-semantic-release
2026-03-14 11:24:51 +00:00
Christian Krakau-Louis 8ce459fc23 Merge pull request #647 from christianlouis/copilot/add-missing-help-page-texts
fix(ui): add 22 missing help page translation keys to en.json
2026-03-14 12:24:31 +01:00
copilot-swe-agent[bot] 48a93036ca fix(ui): add 22 missing help page translation keys to en.json
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-14 11:16:06 +00:00
copilot-swe-agent[bot] 4b60e0bd48 Initial plan 2026-03-14 11:09:51 +00:00
github-actions[bot] faecaad306 chore(release): update build metadata files [skip ci] 2026-03-14 10:36:09 +00:00
semantic-release 662de20e89 0.133.4
Automatically generated by python-semantic-release
2026-03-14 10:36:05 +00:00
Christian Krakau-Louis 8487dcd13d Merge pull request #645 from christianlouis/copilot/fix-language-selection-bug
fix(i18n): persist language preference server-side, fix dropdown rendering and avatar 404
2026-03-14 11:35:43 +01:00
copilot-swe-agent[bot] f41ecc9b2c fix(i18n): add noqa comment to intentionally broad exception in hydration helper
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-14 10:34:31 +00:00
copilot-swe-agent[bot] 1416d901d0 fix(i18n): persist language preference server-side, fix dropdown rendering and avatar 404
- Fix language dropdown in base.html by moving tojson data out of HTML
  attribute into a script tag (prevents quote conflicts breaking Alpine.js)
- Fix avatar placeholder 404 by correcting filename reference from
  avatar-placeholder.svg to default-avatar.svg
- Add session hydration from DB in _inject_global_context() so
  detect_language() uses the stored preference on every request
- Sync session and cookie in PATCH /api/profile when language changes
- Reload page after language change in profile to reflect new locale
- Add tests for session/cookie sync and DB hydration

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-14 10:30:50 +00:00
github-actions[bot] 01739e8c22 docs(changelog): update changelog [skip ci] 2026-03-14 10:25:20 +00:00
Christian Krakau-Louis d09227b61c chore(i18n): auto-update translations via LLM 2026-03-14 10:24:41 +00:00
github-actions[bot] 3da3953a4b chore(release): update build metadata files [skip ci] 2026-03-14 10:19:51 +00:00
semantic-release cb7693c428 0.133.3
Automatically generated by python-semantic-release
2026-03-14 10:19:48 +00:00
Christian Krakau-Louis a8174371f5 Merge pull request #646 from christianlouis/copilot/add-missing-translations-keys
fix(i18n): add missing index page translation keys to en.json
2026-03-14 11:19:28 +01:00
copilot-swe-agent[bot] 1f24b1b95b fix(i18n): add missing index page translation keys to en.json
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-14 10:14:43 +00:00
copilot-swe-agent[bot] ae8bd0ca47 Initial plan 2026-03-14 10:10:53 +00:00
copilot-swe-agent[bot] c3e389d957 Initial plan 2026-03-14 10:02:30 +00:00
github-actions[bot] 9b944d4a87 chore(release): update build metadata files [skip ci] 2026-03-14 09:48:20 +00:00
semantic-release 10edd6c6a5 0.133.2
Automatically generated by python-semantic-release
2026-03-14 09:48:17 +00:00
Christian Krakau-Louis 0ef7bf23d7 Merge pull request #636 from christianlouis/copilot/fix-json-serialization-errors
fix(ui): add missing `suggested_languages` global to error templates
2026-03-14 10:47:57 +01:00
github-actions[bot] de0b674025 style: apply ruff auto-fix
- Auto-formatted code with ruff format
- Applied ruff linting fixes with --fix

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-03-14 09:45:05 +00:00
Christian Krakau-Louis b148675ba8 Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-03-14 10:44:14 +01:00
google-labs-jules[bot] 917b282614 Refactor: extract filename regex to shared constant
Move the valid filename regex pattern to a shared constant in app/utils/filename_utils.py and update both the task logic and security tests to use it. This eliminates duplication and ensures consistency across the codebase. Also normalized line endings in app/tasks/extract_metadata_with_gpt.py.

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-14 09:42:40 +00:00
google-labs-jules[bot] f96fcbe6c9 style: use Annotated pattern in audit_logs.py to resolve Ruff B008
Refactor `app/api/audit_logs.py` to use the `Annotated` type hint pattern for FastAPI dependencies (`Depends`) and query parameters (`Query`).

- Resolves B008: Function-call in default argument.
- Improves code maintainability and readability by following modern FastAPI best practices.
- Maintains consistency with other modules in the codebase (e.g., `files.py`, `integrations.py`).
- No changes to API runtime behavior.

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-14 09:42:23 +00:00
copilot-swe-agent[bot] 0592c59174 fix(ui): add missing suggested_languages global to error templates
The error templates (404.html, 500.html) extend base.html which uses
{{ suggested_languages | tojson }} in the language selector dropdown.
The _error_templates instance in app/main.py was missing this global,
causing Jinja2 Undefined objects to be passed to the tojson filter,
resulting in "TypeError: Object of type Undefined is not JSON serializable"
errors in 35 tests.

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-14 09:07:17 +00:00
copilot-swe-agent[bot] ac5495134b Initial plan 2026-03-14 08:59:57 +00:00
github-actions[bot] 54585e028e chore(release): update build metadata files [skip ci] 2026-03-14 08:51:33 +00:00
semantic-release 4cf240d478 0.133.1
Automatically generated by python-semantic-release
2026-03-14 08:51:30 +00:00
Christian Krakau-Louis 6c8bb4fec8 Merge pull request #635 from christianlouis/copilot/remove-translation-content-tests
fix(test): remove tests that assert specific translation content
2026-03-14 09:50:58 +01:00
copilot-swe-agent[bot] 08fabe154a fix(test): remove tests that check specific translation content
Remove three tests that asserted exact translated strings for German,
French, and Chinese locales. These tests broke whenever translation
files were updated externally.

Replace content-checking tests with behavioral assertions:
- Translated values are non-empty strings (not the raw key)
- Fallback and None-locale return the English translation
- Placeholder interpolation injects the kwarg value

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-14 08:47:56 +00:00
copilot-swe-agent[bot] f0f9165958 Initial plan 2026-03-14 08:43:40 +00:00
github-actions[bot] 971d450128 docs(changelog): update changelog [skip ci] 2026-03-14 08:38:50 +00:00
Christian Krakau-Louis 0cb6017b50 chore(i18n): auto-update translations via LLM 2026-03-14 08:38:11 +00:00
github-actions[bot] 3e68634681 chore(release): update build metadata files [skip ci] 2026-03-14 08:35:03 +00:00
semantic-release 57f204ece9 0.133.0
Automatically generated by python-semantic-release
2026-03-14 08:35:00 +00:00
Christian Krakau-Louis 64d3f27afe Merge pull request #633 from christianlouis/copilot/enhance-language-selector-menu
feat(ui): smart compact language selector with flags and search
2026-03-14 09:34:42 +01:00
github-actions[bot] bc34ed0104 chore(release): update build metadata files [skip ci] 2026-03-14 08:33:58 +00:00
semantic-release c51ad019d2 0.132.1
Automatically generated by python-semantic-release
2026-03-14 08:33:55 +00:00
Christian Krakau-Louis 74eaf6fcef Merge pull request #631 from christianlouis/copilot/remove-translation-test
test(i18n): stop asserting specific translation content in kwargs interpolation test
2026-03-14 09:33:33 +01:00
Christian Krakau-Louis d97fda4840 Merge pull request #634 from christianlouis/sentinel-fix-sql-injection-db-migrate-454366986287082539
🛡️ Sentinel: [SECURITY] Fix potential SQL injection in db_migrate
2026-03-14 09:33:13 +01:00
Christian Krakau-Louis 3bfa5ad266 Resolve translations: keep main for all except en.json 2026-03-14 08:32:00 +00:00
github-actions[bot] 4a46f372b9 docs(changelog): update changelog [skip ci] 2026-03-14 08:27:44 +00:00
Christian Krakau-Louis 8e865180a5 chore(i18n): auto-update translations via LLM 2026-03-14 08:24:11 +00:00
google-labs-jules[bot] 82b1f89332 fix(security): prevent potential SQL injection in database migration
Replaced manual double-quoting of table names with SQLAlchemy's dialect-specific
identifier preparer in `app/utils/db_migrate.py`. This ensures proper quoting
for any database dialect and acts as a defense-in-depth measure against
SQL injection or syntax errors if a table name contains unexpected characters.

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-14 03:39:53 +00:00
Christian Krakau-Louis 9a480e3d68 chore(i18n): auto-update translations via LLM 2026-03-14 01:34:50 +00:00
copilot-swe-agent[bot] 3557590679 feat(ui): smart compact language selector with search and flags
- Add get_suggested_languages() to i18n.py returning ≤6 ranked
  suggestions (current locale → Accept-Language header → popular
  language fallbacks); refactor _parse_accept_language to share
  a common _parse_accept_language_entries() helper
- Inject suggested_languages into every template context (base.py)
- Redesign nav-bar language dropdown (base.html): button shows
  current-language flag emoji; dropdown lists 5-7 suggestions with
  flags and native names; Alpine.js search input filters all 77
  languages live; footer shows count and Search shortcut
- Add language.search_placeholder and language.no_results keys to
  all 77 translation JSON files (en values; external script
  propagates translations to other locales)
- Remove test_all_languages_have_same_keys (external sync script
  owns key completeness); add TestGetSuggestedLanguages (7 unit
  tests); update test_language_selector_in_nav for new HTML
- Update InternationalizationGuide.md: single-step en.json-only
  workflow for adding new translation keys
- Update .github/copilot-instructions.md: add i18n/l10n section
  documenting the en.json-only rule for future agents

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-13 21:31:16 +00:00