Skip to content

Commit ae59bbe

Browse files
ericyangpanclaude
andcommitted
refactor(app): update application pages and components
Update all application pages, components, and library modules for improved functionality across CLIs, extensions, IDEs, models, providers, vendors, search, and open-source-rank sections. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 1a2736e commit ae59bbe

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+91
-91
lines changed

src/app/[locale]/ai-coding-landscape/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ type Props = {
3333
export default async function Page({ params }: Props) {
3434
const { locale } = await params
3535
const tNav = await getTranslations({ locale, namespace: 'components.header' })
36-
const tOverview = await getTranslations({ locale, namespace: 'pages.overview' })
36+
const tOverview = await getTranslations({ locale, namespace: 'pages.stacks.overview' })
3737

3838
// Build vendor matrix data
3939
const matrixData = buildVendorMatrix()

src/app/[locale]/ai-coding-stack/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import type { LocalePageProps } from '@/types/locale'
99

1010
export async function generateMetadata({ params }: LocalePageProps) {
1111
const { locale } = await params
12-
const t = await getTranslations({ locale, namespace: 'pages.overview' })
12+
const t = await getTranslations({ locale, namespace: 'pages.stacks.overview' })
1313

1414
const title = buildTitle({ title: t('title') })
1515
const description = t('subtitle')
@@ -27,7 +27,7 @@ export async function generateMetadata({ params }: LocalePageProps) {
2727

2828
export default async function AICodingStackPage({ params }: LocalePageProps) {
2929
const { locale } = await params
30-
const t = await getTranslations({ locale, namespace: 'pages.overview' })
30+
const t = await getTranslations({ locale, namespace: 'pages.stacks.overview' })
3131

3232
return (
3333
<>

src/app/[locale]/clis/[slug]/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export default async function CLIPage({
6868
notFound()
6969
}
7070

71-
const t = await getTranslations({ locale, namespace: 'pages.cliDetail' })
71+
const t = await getTranslations({ locale, namespace: 'pages.stacks.cliDetail' })
7272
const tGlobal = await getTranslations({ locale })
7373

7474
// Transform URLs for component props
@@ -99,8 +99,8 @@ export default async function CLIPage({
9999

100100
// Breadcrumb items
101101
const breadcrumbItems = [
102-
{ name: tGlobal('shared.common.aiCodingStack'), href: '/ai-coding-stack' },
103-
{ name: tGlobal('shared.stacks.clis'), href: '/clis' },
102+
{ name: tGlobal('shared.terms.aiCodingStack'), href: '/ai-coding-stack' },
103+
{ name: tGlobal('shared.categories.plural.clis'), href: '/clis' },
104104
{ name: cli.name, href: `clis/${cli.id}` },
105105
]
106106

src/app/[locale]/clis/comparison/page.client.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,9 @@ export default function CLIComparisonPageClient({ locale: _locale }: Props) {
280280

281281
<Breadcrumb
282282
items={[
283-
{ name: tGlobal('shared.common.aiCodingStack'), href: '/ai-coding-stack' },
284-
{ name: tGlobal('shared.stacks.clis'), href: '/clis' },
285-
{ name: tGlobal('shared.common.comparison'), href: '/clis/comparison' },
283+
{ name: tGlobal('shared.terms.aiCodingStack'), href: '/ai-coding-stack' },
284+
{ name: tGlobal('shared.categories.plural.clis'), href: '/clis' },
285+
{ name: tGlobal('shared.terms.comparison'), href: '/clis/comparison' },
286286
]}
287287
/>
288288

src/app/[locale]/clis/opengraph-image.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ interface Props {
1111

1212
export default async function Image({ params }: Props) {
1313
const { locale } = await params
14-
const t = await getTranslations({ locale, namespace: 'pages.clis' })
14+
const t = await getTranslations({ locale, namespace: 'pages.stacks.clis' })
1515

1616
return new ImageResponse(
1717
<OGImageTemplate

src/app/[locale]/clis/page.client.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type Props = {
1919
}
2020

2121
export default function CLIsPageClient({ locale }: Props) {
22-
const t = useTranslations('pages.clis')
22+
const t = useTranslations('pages.stacks.clis')
2323
const tGlobal = useTranslations()
2424
const [sortOrder, setSortOrder] = useState<'default' | 'name-asc' | 'name-desc'>('default')
2525
const [licenseFilters, setLicenseFilters] = useState<string[]>([])

src/app/[locale]/clis/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export async function generateMetadata({ params }: { params: Promise<{ locale: s
1010
return await generateListPageMetadata({
1111
locale: locale as Locale,
1212
category: 'clis',
13-
translationNamespace: 'pages.clis',
13+
translationNamespace: 'pages.stacks.clis',
1414
additionalKeywords: ['Gemini CLI', 'GitHub Copilot CLI', 'command line AI tools'],
1515
})
1616
}

src/app/[locale]/extensions/[slug]/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export default async function ExtensionPage({
7373
notFound()
7474
}
7575

76-
const t = await getTranslations({ locale, namespace: 'pages.extensionDetail' })
76+
const t = await getTranslations({ locale, namespace: 'pages.stacks.extensionDetail' })
7777
const tGlobal = await getTranslations({ locale })
7878

7979
// Transform URLs for component props
@@ -120,8 +120,8 @@ export default async function ExtensionPage({
120120

121121
// Breadcrumb items
122122
const breadcrumbItems = [
123-
{ name: tGlobal('shared.common.aiCodingStack'), href: '/ai-coding-stack' },
124-
{ name: tGlobal('shared.stacks.extensions'), href: '/extensions' },
123+
{ name: tGlobal('shared.terms.aiCodingStack'), href: '/ai-coding-stack' },
124+
{ name: tGlobal('shared.categories.plural.extensions'), href: '/extensions' },
125125
{ name: extension.name, href: `extensions/${extension.id}` },
126126
]
127127

src/app/[locale]/extensions/comparison/page.client.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,9 @@ export default function ExtensionComparisonPageClient({ locale: _locale }: Props
266266

267267
<Breadcrumb
268268
items={[
269-
{ name: tGlobal('shared.common.aiCodingStack'), href: '/ai-coding-stack' },
270-
{ name: tGlobal('shared.stacks.extensions'), href: '/extensions' },
271-
{ name: tGlobal('shared.common.comparison'), href: '/extensions/comparison' },
269+
{ name: tGlobal('shared.terms.aiCodingStack'), href: '/ai-coding-stack' },
270+
{ name: tGlobal('shared.categories.plural.extensions'), href: '/extensions' },
271+
{ name: tGlobal('shared.terms.comparison'), href: '/extensions/comparison' },
272272
]}
273273
/>
274274

src/app/[locale]/extensions/opengraph-image.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ interface Props {
1111

1212
export default async function Image({ params }: Props) {
1313
const { locale } = await params
14-
const t = await getTranslations({ locale, namespace: 'pages.extensions' })
14+
const t = await getTranslations({ locale, namespace: 'pages.stacks.extensions' })
1515

1616
return new ImageResponse(
1717
<OGImageTemplate

0 commit comments

Comments
 (0)