feat(app-expo): show memoir chapter draft progress on list cards

Explain invite vs. generating state using MemoirState slots, surface remaining
characters to the display gate, refresh memoir-state on pull, and sync i18n.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Kevin
2026-05-19 11:11:58 +08:00
parent 897f49f2ab
commit 95856ca11a
7 changed files with 201 additions and 13 deletions

View File

@@ -16,6 +16,18 @@ export const FRAMEWORK_CHAPTER_KEYS = [
export type FrameworkChapterKey = (typeof FRAMEWORK_CHAPTER_KEYS)[number];
/** 与后端 `CHAPTER_ORDER` 一致(用于占位章节缺省 category */
export const CHAPTER_CATEGORY_BY_ORDER_INDEX = [
'childhood',
'education',
'career_early',
'career_achievement',
'career_challenge',
'family',
'beliefs',
'summary',
] as const;
export function buildFrameworkChapterPlaceholders(
tr: (key: string) => string,
): ChapterViewModel[] {