Скрыто предложение Enterprise: бесплатная редакция показывается как сборка с открытым кодом

Claude-Session: https://claude.ai/code/session_01BFaqS6mH9sa99RWghq2j46
Этот коммит содержится в:
2026-10-06 02:19:34 +09:00
родитель 0134f36ce6
Коммит 3ee8fdfa94
2 изменённых файлов: 5 добавлений и 3 удалений
+1 -1
Просмотреть файл
@@ -176,7 +176,7 @@ export function TopBar() {
</> </>
)} )}
{edition !== 'enterprise' && ( {edition === 'community' && (
<> <>
<DropdownMenuItem onClick={() => setUpsellOpen(true)}> <DropdownMenuItem onClick={() => setUpsellOpen(true)}>
<Sparkles className="mr-2 h-4 w-4" /> <Sparkles className="mr-2 h-4 w-4" />
+4 -2
Просмотреть файл
@@ -20,11 +20,13 @@ interface AccountState {
export const useAccountStore = create<AccountState>()((set, get) => ({ export const useAccountStore = create<AccountState>()((set, get) => ({
permissions: [], permissions: [],
edition: 'community', edition: 'oss',
locale: 'en', locale: 'en',
// StackWorks: Enterprise не покупаем, поэтому бесплатную редакцию показываем как сборку
// с открытым кодом - закрытые пункты скрыты, окно с предложением Enterprise не появляется.
setAccountInfo: (permissions, edition, locale) => { setAccountInfo: (permissions, edition, locale) => {
set({ permissions, edition, locale }); set({ permissions, edition: edition === 'community' ? 'oss' : edition, locale });
}, },
hasPermission: (perm) => { hasPermission: (perm) => {