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: session group #1126

Merged
merged 2 commits into from
Jan 22, 2024
Merged

♻️ refactor: session group #1126

merged 2 commits into from
Jan 22, 2024

Conversation

arvinxx
Copy link
Contributor

@arvinxx arvinxx commented Jan 22, 2024

💻 变更类型 | Change Type

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

🔀 变更说明 | Description of Change

基于 IndexedDB 优化 sessionGroup 实现

📝 补充信息 | Additional Information

Copy link

vercel bot commented Jan 22, 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 22, 2024 8:21am

@arvinxx arvinxx changed the base branch from main to feat/group January 22, 2024 08:14
@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 22, 2024

Codecov Report

Attention: Patch coverage is 67.10526% with 125 lines in your changes missing coverage. Please review.

Project coverage is 88.37%. Comparing base (b5924bd) to head (fb78e29).

Files with missing lines Patch % Lines
src/database/models/sessionGroup.ts 47.61% 33 Missing ⚠️
src/database/models/session.ts 34.21% 25 Missing ⚠️
src/services/session.ts 66.66% 20 Missing ⚠️
src/store/session/slices/sessionGroup/action.ts 65.95% 16 Missing ⚠️
src/store/global/slices/common/action.ts 14.28% 12 Missing ⚠️
src/store/session/slices/session/action.ts 27.27% 8 Missing ⚠️
src/store/global/store.ts 14.28% 6 Missing ⚠️
src/store/session/slices/sessionGroup/selectors.ts 66.66% 5 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff               @@
##           feat/group    #1126      +/-   ##
==============================================
- Coverage       88.87%   88.37%   -0.50%     
==============================================
  Files             171      175       +4     
  Lines            8298     8493     +195     
  Branches          965      964       -1     
==============================================
+ Hits             7375     7506     +131     
- Misses            923      987      +64     

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

@arvinxx arvinxx merged commit 6222e8d into feat/group Jan 22, 2024
6 of 8 checks passed
@arvinxx arvinxx deleted the refactor/group branch January 22, 2024 08:41
@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 消息。

arvinxx added a commit that referenced this pull request Jan 23, 2024
* ♻️ refactor: refactor with db

* 🎨 chore: improve code
arvinxx added a commit that referenced this pull request Jan 24, 2024
* ✨ feat: implement custom session grouping (#1045)

* ✨ feat: Add session group manager

* ✅ test: update test

* ♻️ refactor: refactor session group with db mode (#1126)

* ♻️ refactor: refactor with db

* 🎨 chore: improve code

* 🔥 chore: clean code

* 🗃️ fix: add migration to new data structure

* 📝 docs: add a document of how to implement a complete feature (#1120)

* Create Database.zh-CN.md

* Update Database.zh-CN.md

* 📝 docs: update docs

* Update Database.zh-CN.md

* ✅ test: add test for the database

* ✅ test: add test for the database

* ✅ test: update test

* 🐛 fix: fix remove session group bug

* ✅ test: fix test

* ✅ test: add test for common action

* 🎨 chore: clear console

* 🐛 fix: support clear all sessionGroups

* ✅ test: add test for sessionService

* 🐛 fix: fix agent import

* 📝 docs: Update Feature-Development.zh-CN.md

* 🌐 style: add i18n

* 🚸 style: add manager for default group

---------

Co-authored-by: Justin3go <[email protected]>
Co-authored-by: arvinxx <[email protected]>
github-actions bot pushed a commit that referenced this pull request Jan 24, 2024
## [Version&nbsp;0.121.0](v0.120.6...v0.121.0)
<sup>Released on **2024-01-24**</sup>

#### ✨ Features

- **misc**: Add session group manager.

<br/>

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

#### What's improved

* **misc**: Add session group manager, closes [#1055](#1055) [#1045](#1045) [#1126](#1126) [#1120](#1120) ([e3281fc](e3281fc))

</details>

<div align="right">

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

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

#### ✨ Features

- **misc**: Add session group manager.

#### 🐛 Bug Fixes

- **misc**: Fix default, fix rename.

<br/>

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

#### What's improved

* **misc**: Add session group manager, closes [lobehub#1055](https://github.com/bentwnghk/lobe-chat/issues/1055) [lobehub#1045](https://github.com/bentwnghk/lobe-chat/issues/1045) [lobehub#1126](https://github.com/bentwnghk/lobe-chat/issues/1126) [lobehub#1120](https://github.com/bentwnghk/lobe-chat/issues/1120) ([e3281fc](e3281fc))

#### What's fixed

* **misc**: Fix default ([82cbbde](82cbbde))
* **misc**: Fix rename ([5680bd7](5680bd7))

</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.121.0](lobehub/lobe-chat@v0.120.6...v0.121.0)
<sup>Released on **2024-01-24**</sup>

#### ✨ Features

- **misc**: Add session group manager.

<br/>

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

#### What's improved

* **misc**: Add session group manager, closes [#1055](lobehub/lobe-chat#1055) [#1045](lobehub/lobe-chat#1045) [#1126](lobehub/lobe-chat#1126) [#1120](lobehub/lobe-chat#1120) ([e3281fc](lobehub/lobe-chat@e3281fc))

</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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants