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

๐Ÿ’„ style: show sso providers for next-auth in profile page #5303

Merged
merged 13 commits into from
Feb 19, 2025

Conversation

cy948
Copy link
Contributor

@cy948 cy948 commented Jan 5, 2025

๐Ÿ’ป ๅ˜ๆ›ด็ฑปๅž‹ | Change Type

  • โœจ feat
  • ๐Ÿ› fix
  • โ™ป๏ธ refactor
  • ๐Ÿ’„ style
  • ๐Ÿ‘ท build
  • โšก๏ธ perf
  • ๐Ÿ“ docs
  • ๐Ÿ”จ chore

๐Ÿ”€ ๅ˜ๆ›ด่ฏดๆ˜Ž | Description of Change

  • ๐Ÿ’„ src/app/(main)/profile/(home)/Client.tsx: ๅœจ proflie ้กตไธญๆทปๅŠ  SSOๆไพ›ๅ•†ๅˆ—่กจ๏ผ›
  • ๐Ÿ’„ src/app/(main)/profile/(home)/features/SSOProvidersList/AuthIcons.tsx๏ผšไปŽ lobe-ui ไธญๅฏผๅ…ฅ SSO ๆไพ›ๅ•†็š„ icons
  • src/app/(main)/profile/(home)/features/SSOProvidersList/index.tsx
    • ๆธฒๆŸ“็”จๆˆทๅทฒ็ป‘ๅฎš็š„ SSO ๆไพ›ๅ•†ๅˆ—่กจ
    • ๅ…่ฎธ็”จๆˆท่งฃ็ป‘ SSO ๆไพ›ๅ•†๏ผŒๅนถ่ฟ›่กŒๆ็คบ
  • ๐Ÿ—ƒ๏ธ src/database/server/models/user.ts๏ผšๅฎšไน‰่Žทๅ– SSO ๆไพ›ๅ•†ๅˆ—่กจ็š„ๆŸฅ่ฏข่ฏญๅฅ
  • ๐ŸŒ src/locales/default/auth.ts๏ผšๅฎšไน‰ๅ‰็ซฏ้กต้ข็š„็ฟป่ฏ‘
  • ๐ŸŒ **/auth.json๏ผš็ฟป่ฏ‘
    ๆœๅŠกๅฑ‚ๅ˜ๆ›ด๏ผš
  • src/server/routers/lambda/user.ts
  • src/server/routers/lambda/user.ts
  • src/services/user/_deprecated.ts
  • src/services/user/client.ts
  • src/services/user/server.ts
  • src/services/user/type.ts
  • src/types/user/index.ts

๐Ÿ“ ่กฅๅ……ไฟกๆฏ | Additional Information

  • Preview

image

Copy link

vercel bot commented Jan 5, 2025

@cy948 is attempting to deploy a commit to the LobeHub Team on Vercel.

A member of the Team first needs to authorize it.

@lobehubbot
Copy link
Member

๐Ÿ‘ @cy948

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.
้žๅธธๆ„Ÿ่ฐขๆ‚จๆๅ‡บๆ‹‰ๅ–่ฏทๆฑ‚ๅนถไธบๆˆ‘ไปฌ็š„็คพๅŒบๅšๅ‡บ่ดก็Œฎ๏ผŒ่ฏท็กฎไฟๆ‚จๅทฒ็ป้ตๅพชไบ†ๆˆ‘ไปฌ็š„่ดก็ŒฎๆŒ‡ๅ—๏ผŒๆˆ‘ไปฌไผšๅฐฝๅฟซๅฎกๆŸฅๅฎƒใ€‚
ๅฆ‚ๆžœๆ‚จ้‡ๅˆฐไปปไฝ•้—ฎ้ข˜๏ผŒ่ฏท้šๆ—ถไธŽๆˆ‘ไปฌ่”็ณปใ€‚

@cy948 cy948 force-pushed the feat/profile-sso-providers branch from 4c3e9c6 to ff1eea3 Compare January 10, 2025 11:50
@cy948 cy948 force-pushed the feat/profile-sso-providers branch 2 times, most recently from 6f02251 to dc0a877 Compare January 25, 2025 03:57
@cy948 cy948 force-pushed the feat/profile-sso-providers branch 2 times, most recently from 4591699 to 5300f94 Compare February 8, 2025 08:56
@cy948 cy948 marked this pull request as ready for review February 8, 2025 10:26
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. ๐ŸŒ  Feature Request New feature or request | ็‰นๆ€งไธŽๅปบ่ฎฎ labels Feb 8, 2025
Copy link

