mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-07 01:09:54 +08:00
feat(core): add team badge to user info menu (#12144)
close AF-2545 fix(core): go to workspace command does not work using CMDK feat(core): add team badge to user info  <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a redesigned user info section in the sidebar, including enhanced account details, cloud and AI usage indicators, and team workspace listing with improved navigation. - Workspace selector now supports controlled open/close state for smoother sidebar integration. - Team workspaces are grouped and displayed with role-based badges and tooltips. - Added new localization for team roles and workspace tooltips. - **Improvements** - Updated theming and styling for user plan buttons and usage indicators for a more consistent look. - Sidebar user info UI is now more modular and responsive. - **Bug Fixes** - Improved error handling and loading states for quota and usage displays. - **Chores** - Refactored internal state management and code structure for better maintainability. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
"el-GR": 95,
|
||||
"en": 100,
|
||||
"es-AR": 95,
|
||||
"es-CL": 97,
|
||||
"es-CL": 96,
|
||||
"es": 95,
|
||||
"fa": 95,
|
||||
"fr": 95,
|
||||
|
||||
@@ -6892,6 +6892,26 @@ export function useAFFiNEI18N(): {
|
||||
* `Admin panel`
|
||||
*/
|
||||
["com.affine.workspace.cloud.account.admin"](): string;
|
||||
/**
|
||||
* `Team owner`
|
||||
*/
|
||||
["com.affine.workspace.cloud.account.team.owner"](): string;
|
||||
/**
|
||||
* `Team member`
|
||||
*/
|
||||
["com.affine.workspace.cloud.account.team.member"](): string;
|
||||
/**
|
||||
* `Multiple teams`
|
||||
*/
|
||||
["com.affine.workspace.cloud.account.team.multi"](): string;
|
||||
/**
|
||||
* `Click to open workspace`
|
||||
*/
|
||||
["com.affine.workspace.cloud.account.team.tips-1"](): string;
|
||||
/**
|
||||
* `Click to open workspace list`
|
||||
*/
|
||||
["com.affine.workspace.cloud.account.team.tips-2"](): string;
|
||||
/**
|
||||
* `Sign up/ Sign in`
|
||||
*/
|
||||
|
||||
@@ -1718,6 +1718,11 @@
|
||||
"com.affine.workspace.cloud.account.logout": "Sign out",
|
||||
"com.affine.workspace.cloud.account.settings": "Account settings",
|
||||
"com.affine.workspace.cloud.account.admin": "Admin panel",
|
||||
"com.affine.workspace.cloud.account.team.owner": "Team owner",
|
||||
"com.affine.workspace.cloud.account.team.member": "Team member",
|
||||
"com.affine.workspace.cloud.account.team.multi": "Multiple teams",
|
||||
"com.affine.workspace.cloud.account.team.tips-1": "Click to open workspace",
|
||||
"com.affine.workspace.cloud.account.team.tips-2": "Click to open workspace list",
|
||||
"com.affine.workspace.cloud.auth": "Sign up/ Sign in",
|
||||
"com.affine.workspace.cloud.description": "Sync with AFFiNE Cloud",
|
||||
"com.affine.workspace.cloud.join": "Join workspace",
|
||||
|
||||
Reference in New Issue
Block a user