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!
TypeScript agent-skillsaidsh-pluginhacktoberfestjavascriptmcp-serverreactresume-builderself-hostedtypescript
chore: compose merged workflows and restore native host fixtures
Amruth Pillai0fee13fedfc2
diff --cc apps/mobile/scripts/experience.test.mjsindex 1e78f57e6,59fa9834a..b4b07b3dc--- a/apps/mobile/scripts/experience.test.mjs+++ b/apps/mobile/scripts/experience.test.mjs@@@ -469,7 -469,7 +469,7 @@@ const nativeInterviewCalendar = load("f});let applicationDocuments = [];let rejectDocumentLink = false;--let creatingApplicationLetter = false;++let documentLinkPromise;let stageUpdate = (input) => calls.push(input);let stageUpdateAsync = (input) =>new Promise((resolve, reject) => stageUpdate(input, { onSuccess: resolve, onError: reject }));@@@ -487,7 -487,7 +487,6 @@@ const { StageStepper, NextStepCard, Wha"./hooks": {useDocuments: () => ({ data: applicationDocuments }),useDetailMutations: () => ({-- createLetter: { isPending: creatingApplicationLetter },addNote: {},updateEntry: {},deleteEntry: {},@@@ -508,6 -508,6 +507,7 @@@linkApplication: async (input) => {calls.push({ documentLink: input });if (rejectDocumentLink) throw new Error("Unavailable");++ await documentLinkPromise;},},},@@@ -856,11 -856,11 +856,18 @@@ assert.deepEqual(calls.filter((call) =id: "existing-letter",applicationId: "job-a",});--creatingApplicationLetter = true;++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);--creatingApplicationLetter = false;++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");diff --cc apps/mobile/scripts/layout.test.mjsindex df608f4f0,df608f4f0..fe6e9782e--- a/apps/mobile/scripts/layout.test.mjs+++ b/apps/mobile/scripts/layout.test.mjs@@@ -4,6 -4,6 +4,7 @@@ import assert from "node:assert/strict"import { readdirSync, readFileSync } from "node:fs";import { createRequire } from "node:module";import { i18n } from "@lingui/core";++import { groupDocumentsByApplication, groupIsExpanded } from "@reactive-resume/schema/applications/document-groups";i18n.loadAndActivate({ locale: "en-US", messages: {} });@@@ -576,6 -576,6 +577,7 @@@ const librarySession = load("features/d"@/auth/session": { getAccountScope: () => libraryAccountScope },});const { DocumentsLibrary } = load("features/documents/library.tsx", {++ "@reactive-resume/schema/applications/document-groups": { groupDocumentsByApplication, groupIsExpanded },"./library-session": librarySession,"@legendapp/list/reanimated": { AnimatedLegendList: "FlatList" },"./document-sheets": { DocumentSheets: "DocumentSheets" },@@@ -737,7 -737,7 +739,8 @@@ const sheetDocument = { type: "resume"documentQuery = { ...originalDocumentQuery, data: { ...originalDocumentQuery.data, items: [sheetDocument], total: 1 } };render(DocumentsLibrary, { trashed: true });let trashList = nodes(render(DocumentsLibrary, { trashed: true })).find((node) => node.type === "FlatList");--const trashItem = trashList.props.renderItem({ item: sheetDocument, index: 0 });++assert.equal(trashList.props.data[0].document, sheetDocument);++const trashItem = trashList.props.renderItem({ item: trashList.props.data[0], index: 0 });// Row body is wrapped by the motion frame; its menu opens the sheet owned by DocumentsLibrary.nodes(trashItem).find((node) => typeof node.props.onMenu === "function")diff --cc apps/mobile/src/features/workspace/tabs/saved.tsxindex ff3c5a6d0,bfa07ff23..87cbac70b--- a/apps/mobile/src/features/workspace/tabs/saved.tsx+++ b/apps/mobile/src/features/workspace/tabs/saved.tsx@@@ -13,15 -12,12 +12,13 @@@ import { Pressable, View } from "react-import { useFacts, useSavedItems } from "../hooks";import { Actions, Block, tabLabel } from "../parts";import { WorkspaceScreen } from "../shell";- import { dispatchForOrigin } from "../state";- import { client, orpc } from "@/api/client";- import { getDraftScope } from "@/draft";+ import { client, prepareRpc } from "@/api/client";+import { AiResultUsage } from "@/features/ai/usage";import { useUserTime } from "@/features/application-detail/hooks";+ import { useUndoRows } from "@/features/career/hooks";import { formatMoney } from "@/features/career/offer-compare";- import { withUndo } from "@/features/career/undo";import { routes } from "@/routes";- import { Button, Chip, EmptyState, Icon, IconButton, Skeleton, Text, showToast, useTheme } from "@/ui";+ import { Button, Chip, EmptyState, Icon, IconButton, Skeleton, Text, useTheme } from "@/ui";const KINDS: { kind: SavedItemKind; icon: IconName; tab: WorkspaceTab | null }[] = [{ kind: "fit", icon: "list-checks", tab: "fit" },diff --cc apps/web/src/features/career/workspace/saved.tsxindex 05c6845e0,39588b03d..406640551--- a/apps/web/src/features/career/workspace/saved.tsx+++ b/apps/web/src/features/career/workspace/saved.tsx@@@ -20,9 -20,8 +20,9 @@@ import { useSavedItems } from "../hooksimport { CareerLoadError } from "../load-state";import { formatMoney } from "../offer-compare";import { useRemoving } from "../removing";- import { CollapseRow, FilterChip, tabLabel, useCareerTime, withUndo } from "../shared";+ import { CollapseRow, FilterChip, tabLabel, useCareerTime, withQueryUndo } from "../shared";+import { AiResultUsage } from "@/features/ai/usage";- import { orpc } from "@/libs/orpc/client";+ import { client, orpc, prepareRpc } from "@/libs/orpc/client";const KINDS: { kind: SavedItemKind; icon: IconName; tab: WorkspaceTab | null }[] = [{ kind: "fit", icon: "list-checks", tab: "fit" },