Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

Merge remote-tracking branch 'origin/main' into feature/rx-202

Amruth Pillaiffb14f704860
diff --cc apps/mobile/scripts/experience.test.mjs
index 531484ea6,344d54ceb..951b9394d
--- a/apps/mobile/scripts/experience.test.mjs
+++ b/apps/mobile/scripts/experience.test.mjs
@@@ -860,18 -856,18 +866,30 @@@ assert.deepEqual(calls.filter((call) =
id: "existing-letter",
applicationId: "job-a",
});
+for (const resumeId of [null, "resume-for-letter"]) {
+ tree = render(WhatYouSent, { application: { ...application, resumeId } });
+ control(tree, "Write a letter").onPress();
+ assert.deepEqual(
+ calls.at(-1),
+ {
+ pathname: "/new",
+ params: { context: "letters", applicationId: "job-a", ...(resumeId ? { sourceResumeId: resumeId } : {}) },
+ },
+ "Letter creation opens the reusable document picker with this job and its linked resume",
+ );
+}
+ let finishDocumentLink;
+ documentLinkPromise = new Promise((resolve) => (finishDocumentLink = resolve));
+ control(tree, "Use Fictional Cedar — Portfolio · Resume").onPress();
+ tree = render(WhatYouSent, { application });
+ assert.equal(control(tree, "Use Fictional Cedar — Portfolio · Resume").disabled, true);
+ assert.equal(control(tree, "Use an existing letter").disabled, true);
+ finishDocumentLink();
+ await settle();
+ documentLinkPromise = undefined;
+ tree = render(WhatYouSent, { application });
+ assert.equal(control(tree, "Use Fictional Cedar — Portfolio · Resume").disabled, false);
+ assert.equal(control(tree, "Use an existing letter").disabled, false);
applicationDocuments = [];
console.log("PASS native company-matched resume/letter selection, revision guard, pending state and failed-link retry");