mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-22 16:25:58 +00:00
fmt(js): npm run fix on merge (#68462)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
94c944363c
commit
0155c09374
2 changed files with 4 additions and 0 deletions
|
|
@ -222,6 +222,7 @@ describe('deriveBillingView', () => {
|
|||
]
|
||||
})
|
||||
)
|
||||
|
||||
const subscription = view.accountRows.find(row => row.id === 'subscription')
|
||||
|
||||
expect(subscription?.description).toBe('Paid models need a subscription — pick a plan to start it on the portal.')
|
||||
|
|
@ -259,6 +260,7 @@ describe('deriveBillingView', () => {
|
|||
]
|
||||
})
|
||||
)
|
||||
|
||||
const subscription = view.accountRows.find(row => row.id === 'subscription')
|
||||
|
||||
expect(subscription?.chips).toEqual([
|
||||
|
|
@ -272,6 +274,7 @@ describe('deriveBillingView', () => {
|
|||
okBilling(todayBillingState),
|
||||
okSubscription({ ...todaySubscriptionState, can_change_plan: false, context: 'personal' })
|
||||
)
|
||||
|
||||
const team = deriveBillingView(okBilling(todayBillingState), okSubscription(todaySubscriptionState))
|
||||
|
||||
expect(member.accountRows.find(row => row.id === 'subscription')?.chips).toBeUndefined()
|
||||
|
|
|
|||
|
|
@ -374,6 +374,7 @@ function OverviewScreen({ onClose, onPatch, overlay, t }: ScreenProps) {
|
|||
// Admin/owner on a personal paid plan can change it in-terminal; otherwise the
|
||||
// portal enforces who can act (members) / starting a new sub needs a card.
|
||||
const canChange = s.can_change_plan && !isFree
|
||||
|
||||
// On Free the catalog renders inline; picking a plan hands off to the portal,
|
||||
// where starting a subscription needs card capture + checkout.
|
||||
const freePlans = isFree
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue