-
-
Notifications
You must be signed in to change notification settings - Fork 13.5k
🐛 fix: fix subscription plan tag display #8599
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 Git ↗︎
|
Reviewer's GuideThis PR implements end-to-end subscription plan support by extending user state types and initialization, incorporating the subscriptionPlan value from server data in the Redux slice, and updating the UserInfo component to retrieve and pass the subscriptionPlan to the PlanTag component. Sequence diagram for UserInfo rendering PlanTag with subscriptionPlansequenceDiagram
participant UserInfo
participant useUserStore
participant PlanTag
UserInfo->>useUserStore: get subscriptionPlan
UserInfo->>PlanTag: render PlanTag(type=subscriptionPlan)
Entity relationship diagram for user state and subscription planerDiagram
USER_INITIALIZATION_STATE {
string firstName
string lastName
string userId
string username
string preference
string settings
string subscriptionPlan
}
COMMON_STATE {
boolean isOnboard
boolean isShowPWAGuide
boolean isUserCanEnableTrace
boolean isUserHasConversation
boolean isUserStateInit
string subscriptionPlan
}
USER_INITIALIZATION_STATE ||--|| COMMON_STATE : shares subscriptionPlan
Class diagram for updated user state and UserInfo componentclassDiagram
class UserInitializationState {
string? firstName
string? lastName
UserPreference preference
PartialDeep~UserSettings~ settings
Plans? subscriptionPlan
string? userId
string? username
}
class CommonState {
boolean isOnboard
boolean isShowPWAGuide
boolean isUserCanEnableTrace
boolean isUserHasConversation
boolean isUserStateInit
Plans? subscriptionPlan
}
class UserInfo {
+UserInfo(props: UserInfoProps)
}
class PlanTag {
+PlanTag(type: Plans)
}
UserInfo --> PlanTag : passes subscriptionPlan
CommonState <|-- UserInitializationState : extends
UserInfo --> CommonState : uses subscriptionPlan
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 |
TestGru AssignmentSummary
Files
Tip You can |
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.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8599 +/- ##
=======================================
Coverage 85.73% 85.73%
=======================================
Files 910 910
Lines 69711 69712 +1
Branches 4756 4756
=======================================
+ Hits 59766 59767 +1
Misses 9945 9945
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:
|
❤️ 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. |
### [Version 1.105.3](v1.105.2...v1.105.3) <sup>Released on **2025-07-29**</sup> #### 🐛 Bug Fixes - **misc**: Fix subscription plan tag display. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Fix subscription plan tag display, closes [#8599](#8599) ([2a3754a](2a3754a)) </details> <div align="right"> [](#readme-top) </div>
🎉 This PR is included in version 1.105.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [Version 1.105.0](v1.104.1...v1.105.0) <sup>Released on **2025-07-29**</sup> #### ✨ Features - **misc**: Add support for Okta Authentication. #### 🐛 Bug Fixes - **misc**: Fix subscription plan tag display, reorder AppTheme and Locale to fix modal i18n, revert jose to ^5 to fix auth issue on desktop. #### 💄 Styles - **misc**: Open new topic by tap Just Chat again, support Minimax T2I models. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **misc**: Add support for Okta Authentication, closes [lobehub#8547](https://github.com/jaworldwideorg/OneJA-Bot/issues/8547) ([67abdfe](67abdfe)) #### What's fixed * **misc**: Fix subscription plan tag display, closes [lobehub#8599](https://github.com/jaworldwideorg/OneJA-Bot/issues/8599) ([2a3754a](2a3754a)) * **misc**: Reorder AppTheme and Locale to fix modal i18n, closes [lobehub#8600](https://github.com/jaworldwideorg/OneJA-Bot/issues/8600) ([3264cf2](3264cf2)) * **misc**: Revert jose to ^5 to fix auth issue on desktop, closes [lobehub#8603](https://github.com/jaworldwideorg/OneJA-Bot/issues/8603) ([57118b0](57118b0)) #### Styles * **misc**: Open new topic by tap Just Chat again, closes [lobehub#8426](https://github.com/jaworldwideorg/OneJA-Bot/issues/8426) ([018ca75](018ca75)) * **misc**: Support Minimax T2I models, closes [lobehub#8583](https://github.com/jaworldwideorg/OneJA-Bot/issues/8583) ([f8a01aa](f8a01aa)) </details> <div align="right"> [](#readme-top) </div>
### [Version 1.105.3](lobehub/lobe-chat@v1.105.2...v1.105.3) <sup>Released on **2025-07-29**</sup> #### 🐛 Bug Fixes - **misc**: Fix subscription plan tag display. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Fix subscription plan tag display, closes [lobehub#8599](lobehub#8599) ([e37ee42](lobehub@e37ee42)) </details> <div align="right"> [](#readme-top) </div>
### [Version 1.105.3](lobehub/lobe-chat@v1.105.2...v1.105.3) <sup>Released on **2025-07-29**</sup> #### 🐛 Bug Fixes - **misc**: Fix subscription plan tag display. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Fix subscription plan tag display, closes [lobehub#8599](lobehub#8599) ([2a3754a](lobehub@2a3754a)) </details> <div align="right"> [](#readme-top) </div>
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
📝 补充信息 | Additional Information
Summary by Sourcery
Integrate subscriptionPlan into user store and display logic
Bug Fixes:
Enhancements: