ultisuite-client/lib/suite/favorite-apps.ts
R3D347HR4Y efaaf16f60
Some checks are pending
E2E / Playwright e2e (push) Waiting to run
feat: update metadata and layout for new product pages
- Refactored metadata for contacts, administration, and Ulticards pages to utilize dynamic app names and descriptions.
- Introduced new product pages for Ultiai, Ultical, Ulticards, Ultidrive, Ultimail, and Ultimeet with appropriate metadata.
- Enhanced layout components to ensure consistent styling and functionality across new product sections.
- Updated various components to replace hardcoded labels with dynamic references to improve maintainability and consistency.
2026-06-19 22:11:42 +02:00

75 lines
1.8 KiB
TypeScript

import { ULTICAL_APP_NAME, ULTICARDS_APP_NAME } from "@/lib/suite/page-metadata"
import { suitePublicAsset } from "@/lib/suite/suite-public-asset"
export type FavoriteApp = {
name: string
icon: string
/** Variante dark mode (gris clairs, surface adaptée). */
iconDark?: string
href?: string
/** Ouvre dans un nouvel onglet (liens externes). */
external?: boolean
/** Logos sombres : blanc en dark via invert + hue-rotate. */
whiteLogoInDark?: boolean
}
export const SUITE_FAVORITE_APPS: FavoriteApp[] = [
{
name: ULTICAL_APP_NAME,
icon: suitePublicAsset("/agenda-mark.svg"),
iconDark: suitePublicAsset("/agenda-mark-dark.svg"),
href: "/agenda",
},
{ name: "Photos", icon: suitePublicAsset("/photos-mark.svg") },
{
name: "Ultimail",
icon: suitePublicAsset("/ultimail-mark.svg"),
href: "/mail",
},
{
name: "UltiDrive",
icon: suitePublicAsset("/ultidrive-mark.svg"),
href: "/drive",
},
{
name: ULTICARDS_APP_NAME,
icon: suitePublicAsset("/contacts-mark.svg"),
href: "/contacts",
},
{
name: "UltiMeet",
icon: suitePublicAsset("/ultimeet-mark.svg"),
href: "/meet",
},
{
name: "Administration",
icon: suitePublicAsset("/admin-mark.svg"),
href: "/admin/settings",
},
{
name: "OpenMaps",
icon: suitePublicAsset("/openstreetmap-mark.svg"),
href: "https://www.openstreetmap.org/",
external: true,
},
{
name: "UltiAI",
icon: suitePublicAsset("/ultiai-mark.svg"),
href: "/chat",
},
{
name: "Qwant",
icon: suitePublicAsset("/qwant-mark.svg"),
href: "https://www.qwant.com/",
external: true,
whiteLogoInDark: true,
},
{
name: "Ground News",
icon: suitePublicAsset("/ground-news-mark.svg"),
href: "https://ground.news/",
external: true,
whiteLogoInDark: true,
},
]