fix(ci): bump migration head assertion to 0004, apply prettier

- Update test_migrations / test_migrations_postgres head assertion from
  0003 to 0004 after adding the mcp readme migration.
- Reformat MCPForm.tsx / MCPReadme.tsx to satisfy prettier/prettier.
This commit is contained in:
RockChinQ
2026-06-06 03:56:14 -04:00
parent b08e5ca09a
commit 7330732f62
4 changed files with 11 additions and 14 deletions

View File

@@ -104,7 +104,7 @@ class TestSQLiteMigrationUpgrade:
rev = await get_alembic_current(sqlite_engine)
assert rev is not None, "Expected a revision after upgrade"
# Head should be the latest migration
assert rev.startswith('0003'), f"Expected head to be 0003_*, got {rev}"
assert rev.startswith('0004'), f"Expected head to be 0004_*, got {rev}"
@pytest.mark.asyncio
async def test_upgrade_idempotent(self, sqlite_engine):

View File

@@ -150,8 +150,8 @@ class TestPostgreSQLMigrationUpgrade:
# Verify revision
rev = await get_alembic_current(postgres_engine)
assert rev is not None, "Expected a revision after upgrade"
# Head should be the latest migration (0003 for current state)
assert rev.startswith('0003'), f"Expected head to be 0003_*, got {rev}"
# Head should be the latest migration (0004 for current state)
assert rev.startswith('0004'), f"Expected head to be 0004_*, got {rev}"
@pytest.mark.asyncio
async def test_postgres_upgrade_idempotent(

View File

@@ -40,12 +40,7 @@ import {
CardTitle,
} from '@/components/ui/card';
import { httpClient } from '@/app/infra/http/HttpClient';
import {
Tabs,
TabsContent,
TabsList,
TabsTrigger,
} from '@/components/ui/tabs';
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
import MCPReadme from '@/app/home/mcp/components/mcp-form/MCPReadme';
import {
MCPServerRuntimeInfo,
@@ -1071,10 +1066,7 @@ const MCPForm = forwardRef<MCPFormHandle, MCPFormProps>(function MCPForm(
{toolsTabLabel}
</TabsTrigger>
</TabsList>
<TabsContent
value="docs"
className="mt-4 min-h-0 flex-1 overflow-y-auto"
>
<TabsContent value="docs" className="mt-4 min-h-0 flex-1 overflow-y-auto">
<MCPReadme readme={readme} />
</TabsContent>
<TabsContent

View File

@@ -52,7 +52,12 @@ export default function MCPReadme({ readme }: { readme?: string }) {
ol: ({ children }) => <ol className="list-decimal">{children}</ol>,
li: ({ children }) => <li className="ml-4">{children}</li>,
a: ({ children, href, ...props }) => (
<a href={href} target="_blank" rel="noopener noreferrer" {...props}>
<a
href={href}
target="_blank"
rel="noopener noreferrer"
{...props}
>
{children}
</a>
),