codecov bot commented Feb 8, 2025

Codecov Report

Attention: Patch coverage is 35.84906% with 34 lines in your changes missing coverage. Please review.

Project coverage is 91.65%. Comparing base (ddbe482) to head (b080ecb).
Report is 48 commits behind head on main.

Files with missing lines Patch % Lines
src/database/server/models/user.ts 45.83% 13 Missing โš ๏ธ
src/services/user/server.ts 0.00% 11 Missing โš ๏ธ
src/services/user/_deprecated.ts 44.44% 5 Missing โš ๏ธ
src/services/user/client.ts 44.44% 5 Missing โš ๏ธ
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5303      +/-   ##
==========================================
- Coverage   91.69%   91.65%   -0.04%     
==========================================
  Files         681      681              
  Lines       62025    62172     +147     
  Branches     3080     3083       +3     
==========================================
+ Hits        56872    56982     +110     
- Misses       5153     5190      +37     
Flag Coverage ฮ”
app 91.65% <35.84%> (-0.04%) โฌ‡๏ธ
server 97.56% <45.83%> (-0.35%) โฌ‡๏ธ

Flags with carried forward coverage won't be shown. Click here to find out more.

โ˜” View full report in Codecov by Sentry.
๐Ÿ“ข Have feedback on the report? Share it here.

@arvinxx
Copy link
Contributor

arvinxx commented Feb 13, 2025

่ฟ™ไธช Ready ไบ†ไนˆ๏ผŸ

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. ๐Ÿ‘ฏ๐Ÿ‘ญ๐Ÿป๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘๐Ÿ‘ซ๐Ÿง‘๐Ÿฟโ€๐Ÿคโ€๐Ÿง‘๐Ÿป๐Ÿ‘ฉ๐Ÿพโ€๐Ÿคโ€๐Ÿ‘จ๐Ÿฟ๐Ÿ‘ฌ๐Ÿฟ


Is this Ready?

@cy948
Copy link
Contributor Author

cy948 commented Feb 13, 2025

่ฟ™ไธช Ready ไบ†ไนˆ๏ผŸ

ready ไบ†๏ผŒๅชๆ˜ฏๅฟ˜ๆ”นๆ ‡้ข˜ไบ†๐Ÿ˜‚

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. ๐Ÿ‘ฏ๐Ÿ‘ญ๐Ÿป๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘๐Ÿ‘ซ๐Ÿง‘๐Ÿฟโ€๐Ÿคโ€๐Ÿง‘๐Ÿป๐Ÿ‘ฉ๐Ÿพโ€๐Ÿคโ€๐Ÿ‘จ๐Ÿฟ๐Ÿ‘ฌ๐Ÿฟ


Is this Ready?

I just forgot to change the title ๐Ÿ˜‚

@cy948 cy948 changed the title ๐Ÿšง feat: show sso providers for next-auth in profile page โšก๏ธ feat: show sso providers for next-auth in profile page Feb 13, 2025
@cy948 cy948 changed the title โšก๏ธ feat: show sso providers for next-auth in profile page โœจ feat: show sso providers for next-auth in profile page Feb 13, 2025
Copy link

vercel bot commented Feb 15, 2025

The latest updates on your projects. Learn more about Vercel for Git โ†—๏ธŽ

Name Status Preview Comments Updated (UTC)
lobe-chat-database โœ… Ready (Inspect) Visit Preview Feb 19, 2025 4:15pm
lobe-chat-preview โœ… Ready (Inspect) Visit Preview ๐Ÿ’ฌ Add feedback Feb 19, 2025 4:15pm

@arvinxx
Copy link
Contributor

arvinxx commented Feb 15, 2025

ใ€็ฌฌไธ‰ๆ–น่ดฆๆˆท็ป‘ๅฎšใ€‘ ๆ”นไธชๅๅญ—ๅซ ใ€่ฟžๆŽฅ็š„ๅธๆˆทใ€‘ ๅง๏ผŸ

