Repository navigation
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…over generation Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ge function error handling
…prove edge function error handling" This reverts commit b0adb0f.
…mage 2 cover generation" This reverts commit 77ca824.
… GPT Image 2" This reverts commit 44bbcd4.
…shRecordingAsStory" This reverts commit 837397a.
This reverts commit 6dff4a5.
…ase types" This reverts commit 690873f.
This reverts commit 8d74bc1.
This reverts commit 29406d7.
This reverts commit f27651b.
- Add LANGUAGE_COUNTRY and LANGUAGE_BG maps to learningLanguages.ts; LANGUAGE_BG uses import.meta.glob to bundle all per-country backgrounds (learner + elder variants) and resolves the right image from the user's chosen learning language - Replace static background-learner/elder imports in LandingPage with LANGUAGE_BG[learningLanguage] lookup; pass learningLanguage to ElderLanding - Add 20 country-specific background images under assets/landing/background/ - Add ::after dark overlay (rgba 0,0,0,0.32) on .landing-hero for legibility Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Accept remote versions: alphabetical CSS properties, type-only import, onOpenLanguageSettings prop, LEARNING_LANGUAGE_METADATA superseding LANGUAGE_COUNTRY, and getLandingBackground/backgroundModules naming. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… guide - Add What's New section covering story pipeline, multi-language hero backgrounds, AI coach improvements, and profile onboarding - Add Mermaid architecture diagram and elder recording to story data flow - Expand setup instructions: migrations, edge function deployment, secrets - Add project structure tree with ai-helper and assets detail - Restructure features section and tech stack table for clarity
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Greptile SummaryThis PR reorganises the landing background assets from two generic flat files (
Confidence Score: 4/5Safe to merge — the image restructuring and README rewrite introduce no runtime regressions; the Brunei and Laos images are inert dead assets rather than broken paths. The structural change (moving from flat generic backgrounds to a country-namespaced directory) is clean and already wired correctly in learningLanguages.ts. The four new Brunei/Laos images land in the glob directory and will be eagerly bundled on every build, but no language entry resolves to those keys, so they silently inflate bundle size without being rendered. assets/landing/background/brunei-elder.png, assets/landing/background/brunei-learner.png, assets/landing/background/laos-elder.png, assets/landing/background/laos-learner.png — these four images have no corresponding language mapping in src/lib/learningLanguages.ts
|
| Filename | Overview |
|---|---|
| README.md | Comprehensive documentation rewrite — adds changelog, updated architecture diagram, multi-language feature notes, and improved setup guide. No code impact. |
| assets/landing/background-elder.png | Deleted — replaced by the new country-specific background directory structure. |
| assets/landing/background-learner.png | Deleted — replaced by the new country-specific background directory structure. |
| assets/landing/background/brunei-elder.png | New Brunei elder background image — eagerly bundled by Vite's glob but no language in LANGUAGE_BG maps to 'brunei', making it a dead asset. |
| assets/landing/background/brunei-learner.png | New Brunei learner background image — eagerly bundled by Vite's glob but unreferenced by any language mapping. |
| assets/landing/background/laos-elder.png | New Laos elder background image — eagerly bundled by Vite's glob but unreferenced by any language mapping. |
| assets/landing/background/laos-learner.png | New Laos learner background image — eagerly bundled by Vite's glob but unreferenced by any language mapping. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["User selects learning language"] --> B["resolveLearningLanguage()"]
B --> C["LANGUAGE_BG lookup\n(8 languages → 8 countries)"]
C --> D["getLandingBackground(country, role)"]
D --> E["backgroundModules key lookup\nimport.meta.glob eager bundle"]
E -->|key found| F["Render hero image"]
E -->|key not found| G["Return empty string\n(no image rendered)"]
subgraph bundled ["Eagerly bundled by Vite glob (20 images)"]
H["✅ malaysia-elder/learner"]
I["✅ indonesia-elder/learner"]
J["✅ thailand-elder/learner"]
K["✅ cambodia-elder/learner"]
L["✅ philippines-elder/learner"]
M["✅ vietnam-elder/learner"]
N["✅ singapore-elder/learner"]
O["✅ myanmar-elder/learner"]
P["⚠️ brunei-elder/learner (unused)"]
Q["⚠️ laos-elder/learner (unused)"]
end
Comments Outside Diff (1)
-
assets/landing/background/brunei-elder.png, line 1 (link)Orphaned assets — not reachable by any language mapping
The four new images (
brunei-elder.png,brunei-learner.png,laos-elder.png,laos-learner.png) land insideassets/landing/background/, which means Vite'simport.meta.glob('../../assets/landing/background/*.png', { eager: true })insrc/lib/learningLanguages.tswill bundle all four at build time. However,LANGUAGE_BGmaps only the 8 declared languages — Tandia (Indonesia), Semai (Malaysia), Mlabri (Thailand), Chong (Cambodia), Arta (Philippines), Arem (Vietnam), Kristang (Singapore), Moken (Myanmar) — and none of them resolves tobruneiorlaos. The images are imported eagerly but the keys are never looked up, so they add bundle weight without being rendered anywhere in the app.
Reviews (1): Last reviewed commit: "feat: adjust readme" | Re-trigger Greptile
No description provided.