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: refactor the setting storage from localStorage to indexedDB #1180

Merged
merged 11 commits into from
Jan 30, 2024

Conversation

arvinxx
Copy link
Contributor

@arvinxx arvinxx commented Jan 29, 2024

💻 变更类型 | Change Type

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

🔀 变更说明 | Description of Change

改造 globalStore 获取数据方式,以支持 #913#1173

📝 补充信息 | Additional Information

refs:

Copy link

vercel bot commented Jan 29, 2024

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

Name Status Preview Comments Updated (UTC)
lobe-chat ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 30, 2024 2:25pm

@arvinxx arvinxx marked this pull request as draft January 29, 2024 12:34
@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.
非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。
如果您遇到任何问题,请随时与我们联系。

Copy link

codecov bot commented Jan 30, 2024

Codecov Report

Attention: Patch coverage is 86.14865% with 82 lines in your changes missing coverage. Please review.

Project coverage is 91.33%. Comparing base (17ec1eb) to head (41a41d5).
Report is 1525 commits behind head on main.

Files with missing lines Patch % Lines
src/database/models/user.ts 51.85% 26 Missing ⚠️
src/store/global/slices/common/action.ts 43.24% 21 Missing ⚠️
src/database/core/db.ts 63.41% 15 Missing ⚠️
src/services/user.ts 70.96% 9 Missing ⚠️
...store/global/slices/settings/selectors/settings.ts 91.37% 5 Missing ⚠️
src/store/global/slices/preference/action.ts 96.00% 3 Missing ⚠️
.../global/slices/settings/selectors/modelProvider.ts 96.87% 2 Missing ⚠️
src/store/session/slices/agent/action.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1180      +/-   ##
==========================================
- Coverage   91.54%   91.33%   -0.21%     
==========================================
  Files         175      184       +9     
  Lines        8583     8849     +266     
  Branches     1057     1070      +13     
==========================================
+ Hits         7857     8082     +225     
- Misses        726      767      +41     

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

@arvinxx arvinxx changed the title ✨ feat: support custom agent config ♻️ refactor: refactor the setting storage from localStorage to indexedDB Jan 30, 2024
@arvinxx arvinxx marked this pull request as ready for review January 30, 2024 14:37
@arvinxx arvinxx merged commit 615e796 into main Jan 30, 2024
8 of 10 checks passed
@arvinxx arvinxx deleted the feat/refactor-settings branch January 30, 2024 14:38
@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 Jan 30, 2024
### [Version 0.122.3](v0.122.2...v0.122.3)
<sup>Released on **2024-01-30**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor the setting storage from localStorage to indexedDB.

<br/>

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

#### Code refactoring

* **misc**: Refactor the setting storage from localStorage to indexedDB, closes [#1180](#1180) ([615e796](615e796))

</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.122.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit to bentwnghk/lobe-chat that referenced this pull request Jan 31, 2024
### [Version&nbsp;1.4.2](v1.4.1...v1.4.2)
<sup>Released on **2024-01-31**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor the setting storage from localStorage to indexedDB.

#### 🐛 Bug Fixes

- **misc**: Fix plugin gateway auth.

<br/>

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

#### Code refactoring

* **misc**: Refactor the setting storage from localStorage to indexedDB, closes [lobehub#1180](https://github.com/bentwnghk/lobe-chat/issues/1180) ([615e796](615e796))

#### What's fixed

* **misc**: Fix plugin gateway auth, closes [lobehub#1195](https://github.com/bentwnghk/lobe-chat/issues/1195) ([2184167](2184167))

</details>

<div align="right">

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

</div>
miroshar-success added a commit to miroshar-success/OpenAI_Integraion_platform that referenced this pull request Apr 5, 2024
### [Version&nbsp;0.122.3](lobehub/lobe-chat@v0.122.2...v0.122.3)
<sup>Released on **2024-01-30**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor the setting storage from localStorage to indexedDB.

<br/>

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

#### Code refactoring

* **misc**: Refactor the setting storage from localStorage to indexedDB, closes [#1180](lobehub/lobe-chat#1180) ([615e796](lobehub/lobe-chat@615e796))

</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.

2 participants