diff --git a/frontend/src/app/page.tsx b/frontend/src/app/page.tsx index b7d83293..61493c26 100644 --- a/frontend/src/app/page.tsx +++ b/frontend/src/app/page.tsx @@ -1463,6 +1463,7 @@ export default function Home() { setAccountError(""); setProfileNotice("已保存到云端星盘库。"); } + await draftSynastryQuestionFromChart(record); } async function deleteOtherChart(recordId: string) { diff --git a/frontend/tests/chart-library-other-profile.test.ts b/frontend/tests/chart-library-other-profile.test.ts index e10e2d2c..10552132 100644 --- a/frontend/tests/chart-library-other-profile.test.ts +++ b/frontend/tests/chart-library-other-profile.test.ts @@ -20,6 +20,12 @@ test("other chart save falls back to local library when cloud sync fails", () => assert.doesNotMatch(source, /deleteOtherChart[\s\S]{0,500}void deleteCloudChartProfile/); }); +test("adding another chart immediately opens the synastry path", () => { + assert.match(source, /async function saveOtherChart[\s\S]{0,1400}await draftSynastryQuestionFromChart\(record\)/); + assert.match(source, /用于合盘/); + assert.match(source, /\/api\/synastry/); +}); + test("a successful cloud read replaces stale local other charts", () => { assert.match( source,