-
-
Notifications
You must be signed in to change notification settings - Fork 13.6k
♻️ refactor: refactor const folder to a new package #8756
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR refactors the project by extracting common constants into a standalone @lobechat/const package, replacing dynamic package.json imports with static URLs, and updating TypeScript and Vitest configurations to integrate the new module. Entity relationship diagram for new @lobechat/const packageerDiagram
CONST_PACKAGE {
string name
string version
boolean private
string main
}
CONST_PACKAGE ||--o| IMAGE_GENERATION_CONFIG : contains
CONST_PACKAGE ||--o| URL_CONSTANTS : contains
Class diagram for extracted constants in @lobechat/constclassDiagram
class IMAGE_GENERATION_CONFIG {
+COVER_MAX_SIZE: number
+THUMBNAIL_MAX_SIZE: number
}
class URL_CONSTANTS {
+UTM_SOURCE: string
+OFFICIAL_SITE: string
+OG_URL: string
+GITHUB: string
+GITHUB_ISSUES: string
+CHANGELOG: string
+DOCKER_IMAGE: string
+SELF_HOSTING_DOCUMENTS: string
+MANUAL_UPGRADE_URL: string
+BLOG: string
+ABOUT: string
+FEEDBACK: string
+PRIVACY_URL: string
+TERMS_URL: string
}
IMAGE_GENERATION_CONFIG <|-- ConstPackage
URL_CONSTANTS <|-- ConstPackage
class ConstPackage {
<<package>>
}
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
👍 @arvinxx Thank you for raising your pull request and contributing to our Community |
Claude finished @arvinxx's task —— View job Code Review: Constants RefactoringI've completed my review of the constants refactoring PR. Here's my comprehensive analysis: Todo List:
🔍 Review SummaryThis PR successfully refactors constants from ✅ Strengths
|
1b9223b
to
87ff31d
Compare
Claude finished @arvinxx's task —— View job 🔍 Code Review: Constants RefactoringI've completed my review of the constants refactoring PR. Here's my comprehensive analysis: Todo List:
✅ Strengths
|
Claude finished @arvinxx's task —— View job 🔍 Code Review: Constants Refactoring PRTodo List:
✅ SummaryThis PR successfully refactors constants from 🎯 Code Quality & Best PracticesStrengths:
Areas of Concern:1.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8756 +/- ##
========================================
Coverage 85.58% 85.58%
========================================
Files 935 935
Lines 72829 72829
Branches 4901 4668 -233
========================================
Hits 62333 62333
Misses 10496 10496
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Claude finished @arvinxx's task —— View job 🔍 Code Review: Constants Refactoring PRTodo List:
✅ SummaryThis PR successfully refactors constants from 🎯 Code Quality & Best PracticesStrengths:
Areas Needing Attention:1.
|
There is too much information in the pull request to test. |
❤️ Great PR @arvinxx ❤️ The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our discord and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### [Version 1.112.3](v1.112.2...v1.112.3) <sup>Released on **2025-08-16**</sup> #### ♻ Code Refactoring - **misc**: Refactor const folder to a new package. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Code refactoring * **misc**: Refactor const folder to a new package, closes [#8756](#8756) ([30a4734](30a4734)) </details> <div align="right"> [](#readme-top) </div>
🎉 This PR is included in version 1.112.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [Version 1.113.0](v1.112.0...v1.113.0) <sup>Released on **2025-08-18**</sup> #### ♻ Code Refactoring - **misc**: Refactor const folder to a new package, refactor prompts folder to the `@lobechat/prompts` pacakge, 重构ArgsInput组件. #### ✨ Features - **provider**: Add BFL provider support for image generation. #### 🐛 Bug Fixes - **db**: Desktop local db can't vectorization. - **misc**: Improve mcp tracing with user config. #### 💄 Styles - **misc**: Add Imagen 4 GA models, style improve auth sign in box loading. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### Code refactoring * **misc**: Refactor const folder to a new package, closes [lobehub#8756](https://github.com/jaworldwideorg/OneJA-Bot/issues/8756) ([30a4734](30a4734)) * **misc**: Refactor prompts folder to the `@lobechat/prompts` pacakge, closes [lobehub#8810](https://github.com/jaworldwideorg/OneJA-Bot/issues/8810) ([d82e7bb](d82e7bb)) * **misc**: 重构 ArgsInput 组件, closes [lobehub#8765](https://github.com/jaworldwideorg/OneJA-Bot/issues/8765) ([0905559](0905559)) #### What's improved * **provider**: Add BFL provider support for image generation, closes [lobehub#8806](https://github.com/jaworldwideorg/OneJA-Bot/issues/8806) ([519e03e](519e03e)) #### What's fixed * **db**: Desktop local db can't vectorization, closes [lobehub#8830](https://github.com/jaworldwideorg/OneJA-Bot/issues/8830) ([a00fd9d](a00fd9d)) * **misc**: Improve mcp tracing with user config, closes [lobehub#8827](https://github.com/jaworldwideorg/OneJA-Bot/issues/8827) ([5cab2ee](5cab2ee)) #### Styles * **misc**: Add Imagen 4 GA models, closes [lobehub#8799](https://github.com/jaworldwideorg/OneJA-Bot/issues/8799) ([2e9ad20](2e9ad20)) * **misc**: Style improve auth sign in box loading, closes [lobehub#8805](https://github.com/jaworldwideorg/OneJA-Bot/issues/8805) ([62f5a1b](62f5a1b)) </details> <div align="right"> [](#readme-top) </div>
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
📝 补充信息 | Additional Information
Summary by Sourcery
Refactor project structure by extracting common constants into a standalone @lobechat/const package and updating imports and configuration to accommodate the new module
Enhancements:
Build:
Chores:
Summary by Sourcery
Refactor common constants into a standalone package and update project configuration to use the new module
Enhancements:
Build:
Chores: