Repository Public
1/**2 * =============================================================================3 * SP BOUCHER | SOFTWARE & RESEARCH4 * ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5 * =============================================================================6 *7 * Project : ORIX App Universe8 * File : e2e/catalog.ts9 * Module : e2e10 * Repository : https://git.spboucher.ai/orix-spboucher-ai11 * Project Website : https://www.orixlab.dev12 * Created : 2026-11-2513 * Last Modified : 2026-11-2514 *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: support@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 : None specified (no license file in this repository)34 *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 { readdirSync, readFileSync } from "node:fs";44import { join } from "node:path";4546/**47 * What the end-to-end tests expect of the catalogue. The seed (`content/apps`) is read as the global setup reads48 * it, so a fiche added there is covered without touching the tests; the lists below state what is intended.49 * ORIX Navigator is released for Mac (beta) and still to come on iPhone and iPad, as ORIX Astra is.50 */51type Doc = { slug: string; order: number; status: string; platforms: string[]; repo: { name: string | null; visibility: string }; screenshots: unknown[]; distribution: { channel: string; state: string; url: string | null }[] };52export const DOCS: Doc[] = readdirSync("content/apps").filter((f) => f.endsWith(".json")).map((f) => JSON.parse(readFileSync(join("content/apps", f), "utf8")) as Doc)53 .sort((a, b) => a.order - b.order || (a.slug < b.slug ? -1 : 1));54const seeded = new Set(DOCS.map((d) => d.slug));55const present = (slugs: string[]) => slugs.filter((s) => s !== "navigator" || seeded.has(s));5657/** Every real application, in editorial order. */58export const REAL = DOCS.map((d) => d.slug);59export const RETIRED = ["dj", "secure"];60export const AVAILABLE = ["astra", "audio", "camera", "clean", "convert", "docs", "monitor", "navigator", "prism", "sheet", "sonata"];61export const COMING = present(["alarm", "arcade", "calc", "maps", "scan"]);62/** The two families of the home page, in their fixed editorial order. */63export const MAC_LINEUP = present(["astra", "clean", "convert", "docs", "sheet", "sonata", "prism", "navigator", "monitor"]);64export const MOBILE_LINEUP = present(["alarm", "arcade", "astra", "calc", "camera", "maps", "scan", "audio", "navigator"]);65/** Applications with a public page on the App Store, and that page. */66export const APP_STORE: Record<string, string> = Object.fromEntries(DOCS.flatMap((d) => { const s = d.distribution.find((c) => c.channel === "appstore-ios" && c.state === "public" && c.url); return s ? [[d.slug, s.url!]] : []; }));67/** Released applications with a capture, in editorial order: the panels of the home page showcase. */68export const SHOWCASE = DOCS.filter((d) => d.status === "available" && d.screenshots.length > 0).map((d) => d.slug);6970/** The fixtures of `global-setup.ts`: two macOS applications (status available) and one iPhone / iPad public beta. */71export const FIXTURES = { mac: ["fixture-mac", "fixture-review"], ios: ["fixture-ios"] };72export const TOTAL = REAL.length + FIXTURES.mac.length + FIXTURES.ios.length;73/** Public forge repositories the synchronization reads (real applications and the two macOS fixtures). */74export const PUBLIC_REPOS = DOCS.filter((d) => d.repo.visibility === "public" && d.repo.name).length + FIXTURES.mac.length;75