Skip to content
Myr

manifest.ts

This file

Path

apps/web/src/features/agents/manifest.ts

47 lines · 1.2 KiB · TypeScript

Last changed by

Merge redesign into mainoscabrielbefore adoptioncaedd21

History of this file

Take it

The walk stopped after 200 commits: lines older than 678c8b8 point at it.

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

line 1why, one step back
1/**

Merge build/comments-web-features into mainoscabrielbefore adoption74bfc72

lines 2–3why, one step back
2 * `vite.config.ts` writes this into the client output as `manifest.webmanifest`
3 * at each build, so no file spells the name.

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

lines 4–6why, one step back
4 */
5import { Brand } from "@repo/brand";6

Merge redesign into mainoscabrielbefore adoptioncaedd21

line 7why, one step back
7import { INBOX_PATH } from "../shared/paths.ts";

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

lines 8–32why, one step back
8import { themeColors } from "../shared/theme.ts";
910const rasters = [192, 512] as const;1112const icons = [13 ...rasters.flatMap((size) =>14 (["any", "maskable"] as const).map((purpose) => ({15 purpose,16 sizes: `${size}x${size}`,17 src: `/icons/icon-${size}.png`,18 type: "image/png",19 }))20 ),21 {22 purpose: "any",23 sizes: "any",24 src: "/icons/icon.svg",25 type: "image/svg+xml",26 },27];2829export const MANIFEST_PATH = "/manifest.webmanifest";3031export const webManifest = () => ({32 background_color: themeColors.light,

Merge redesign into mainoscabrielbefore adoptioncaedd21

line 33why, one step back
33 description: `Open asks, answers and your inbox on ${Brand.name}.`,

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

lines 34–35why, one step back
34 display: "standalone",
35 icons,

Merge redesign into mainoscabrielbefore adoptioncaedd21

line 36why, one step back
36 // The installed app's identity, kept from when it opened Today: a new id would install it again.

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

lines 37–41why, one step back
37 id: "/today",
38 lang: "en",39 name: Brand.name,40 scope: "/",41 short_name: Brand.name,

Merge redesign into mainoscabrielbefore adoptioncaedd21

line 42why, one step back
42 start_url: INBOX_PATH,

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

lines 43–47why, one step back
43 theme_color: themeColors.light,
44});4546export const webManifestText = () =>47 `${JSON.stringify(webManifest(), null, 2)}\n`;