Skip to content
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

♻️ refactor: user store add an auth slice #2214

Merged
merged 5 commits into from May 3, 2024
Merged

Conversation

arvinxx
Copy link
Contributor

@arvinxx arvinxx commented Apr 26, 2024

💻 变更类型 | Change Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • ⚡️ perf
  • 📝 docs

🔀 变更说明 | Description of Change

添加 auth slice,后续将 next-auth 的鉴权逻辑收集到 userStore 中

📝 补充信息 | Additional Information

refs: #2022

Copy link

vercel bot commented Apr 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lobe-chat-community 🛑 Canceled (Inspect) May 3, 2024 1:55am

@lobehubbot
Copy link
Member

👍 @arvinxx

Thank you for raising your pull request and contributing to our Community
Please make sure you have followed our contributing guidelines. We will review it as soon as possible.
If you encounter any problems, please feel free to connect with us.
非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。
如果您遇到任何问题,请随时与我们联系。

@arvinxx arvinxx marked this pull request as draft April 26, 2024 09:19
Copy link

codecov bot commented Apr 26, 2024

Codecov Report

Attention: Patch coverage is 94.75983% with 12 lines in your changes are missing coverage. Please review.

Project coverage is 92.86%. Comparing base (fa16721) to head (6134baf).
Report is 1 commits behind head on main.

Files Patch % Lines
src/store/user/slices/auth/action.ts 90.12% 8 Missing ⚠️
src/store/user/slices/sync/action.ts 95.74% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2214      +/-   ##
==========================================
- Coverage   92.87%   92.86%   -0.01%     
==========================================
  Files         292      295       +3     
  Lines       16699    16791      +92     
  Branches     1201     1940     +739     
==========================================
+ Hits        15509    15593      +84     
- Misses       1190     1198       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@arvinxx arvinxx merged commit 948b257 into main May 3, 2024
9 of 10 checks passed
@arvinxx arvinxx deleted the refactor/user-store branch May 3, 2024 01:52
@lobehubbot
Copy link
Member

❤️ 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.
项目的成长离不开用户反馈和贡献,感谢您的贡献! 如果您对 LobeHub 开发者社区感兴趣,请加入我们的 discord,然后私信 @arvinxx@canisminor1990。他们会邀请您加入我们的私密开发者频道。我们将会讨论关于 Lobe Chat 的开发,分享和讨论全球范围内的 AI 消息。

github-actions bot pushed a commit that referenced this pull request May 3, 2024
### [Version 0.152.8](v0.152.7...v0.152.8)
<sup>Released on **2024-05-03**</sup>

#### ♻ Code Refactoring

- **misc**: User store add an auth slice.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: User store add an auth slice, closes [#2214](#2214) ([948b257](948b257))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
@lobehubbot
Copy link
Member

🎉 This PR is included in version 0.152.8 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit to bentwnghk/lobe-chat that referenced this pull request May 4, 2024
### [Version&nbsp;1.32.2](v1.32.1...v1.32.2)
<sup>Released on **2024-05-04**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor Setting Layout, user store add an auth slice.

#### 🐛 Bug Fixes

- **misc**: Disabled autogenerate field icon when empty system role, Fix intercepting-routes on mobile, Fix router path in UserPanel, Fix Setings Layout, Fix undefined 'DISCORD', Test CI and Release CI, Test CI and Release CI, Test CI and Release CI, Test CI and Release CI, Test CI and Release CI.

#### 💄 Styles

- **misc**: Add user panel and refactor the next-auth, autoScroll to the fully end, improve market layout styles and mobile style, refactor setting layout and improve setting design.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Code refactoring

* **misc**: Refactor Setting Layout, closes [lobehub#2336](https://github.com/bentwnghk/lobe-chat/issues/2336) ([282082e](282082e))
* **misc**: User store add an auth slice, closes [lobehub#2214](https://github.com/bentwnghk/lobe-chat/issues/2214) ([948b257](948b257))

#### What's fixed

* **misc**: Disabled autogenerate field icon when empty system role, closes [lobehub#2076](https://github.com/bentwnghk/lobe-chat/issues/2076) ([27095f5](27095f5))
* **misc**: Fix intercepting-routes on mobile ([abe228c](abe228c))
* **misc**: Fix router path in UserPanel ([c779e02](c779e02))
* **misc**: Fix Setings Layout, closes [lobehub#2340](https://github.com/bentwnghk/lobe-chat/issues/2340) ([6a2e9a9](6a2e9a9))
* **misc**: Fix undefined 'DISCORD' ([41c70be](41c70be))
* **misc**: Test CI and Release CI ([a909afe](a909afe))
* **misc**: Test CI and Release CI ([aff22b5](aff22b5))
* **misc**: Test CI and Release CI ([1db3b59](1db3b59))
* **misc**: Test CI and Release CI ([e0c82c8](e0c82c8))
* **misc**: Test CI and Release CI ([97634ca](97634ca))

#### Styles

* **misc**: Add user panel and refactor the next-auth, closes [lobehub#2349](https://github.com/bentwnghk/lobe-chat/issues/2349) ([5cecee0](5cecee0))
* **misc**: AutoScroll to the fully end, closes [lobehub#2345](https://github.com/bentwnghk/lobe-chat/issues/2345) ([5458e98](5458e98))
* **misc**: Improve market layout styles and mobile style, closes [lobehub#2347](https://github.com/bentwnghk/lobe-chat/issues/2347) ([79b8115](79b8115))
* **misc**: Refactor setting layout and improve setting design, closes [lobehub#2344](https://github.com/bentwnghk/lobe-chat/issues/2344) ([fa16721](fa16721))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants