Repository Public
1/**2 * =============================================================================3 * SP BOUCHER | SOFTWARE & RESEARCH4 * ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5 * =============================================================================6 *7 * Project : agentilab-web8 * File : components/pages/EcosystemPage.tsx9 * Module : User Interface10 * Repository : https://git.spboucher.ai/agentilab-web11 * Project Website : Not specified12 * Created : 2026-12-0513 * Last Modified : 2026-12-0514 *15 * Author : Simon-Pierre Boucher16 * Position : Professor of Finance17 * Institution : Université du Québec en Outaouais (UQO)18 * Organization : SP Boucher19 * Website : https://spboucher.ai20 * Git : https://git.spboucher.ai21 *22 * Preferred Contact: contact@spboucher.ai23 * Development : dev@spboucher.ai24 * Support : support@spboucher.ai25 * Security/Admin : admin@spboucher.ai26 *27 * Copyright (c) 202628 * Simon-Pierre Boucher29 * All rights reserved where applicable. This file is governed by the30 * applicable project license, copyright notices and relevant law.31 * Existing third-party rights and notices remain unaffected.32 *33 * License : Proprietary34 *35 * Do not embed credentials, private keys, access tokens,36 * certificates or confidential personal information.37 *38 * =============================================================================39 * END OF SP BOUCHER SOURCE HEADER40 * =============================================================================41 */4243import type { Locale } from '@/lib/i18n/config';44import { getCopy } from '@/lib/i18n/copy';45import { brand, productsOf, publishedProducts } from '@/lib/catalog';46import type { Platform } from '@/lib/catalog/types';47import { Section, SectionHeading } from '@/components/ui/primitives';48import { BrandCard, PageHead } from '@/components/marketing/blocks';49import { ProductCard } from '@/components/marketing/ProductCard';50import { ProductExplorer } from '@/components/marketing/ProductExplorer';51import { Shell } from './Shell';5253const PLATFORM_ORDER: Platform[] = ['web', 'macos', 'ios', 'ipados'];5455export function EcosystemPage({ locale }: { locale: Locale }) {56 const copy = getCopy(locale);57 const t = copy.ecosystem;58 // Les options de filtre découlent du catalogue : une valeur absente n’est pas proposée.59 const platforms = PLATFORM_ORDER.filter((p) => publishedProducts.some((product) => product.platforms.includes(p)));60 const statuses = (['available', 'beta', 'development'] as const).filter((s) => publishedProducts.some((product) => product.status === s));61 return (62 <Shell locale={locale} current="ecosystem">63 <PageHead id="ecosystem" locale={locale} eyebrow={t.eyebrow} title={t.title} lead={t.intro} />6465 <Section className="section--ruled" labelledBy="marques">66 <SectionHeading id="marques" title={t.brandsTitle} />67 <div className="brands">68 <BrandCard brand={brand('groupe-ka')} products={productsOf('groupe-ka')} locale={locale} route="groupeKa" cta={t.brandCta('Groupe Ka')} />69 <BrandCard brand={brand('orix')} products={productsOf('orix')} locale={locale} route="orix" cta={t.brandCta('ORIX')} />70 </div>71 </Section>7273 <Section tone="dark" labelledBy="hierarchie">74 <div className="split">75 <div className="heading">76 <h2 id="hierarchie">{t.hierarchyTitle}</h2>77 </div>78 <ul className="tree">79 {t.hierarchy.map((item) => (80 <li key={item.name}>81 <strong>{item.name}</strong>82 <span>{item.role}</span>83 </li>84 ))}85 </ul>86 </div>87 </Section>8889 <Section labelledBy="produits">90 <SectionHeading id="produits" title={t.productsTitle} intro={t.productsIntro(publishedProducts.length)} />91 <noscript>92 <style>{'.filters{display:none}'}</style>93 </noscript>94 <ProductExplorer95 cards={publishedProducts.map((product) => ({96 id: product.id,97 slug: product.slug,98 brand: product.brandId,99 platforms: product.platforms,100 status: product.status,101 node: <ProductCard product={product} locale={locale} />,102 }))}103 groups={[104 { key: 'brand', label: t.filters.brand, options: [{ value: 'groupe-ka', label: 'Groupe Ka' }, { value: 'orix', label: 'ORIX' }] },105 { key: 'platform', label: t.filters.platform, options: platforms.map((p) => ({ value: p, label: copy.labels.platform[p] })) },106 { key: 'status', label: t.filters.status, options: statuses.map((s) => ({ value: s, label: copy.labels.status[s] })) },107 ]}108 labels={{109 title: t.filters.title,110 all: t.filters.all,111 reset: t.filters.reset,112 emptyTitle: t.filters.emptyTitle,113 emptyText: t.filters.emptyText,114 countOne: t.filters.count(1).replace('1', '{n}'),115 countMany: t.filters.count(2).replace('2', '{n}'),116 }}117 />118 </Section>119 </Shell>120 );121}122