mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-10-06 03:38:23 +00:00
TranslatableRichTextViewer can't move (ML-Kit translation is Android), but the stack is already layered: translation wraps ExpandableRichText wraps the 1031-LOC RichTextViewer core. TranslationConfig state is already in commons and the core's real AccountViewModel surface is 5 members (3 cache reads -> ICacheProvider, toast -> callback, nav -> callbacks). Move the core to commons/ui/text behind the cache port + callbacks with a renderEmbeddedNote slot for the NoteCompose recursion; keep the translation wrapper native and thin. This gates Tier 2 so nested rich text becomes a direct commons call, not a per-renderer slot. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LUiGxXMbjVmgspa1X15o1V