-
Notifications
You must be signed in to change notification settings - Fork 43
Feat/sidebar adjustments #1743
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/sidebar adjustments #1743
Changes from all commits
a0f8b57
1158b2a
4154fa7
f01ccc5
413c444
bde54f0
e03c935
cc91ce6
97dbced
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -1,10 +1,15 @@ | ||||||||||||||
import { fetchCurrentTeam, isProPlan } from "@/services/teams"; | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainConfirm barrel exports exist for Importing both Run from repo root: 🏁 Script executed: #!/bin/bash
# Verify exports in services/teams
rg -nP 'export\s+(?:\{[^}]*\}|const|function|type|interface)\s+isProPlan|fetchCurrentTeam' -- apps/studio.giselles.ai/services
rg -nP 'from\s+"@/services/teams"' -C2 Length of output: 13617 Add missing barrel exports in services/teams It looks like Please update --- a/apps/studio.giselles.ai/services/teams/index.ts
+++ b/apps/studio.giselles.ai/services/teams/index.ts
export { fetchCurrentTeam } from "./fetch-current-team";
+export { isProPlan } from "./utils";
+export { fetchUserTeams } from "./fetch-user-teams"; • Verify that 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
|
||||||||||||||
import { getAccountInfo } from "../(main)/settings/account/actions"; | ||||||||||||||
|
||||||||||||||
export async function getSidebarData() { | ||||||||||||||
const accountInfo = await getAccountInfo(); | ||||||||||||||
const currentTeam = await fetchCurrentTeam(); | ||||||||||||||
const isPro = isProPlan(currentTeam); | ||||||||||||||
|
||||||||||||||
return { | ||||||||||||||
displayName: accountInfo.displayName ?? undefined, | ||||||||||||||
email: accountInfo.email ?? undefined, | ||||||||||||||
avatarUrl: accountInfo.avatarUrl ?? undefined, | ||||||||||||||
planName: isPro ? "Pro plan" : "Free plan", | ||||||||||||||
}; | ||||||||||||||
} |
Uh oh!
There was an error while loading. Please reload this page.