Skip to content

An open-source, faster Devin alternative

TypeScript

web: remove Billing from sidebar (already in account menu)

Mohamed Habib via Computer1e987c831c60
diff --git a/web/src/components/app-shell-nav.ts b/web/src/components/app-shell-nav.ts
index 3722c571..74b856d2 100644
--- a/web/src/components/app-shell-nav.ts
+++ b/web/src/components/app-shell-nav.ts
@@ -6,7 +6,6 @@ import {
BrainCircuit,
CalendarClock,
Computer,
- CreditCard,
Database,
FolderKanban,
KeySquare,
@@ -138,7 +137,6 @@ export function managedAgentsNav(options: {
? [{ to: '/computer', label: 'Computer', icon: Computer }]
: []),
{ to: '/automations', label: 'Automations', icon: FolderKanban },
- { to: '/billing', label: 'Billing', icon: CreditCard },
],
})
}
diff --git a/web/src/components/app-shell.test.ts b/web/src/components/app-shell.test.ts
index f79e5766..f93cdb43 100644
--- a/web/src/components/app-shell.test.ts
+++ b/web/src/components/app-shell.test.ts
@@ -14,7 +14,7 @@ describe('managed agents navigation', () => {
computerEnabled: true,
})
expect(nav.map((group) => group.items.map((item) => item.label))).toEqual([
- ['Computer', 'Automations', 'Billing'],
+ ['Computer', 'Automations'],
['Connections'],
])
expect(nav[0]?.items[0]).toMatchObject({
@@ -34,13 +34,13 @@ describe('managed agents navigation', () => {
managedAgentsNav({ ...defaults, computerEnabled: true }).map((group) =>
group.items.map((item) => item.label),
),
- ).toEqual([['Computer', 'Automations', 'Billing'], ['Connections']])
+ ).toEqual([['Computer', 'Automations'], ['Connections']])
})
it('hides the computer from organizations without it (rollout flag)', () => {
expect(
managedAgentsNav(defaults)[0]?.items.map((item) => item.label),
- ).toEqual(['Automations', 'Billing'])
+ ).toEqual(['Automations'])
})
it('shows project navigation only after a project is selected', () => {