feat(web): 工作区侧栏 - 账号容量进度与签到加油站
头像上方展示已用/剩余/总容量,积分开启且未领取时固定显示品牌加油站卡片,当天领取后消失。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
21e7dbb2b8
commit
67b53b45e4
9 files changed
+346
-34
No files matched your search
@@ -0,0 +1,12 @@
|
||||
export function shouldShowSidebarCheckin(input: {
|
||||
creditsEnabled?: boolean;
|
||||
checkinBonusMicrocredits?: number | null;
|
||||
checkedInToday?: boolean;
|
||||
}) {
|
||||
return Boolean(input.creditsEnabled && (input.checkinBonusMicrocredits || 0) > 0 && !input.checkedInToday);
|
||||
}
|
||||
|
||||
export function sidebarCheckinTitle(brandName: string) {
|
||||
const name = brandName.trim() || "影策";
|
||||
return `${name}加油站`;
|
||||
}
|
||||
Reference in new issue
Block a user