Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore: files changed app/src/components/chat/ChatNewWindowHero.tsx,app/src/components/home/__tests__

Steven Enamakele98a35fa9d36
diff --git a/app/src/components/chat/ChatNewWindowHero.tsx b/app/src/components/chat/ChatNewWindowHero.tsx
index 2b4e86114f..df3a2a80a8 100644
--- a/app/src/components/chat/ChatNewWindowHero.tsx
+++ b/app/src/components/chat/ChatNewWindowHero.tsx
@@ -9,7 +9,6 @@ import { resolveUserName } from '../../utils/userName';
import { DiscordBanner, PromotionalCreditsBanner } from '../home/HomeBanners';
import { Button } from '../ui';
-
/**
* Hero shown above the composer in the chat "new window" (empty thread) state —
* the merged Home surface. Mirrors the former Home card (greeting, connection
@@ -64,7 +63,6 @@ export default function ChatNewWindowHero() {
}
};
-
// Typewriter cycle — identical cadence to the former Home greeting.
useEffect(() => {
const activeVariant = welcomeVariants[welcomeVariantIndex] ?? '';
diff --git a/app/src/components/home/__tests__/HomeBanners.test.tsx b/app/src/components/home/__tests__/HomeBanners.test.tsx
index 5fc6d3535e..27753c24b9 100644
--- a/app/src/components/home/__tests__/HomeBanners.test.tsx
+++ b/app/src/components/home/__tests__/HomeBanners.test.tsx
@@ -3,12 +3,7 @@ import { beforeEach, describe, expect, it, vi } from 'vitest';
import { DISCORD_INVITE_URL, PRICING_URL } from '../../../utils/links';
import { openUrl } from '../../../utils/openUrl';
-import {
- DiscordBanner,
- EarlyBirdyBanner,
- PromotionalCreditsBanner,
- UsageLimitBanner,
-} from '../HomeBanners';
+import { DiscordBanner, EarlyBirdyBanner, PromotionalCreditsBanner } from '../HomeBanners';
vi.mock('../../../utils/openUrl', () => ({ openUrl: vi.fn() }));
@@ -17,37 +12,6 @@ describe('HomeBanners', () => {
vi.clearAllMocks();
});
- it('opens the billing dashboard through openUrl from the usage limit banner', () => {
- render(
- <UsageLimitBanner
- tone="warning"
- icon="⏳"
- title="Limit"
- message="Usage is capped."
- ctaLabel="Buy top-up credits"
- />
- );
-
- fireEvent.click(screen.getByRole('button', { name: 'Buy top-up credits' }));
-
- expect(openUrl).toHaveBeenCalledWith('https://tinyhumans.ai/pricing');
- });
-
- it('renders danger tone styles for UsageLimitBanner', () => {
- render(
- <UsageLimitBanner
- tone="danger"
- icon="⚠️"
- title="Out of Usage"
- message="You are out of budget."
- ctaLabel="Get a subscription"
- />
- );
- expect(screen.getByText('Out of Usage')).toBeInTheDocument();
- fireEvent.click(screen.getByRole('button', { name: 'Get a subscription' }));
- expect(openUrl).toHaveBeenCalledWith(PRICING_URL);
- });
-
it('opens the billing dashboard through openUrl from the promotional credits banner', () => {
render(<PromotionalCreditsBanner promoCredits={12} />);
diff --git a/app/src/components/notices/useAppNotices.ts b/app/src/components/notices/useAppNotices.ts
index 78c94ac713..7455a5b190 100644
--- a/app/src/components/notices/useAppNotices.ts
+++ b/app/src/components/notices/useAppNotices.ts
@@ -20,18 +20,18 @@
import { useCallback, useMemo, useState } from 'react';
import { useNavigate } from 'react-router-dom';
-import { useEmbeddingBudgetState } from '../../hooks/useEmbeddingBudgetState';
import { formatResetTime } from '../../features/conversations/utils/format';
+import { useEmbeddingBudgetState } from '../../hooks/useEmbeddingBudgetState';
import { useUsageState } from '../../hooks/useUsageState';
import { useT } from '../../lib/i18n/I18nContext';
+import { applyOpenRouterFreeModels } from '../../services/api/openrouterFreeModels';
import { useAppDispatch, useAppSelector } from '../../store/hooks';
import { selectActiveUserErrors } from '../../store/userErrorsSelectors';
import { dismissUserError, resolveUserError } from '../../store/userErrorsSlice';
import type { UserActionableError, UserErrorAction } from '../../types/userError';
-import { applyOpenRouterFreeModels } from '../../services/api/openrouterFreeModels';
-import { dismissBanner, shouldShowBanner } from '../upsell/upsellDismissState';
import { PRICING_URL } from '../../utils/links';
import { openUrl } from '../../utils/openUrl';
+import { dismissBanner, shouldShowBanner } from '../upsell/upsellDismissState';
export type NoticeSeverity = 'error' | 'warning' | 'info';
diff --git a/app/src/features/conversations/Conversations.tsx b/app/src/features/conversations/Conversations.tsx
index 706da4b720..378a54a3e0 100644
--- a/app/src/features/conversations/Conversations.tsx
+++ b/app/src/features/conversations/Conversations.tsx
@@ -2024,10 +2024,7 @@ const Conversations = ({
? 'mx-auto w-full max-w-195 min-h-0 overflow-y-auto px-4 py-3'
: 'absolute inset-x-0 bottom-0 z-20 mx-auto w-full max-w-195 px-4 pb-4 pt-6'
}>
- <>
-
- {/* Cycle usage pill moved into ChatComposer toolbar */}
- </>
+ <>{/* Cycle usage pill moved into ChatComposer toolbar */}</>
{sendAdvisory && (
<div className="flex items-center justify-between mb-2">
diff --git a/app/src/pages/Home.tsx b/app/src/pages/Home.tsx
index 537e494811..f4d170a404 100644
--- a/app/src/pages/Home.tsx
+++ b/app/src/pages/Home.tsx
@@ -2,10 +2,7 @@ import { useEffect, useMemo, useState } from 'react';
import { useNavigate } from 'react-router-dom';
import ConnectionIndicator from '../components/ConnectionIndicator';
-import {
- DiscordBanner,
- PromotionalCreditsBanner,
- } from '../components/home/HomeBanners';
+import { DiscordBanner, PromotionalCreditsBanner } from '../components/home/HomeBanners';
import Button from '../components/ui/Button';
import { useUser } from '../hooks/useUser';
import { useT } from '../lib/i18n/I18nContext';
@@ -64,7 +61,6 @@ const Home = () => {
}
};
-
const statusCopy = {
ok: t('home.statusOk'),
'backend-only': t('home.statusBackendOnly'),
diff --git a/app/src/pages/Skills.tsx b/app/src/pages/Skills.tsx
index 6484586ed3..23538cc80f 100644
--- a/app/src/pages/Skills.tsx
+++ b/app/src/pages/Skills.tsx
@@ -1,9 +1,6 @@
import { useCallback, useEffect, useMemo, useState } from 'react';
import { useLocation, useNavigate } from 'react-router-dom';
-import { classifyIntegrationError } from '../lib/userErrors/classify';
-import { dismissUserError, reportUserError } from '../store/userErrorsSlice';
-
import ChannelSetupModal from '../components/channels/ChannelSetupModal';
import McpServersTab from '../components/channels/mcp/McpServersTab';
import ComposioConnectModal from '../components/composio/ComposioConnectModal';
@@ -49,9 +46,11 @@ import { canonicalizeComposioToolkitSlug } from '../lib/composio/toolkitSlug';
import { type ComposioConnection, deriveComposioState } from '../lib/composio/types';
import { getCoreStateSnapshot } from '../lib/coreState/store';
import { useT } from '../lib/i18n/I18nContext';
+import { classifyIntegrationError } from '../lib/userErrors/classify';
import { channelConnectionsApi } from '../services/api/channelConnectionsApi';
import { setDefaultMessagingChannel } from '../store/channelConnectionsSlice';
import { useAppDispatch, useAppSelector } from '../store/hooks';
+import { dismissUserError, reportUserError } from '../store/userErrorsSlice';
import type { ChannelConnectionStatus, ChannelDefinition, ChannelType } from '../types/channels';
import type { ToastNotification } from '../types/intelligence';
import { IS_DEV } from '../utils/config';