ๅ…ถไป–ๆˆ‘ๆฒก้—ฎ้ข˜ไบ†ใ€‚

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. ๐Ÿ‘ฏ๐Ÿ‘ญ๐Ÿป๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘๐Ÿ‘ซ๐Ÿง‘๐Ÿฟโ€๐Ÿคโ€๐Ÿง‘๐Ÿป๐Ÿ‘ฉ๐Ÿพโ€๐Ÿคโ€๐Ÿ‘จ๐Ÿฟ๐Ÿ‘ฌ๐Ÿฟ


[Third-party account binding] Change the name to [Connected Account], right?

@cy948
Copy link
Contributor Author

cy948 commented Feb 15, 2025

@arvinxx ๆ”นไบ† bf703df

@arvinxx
Copy link
Contributor

arvinxx commented Feb 17, 2025

@cy948

image

auth0 ็š„ๅ›พๆ ‡่ฆไผ˜ๅŒ–ไธ‹๏ผŸๅบ”่ฏฅ่ฆ็”จ Color ็š„ๅง๏ผŸ

@cy948
Copy link
Contributor Author

cy948 commented Feb 17, 2025

@arvinxx Auth0็š„ๆฒก colors https://ui.lobehub.com/components/icons/auth0

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. ๐Ÿ‘ฏ๐Ÿ‘ญ๐Ÿป๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘๐Ÿ‘ซ๐Ÿง‘๐Ÿฟโ€๐Ÿคโ€๐Ÿง‘๐Ÿป๐Ÿ‘ฉ๐Ÿพโ€๐Ÿคโ€๐Ÿ‘จ๐Ÿฟ๐Ÿ‘ฌ๐Ÿฟ


@arvinxx Auth0's colors https://ui.lobehub.com/components/icons/auth0

@arvinxx
Copy link
Contributor

arvinxx commented Feb 17, 2025

@cy948 emmm ้‚ฃๆ˜ฏไธๆ˜ฏๅบ”่ฏฅ็”จ้ป‘่‰ฒ็š„๏ผŸ็Žฐๅœจไบฎ่‰ฒไธ‹ๆ˜ฏ็™ฝ็š„็œ‹ไธๅคชๆธ…ใ€‚

ๅฆๅค–่งฃๅ†ณไธ‹ๅ†ฒ็ช๏ผŸๅ…ถไป–ๆˆ‘ๆฒก้—ฎ้ข˜ไบ†

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. ๐Ÿ‘ฏ๐Ÿ‘ญ๐Ÿป๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘๐Ÿ‘ซ๐Ÿง‘๐Ÿฟโ€๐Ÿคโ€๐Ÿง‘๐Ÿป๐Ÿ‘ฉ๐Ÿพโ€๐Ÿคโ€๐Ÿ‘จ๐Ÿฟ๐Ÿ‘ฌ๐Ÿฟ


@cy948 emmm Shouldn't it be used in black? Now it is white under the bright color and it is hard to see clearly.

Also resolve the conflict? I'm fine with the rest

@cy948 cy948 force-pushed the feat/profile-sso-providers branch from bf703df to 3a10dc2 Compare February 17, 2025 08:55
@cy948
Copy link
Contributor Author

cy948 commented Feb 17, 2025

@arvinxx auth0ๅ’Œgithub็š„้žๅฝฉ่‰ฒๅ›พๆ ‡ๅœจๆต…่‰ฒๆจกๅผไธ‹ๆ˜ฏ็ฐ่‰ฒ็š„ใ€‚auth0 ๅฏไปฅ่ฎฉ lobeicons ๅคšๅŠ ไธชๅฝฉ่‰ฒ็š„๏ผŒไฝ† github ๅฐฑๆฒกๅฝฉ่‰ฒ็š„ๅฅฝๅƒใ€‚
image

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. ๐Ÿ‘ฏ๐Ÿ‘ญ๐Ÿป๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘๐Ÿ‘ซ๐Ÿง‘๐Ÿฟโ€๐Ÿคโ€๐Ÿง‘๐Ÿป๐Ÿ‘ฉ๐Ÿพโ€๐Ÿคโ€๐Ÿ‘จ๐Ÿฟ๐Ÿ‘ฌ๐Ÿฟ


@arvinxx The non-colored icons of auth0 and github are gray in light-color mode. auth0 can add more color to lobeicons, but github doesn't seem to have color.
image

