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

✨ feat: show sso providers for next-auth in profile page #5303

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

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 11 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 15, 2025 3:21pm
lobe-chat-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 15, 2025 3:21pm

@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

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 | 特性与建议 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