diff --git a/.fork/customizations.yaml b/.fork/customizations.yaml index 9113e1f57fc16..c1fcc3162227f 100644 --- a/.fork/customizations.yaml +++ b/.fork/customizations.yaml @@ -583,43 +583,89 @@ - id: fork-brand-name intent: > - Every web and desktop string a user reads names the app "no3y Code", the - same name fork-app-identity gives the installed app, and the fork still - says where it comes from. Upstream writes "T3 Code" inline in hundreds of - strings and adds more each sync, so the name is rewritten at build time - instead of in each file: one plugin (scripts/lib/fork-brand-name.ts) runs - in the web Vite build and dev server and in both desktop pack entries - (main, workers), and replaces "T3 Code" in script modules and index.html. - The web config leaves it out under Vitest so upstream tests keep - asserting upstream copy; desktop pack never runs under Vitest. - The whole keep-as-written policy is two lists in that file: + Every web, desktop and mobile string a user reads names the app "no3y + Code", the same name fork-app-identity gives the installed app, and the + fork still says where it comes from. Upstream writes "T3 Code" and bare + "T3 " inline in hundreds of strings and adds more each sync, so the + name is rewritten at build time instead of in each file. The rewrite is + a rename-by-default rule in scripts/lib/fork-brand-name-core.ts: every + "T3 " that starts a word and precedes a letter becomes "no3y " ("T3 Code" + → "no3y Code", "Started a T3 thread" → "Started a no3y thread"). The + t3_thread_* tool-row lookups key on the same rewritten labels, so they + keep matching. The core is import-free because two bundlers load it: + the Vite plugin (scripts/lib/fork-brand-name.ts) in the web build and dev + server and in both desktop pack entries (main, workers), and a Metro + Babel-transformer wrapper (apps/mobile/fork/forkBrandNameTransformer.cjs) + for mobile. The web config leaves it out under Vitest so upstream tests + keep asserting upstream copy; desktop pack and Metro never run under + Vitest. + The whole keep-as-written policy is two lists in the core: PRESERVED_PHRASES (the fork's credit, prose about upstream, the Linux capture extension's own name, upstream's registered "T3 Code for GitHub" - app, and the server-issued "T3 Code ·