-
-
Notifications
You must be signed in to change notification settings - Fork 10k
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
🐛 fix: login button not show on user panel #2496
Conversation
@cy948 is attempting to deploy a commit to the LobeHub Team on Vercel. A member of the Team first needs to authorize it. |
👍 @cy948 Thank you for raising your pull request and contributing to our Community |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2496 +/- ##
==========================================
- Coverage 93.24% 93.23% -0.02%
==========================================
Files 323 323
Lines 19466 19522 +56
Branches 2290 1458 -832
==========================================
+ Hits 18151 18201 +50
- Misses 1315 1321 +6 ☔ View full report in Codecov by Sentry. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
❤️ Great PR @cy948 ❤️ 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 0.159.6](v0.159.5...v0.159.6) <sup>Released on **2024-05-14**</sup> #### 🐛 Bug Fixes - **misc**: Login button not show on user panel. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Login button not show on user panel, closes [#2496](#2496) ([39637fb](39637fb)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
🎉 This PR is included in version 0.159.6 🎉 The release is available on: Your semantic-release bot 📦🚀 |
* 🐛 fix: show login button when enable nextauth * 🐛 fix: wrong navigate after logout
### [Version 0.159.6](lobehub/lobe-chat@v0.159.5...v0.159.6) <sup>Released on **2024-05-14**</sup> #### 🐛 Bug Fixes - **misc**: Login button not show on user panel. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Login button not show on user panel, closes [lobehub#2496](lobehub#2496) ([39637fb](lobehub@39637fb)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
### [Version 1.39.2](v1.39.1...v1.39.2) <sup>Released on **2024-05-15**</sup> #### 🐛 Bug Fixes - **misc**: Fix agent config on page init, fix retry issue when hide page, login button not show on user panel, refresh model config form & mobile footer button lost. #### 💄 Styles - **misc**: Add GPT-4o model, fix scroll and expand, update perplexity models, updates 01.AI model list. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Fix agent config on page init, closes [lobehub#2506](https://github.com/bentwnghk/lobe-chat/issues/2506) ([90e742d](90e742d)) * **misc**: Fix retry issue when hide page, closes [lobehub#2503](https://github.com/bentwnghk/lobe-chat/issues/2503) ([24489bc](24489bc)) * **misc**: Login button not show on user panel, closes [lobehub#2496](https://github.com/bentwnghk/lobe-chat/issues/2496) ([39637fb](39637fb)) * **misc**: Refresh model config form & mobile footer button lost, closes [lobehub#2318](https://github.com/bentwnghk/lobe-chat/issues/2318) [lobehub#2319](https://github.com/bentwnghk/lobe-chat/issues/2319) [lobehub#1811](https://github.com/bentwnghk/lobe-chat/issues/1811) ([eadcefc](eadcefc)) #### Styles * **misc**: Add GPT-4o model, closes [lobehub#2481](https://github.com/bentwnghk/lobe-chat/issues/2481) ([ae6a03f](ae6a03f)) * **misc**: Fix scroll and expand, closes [lobehub#2470](https://github.com/bentwnghk/lobe-chat/issues/2470) ([8b1202a](8b1202a)) * **misc**: Update perplexity models, closes [lobehub#2469](https://github.com/bentwnghk/lobe-chat/issues/2469) ([488cde7](488cde7)) * **misc**: Updates 01.AI model list, closes [lobehub#2471](https://github.com/bentwnghk/lobe-chat/issues/2471) ([f28711a](f28711a)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
* 🐛 fix: show login button when enable nextauth * 🐛 fix: wrong navigate after logout
### [Version 0.159.6](lobehub/lobe-chat@v0.159.5...v0.159.6) <sup>Released on **2024-05-14**</sup> #### 🐛 Bug Fixes - **misc**: Login button not show on user panel. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Login button not show on user panel, closes [lobehub#2496](lobehub#2496) ([39637fb](lobehub@39637fb)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
src/features/User/UserPanel/PanelContent.tsx
:改为从 userStore 中读取enableAuth
,判断是否显示登陆 button;src/features/User/UserPanel/PanelContent.tsx
:handleSignOut 方法中添加了判断,不将 nextauth 用户重定向到 Clerk 登陆页面;src/features/User/__tests__/PanelContent.test.tsx
:同步更新 mock 中的enableAuth
;📝 补充信息 | Additional Information