@arvinxx arvinxx changed the title โœจ feat: show sso providers for next-auth in profile page ๐Ÿ’„ style: show sso providers for next-auth in profile page Feb 19, 2025
@arvinxx arvinxx merged commit dd61bce into lobehub:main Feb 19, 2025
8 of 11 checks passed
@lobehubbot
Copy link
Member

โค๏ธ 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.
้กน็›ฎ็š„ๆˆ้•ฟ็ฆปไธๅผ€็”จๆˆทๅ้ฆˆๅ’Œ่ดก็Œฎ๏ผŒๆ„Ÿ่ฐขๆ‚จ็š„่ดก็Œฎ! ๅฆ‚ๆžœๆ‚จๅฏน LobeHub ๅผ€ๅ‘่€…็คพๅŒบๆ„Ÿๅ…ด่ถฃ๏ผŒ่ฏทๅŠ ๅ…ฅๆˆ‘ไปฌ็š„ discord๏ผŒ็„ถๅŽ็งไฟก @arvinxx ๆˆ– @canisminor1990ใ€‚ไป–ไปฌไผš้‚€่ฏทๆ‚จๅŠ ๅ…ฅๆˆ‘ไปฌ็š„็งๅฏ†ๅผ€ๅ‘่€…้ข‘้“ใ€‚ๆˆ‘ไปฌๅฐ†ไผš่ฎจ่ฎบๅ…ณไบŽ Lobe Chat ็š„ๅผ€ๅ‘๏ผŒๅˆ†ไบซๅ’Œ่ฎจ่ฎบๅ…จ็ƒ่Œƒๅ›ดๅ†…็š„ AI ๆถˆๆฏใ€‚

github-actions bot pushed a commit that referenced this pull request Feb 19, 2025
### [Version&nbsp;1.61.5](v1.61.4...v1.61.5)
<sup>Released on **2025-02-19**</sup>

#### ๐Ÿ’„ Styles

- **misc**: Show sso providers for next-auth in profile page.

<br/>

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

#### Styles

* **misc**: Show sso providers for next-auth in profile page, closes [#5303](#5303) ([dd61bce](dd61bce))

</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 1.61.5 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€

github-actions bot pushed a commit to bentwnghk/lobe-chat that referenced this pull request Feb 19, 2025
### [Version&nbsp;1.102.1](v1.102.0...v1.102.1)
<sup>Released on **2025-02-19**</sup>

#### ๐Ÿ’„ Styles

- **misc**: Show sso providers for next-auth in profile page.

<br/>

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

#### Styles

* **misc**: Show sso providers for next-auth in profile page, closes [lobehub#5303](https://github.com/bentwnghk/lobe-chat/issues/5303) ([dd61bce](dd61bce))

</details>

<div align="right">

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

</div>
@cy948 cy948 deleted the feat/profile-sso-providers branch February 21, 2025 09:39
likaiqiang pushed a commit to likaiqiang/lobe-chat that referenced this pull request Feb 26, 2025
* โœจ feat: add sso fetcher in services

* ๐Ÿšง wip: provider list

* โ™ป๏ธ refactor: change db operation

* โœจ feat: support unlink sso providers

* ๐ŸŽจ style: make popconfirm topright

* ๐ŸŒ i18n: add zh-CN as gen source

* ๐Ÿ’„ style: use Avatar wrap AuthIcons

* ๐Ÿ’„ style: use modal

* โ™ป๏ธ refactor: adapt to variants mode

* ๐ŸŒ i18n: auth uis

* โœ… refactor: pass lint test

* ๐ŸŒ i18n: change title

* ๐Ÿ› fix: auth0 & github not seen in light mode
likaiqiang pushed a commit to likaiqiang/lobe-chat that referenced this pull request Feb 26, 2025
### [Version&nbsp;1.61.5](lobehub/lobe-chat@v1.61.4...v1.61.5)
<sup>Released on **2025-02-19**</sup>

#### ๐Ÿ’„ Styles

- **misc**: Show sso providers for next-auth in profile page.

<br/>

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

#### Styles

* **misc**: Show sso providers for next-auth in profile page, closes [lobehub#5303](lobehub#5303) ([dd61bce](lobehub@dd61bce))

</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
๐ŸŒ  Feature Request New feature or request | ็‰นๆ€งไธŽๅปบ่ฎฎ released size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants