Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR implements version number display functionality across the frontend and backend, adding the ability to show the application version on the web interface and in backend logs during startup.
- Frontend displays version information in the footer by fetching from backend API
- Backend logs APP version during server initialization
- Added comprehensive test coverage for version-related functionality
Reviewed Changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| test/backend/test_main_service.py | Added comprehensive test suite for startup initialization including version logging |
| test/backend/app/test_tenant_config_app.py | Updated tests to include app_version in API response validation |
| frontend/services/versionService.ts | New service to fetch application version from backend API |
| frontend/const/constants.ts | Added fallback APP_VERSION constant |
| frontend/app/[locale]/page.tsx | Integrated version display in footer with API fetch logic |
| docker/.env.example | Minor formatting cleanup |
| doc/docs/zh/version/version-management.md | Chinese documentation for version management |
| doc/docs/en/version/version-management.md | English documentation for version management |
| doc/docs/.vitepress/config.mts | Added version management section to documentation navigation |
| backend/main_service.py | Added version logging during startup initialization |
| backend/consts/const.py | Added APP_VERSION constant |
| backend/apps/tenant_config_app.py | Updated deployment version endpoint to include app_version |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
26bb538 to
e63cc52
Compare
Phinease
approved these changes
Sep 28, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✨ Version number display #1231

页面展示版本号:
后端打印版本号:

文档指南:
