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-203

Amruth Pillai4f1bdec0d03d
diff --cc apps/mobile/locales/bn-BD.po
index 443c027d2,2ff246900..66a56c279
--- a/apps/mobile/locales/bn-BD.po
+++ b/apps/mobile/locales/bn-BD.po
@@@ -947,9 -951,13 +951,13 @@@ msgstr "
msgid "+{0} more"
msgstr "আরও +{0}টি"
+ #: src/features/career/offers.tsx
+ msgid "≈ {yearly} a year ({months} × {monthly})"
+ msgstr "≈ বছরে {yearly} ({months} × {monthly})"
+
#: src/features/write/section-sheet.tsx
msgid "1 column, inline"
-msgstr "1 কলাম, ইনলাইন"
+msgstr "১ কলাম, ইনলাইন"
#: src/features/application-detail/hooks.ts
msgid "1 day"
diff --cc apps/mobile/locales/fa-IR.po
index 3029a6412,5dff2e9cd..7c6107555
--- a/apps/mobile/locales/fa-IR.po
+++ b/apps/mobile/locales/fa-IR.po
@@@ -947,9 -951,13 +951,13 @@@ msgstr "
msgid "+{0} more"
msgstr "+{0} بیشتر"
+ #: src/features/career/offers.tsx
+ msgid "≈ {yearly} a year ({months} × {monthly})"
+ msgstr "≈ سالانه {yearly} ({months} × {monthly})"
+
#: src/features/write/section-sheet.tsx
msgid "1 column, inline"
-msgstr "1 ستون، درون خطی"
+msgstr "۱ ستون، درون خطی"
#: src/features/application-detail/hooks.ts
msgid "1 day"
diff --cc apps/mobile/locales/mr-IN.po
index ac326cf20,c5728747e..8f94f1300
--- a/apps/mobile/locales/mr-IN.po
+++ b/apps/mobile/locales/mr-IN.po
@@@ -947,9 -951,13 +951,13 @@@ msgstr "
msgid "+{0} more"
msgstr "+{0} अधिक"
+ #: src/features/career/offers.tsx
+ msgid "≈ {yearly} a year ({months} × {monthly})"
+ msgstr "≈ वर्षाला {yearly} ({months} × {monthly})"
+
#: src/features/write/section-sheet.tsx
msgid "1 column, inline"
-msgstr "1 स्तंभ, इनलाइन"
+msgstr "१ स्तंभ, इनलाइन"
#: src/features/application-detail/hooks.ts
msgid "1 day"
diff --cc apps/mobile/scripts/experience.test.mjs
index 2fea4ec00,b3104213e..efcd048b4
--- a/apps/mobile/scripts/experience.test.mjs
+++ b/apps/mobile/scripts/experience.test.mjs
@@@ -91,13 -95,14 +100,18 @@@ const mocks =
},
react,
"react-native": { View: "View", Pressable: "Pressable", ScrollView: "ScrollView", Platform: { OS: "android" } },
- "expo-router": { useRouter: () => router, useLocalSearchParams: () => ({}), Stack: { Screen: "StackScreen" } },
+ "expo-router": {
+ useIsFocused: () => true,
+ useRouter: () => router,
+ useLocalSearchParams: () => searchParams,
+ Stack: { Screen: "StackScreen" },
+ },
- "@lingui/react/macro": { useLingui: () => ({ t: tag, i18n: { locale: "en-US" } }) },
- "@lingui/core/macro": { t: tag, plural: (value, forms) => forms.other.replace("#", String(value)) },
+ "@lingui/react/macro": { useLingui: () => ({ t: tag, i18n: { number: i18n.number.bind(i18n), locale: "en-US" } }) },
+ "@lingui/core/macro": {
+ ph: (named) => Object.values(named)[0],
+ t: tag,
+ plural: (value, forms) => forms.other.replace("#", String(value)),
+ },
"@reactive-resume/ai/task-models": {
aiModelForTask: (provider, task) =>
(task === "capable" ? provider.capableModel : provider.fastModel) ?? provider.model,
diff --cc apps/mobile/scripts/power-user-repairs.test.mjs
index fc6a02d3a,d0f955f30..7962e42c8
--- a/apps/mobile/scripts/power-user-repairs.test.mjs
+++ b/apps/mobile/scripts/power-user-repairs.test.mjs
@@@ -90,14 -88,14 +90,19 @@@ const common =
Platform: { OS: "android" },
BackHandler: { addEventListener: () => ({ remove() {} }) },
},
- "expo-router": { useRouter: () => router, useLocalSearchParams: () => ({}), Stack: { Screen: "StackScreen" } },
+ "expo-router": {
+ useRouter: () => router,
+ useLocalSearchParams: () => ({}),
+ useIsFocused: () => true,
+ Stack: { Screen: "StackScreen" },
+ },
- "@lingui/react/macro": { useLingui: () => ({ t: tag }) },
- "@lingui/core/macro": { t: tag, plural: (value, forms) => forms.other.replace("#", String(value)) },
+ "@lingui/core": { i18n },
+ "@lingui/react/macro": { useLingui: () => ({ t: tag, i18n }) },
+ "@lingui/core/macro": {
+ t: tag,
+ ph: (values) => Object.values(values)[0],
+ plural: (value, forms) => forms.other.replace("#", String(value)),
+ },
"@/ui": ui,
"@/routes": { routes },
};
diff --cc apps/mobile/src/features/career/offers.tsx
index ddde10a61,972ed66f2..87a3c3d1a
--- a/apps/mobile/src/features/career/offers.tsx
+++ b/apps/mobile/src/features/career/offers.tsx
@@@ -1,13 -1,12 +1,13 @@@
import type { SavedItem } from "./hooks";
import type { ApplicationSummary } from "@/features/applications/types";
import type { CareerProfileData, OfferTerms } from "@reactive-resume/schema/career";
+import { i18n } from "@lingui/core";
import { plural, t } from "@lingui/core/macro";
import { useLingui } from "@lingui/react/macro";
- import { useLocalSearchParams, useRouter } from "expo-router";
- import { useState } from "react";
+ import { useIsFocused, useLocalSearchParams, useRouter } from "expo-router";
+ import { useEffect, useState } from "react";
import { View } from "react-native";
- import { selectOfferPair } from "@reactive-resume/schema/career-offer";
+ import { annualBaseHint, bonusAmount, selectOfferPair } from "@reactive-resume/schema/career-offer";
import { formatDateOnly } from "@reactive-resume/utils/timezone";
import { useCareerQueries, useCareerTime, useNow, useOffers } from "./hooks";
import { client } from "./hooks";
diff --cc apps/mobile/src/features/workspace/tabs/apply.tsx
index 2dc64a57f,e520657b6..ccaa7949f
--- a/apps/mobile/src/features/workspace/tabs/apply.tsx
+++ b/apps/mobile/src/features/workspace/tabs/apply.tsx
@@@ -718,10 -734,7 +735,12 @@@ function Checklist(
<Block
title={t`Review checks`}
trailing={
- <Text
- variant="callout"
- color="ink2"
- >{t`${ph({ done: i18n.number(done) })} of ${ph({ total: i18n.number(total) })}`}</Text>
- !submitted && !readOnly ? <Text variant="callout" color="ink2">{t`${done} of ${total}`}</Text> : undefined
++ !submitted && !readOnly ? (
++ <Text
++ variant="callout"
++ color="ink2"
++ >{t`${ph({ done: i18n.number(done) })} of ${ph({ total: i18n.number(total) })}`}</Text>
++ ) : undefined
}
>
{!submitted && !readOnly ? <PriorNoResponse company={application.company} excludeId={application.id} /> : null}
diff --cc apps/web/src/features/career/workspace/apply.tsx
index 6a897de30,f4c93f9f2..9301d6a47
--- a/apps/web/src/features/career/workspace/apply.tsx
+++ b/apps/web/src/features/career/workspace/apply.tsx
@@@ -844,10 -860,12 +861,12 @@@ function Checklist(
<h2 className="text-sm font-semibold">
<Trans>Review checks</Trans>
</h2>
- <span className="text-xs text-ink-2 tabular-nums">{t`${ph({ done: i18n.number(done) })} of ${i18n.number(items.length)}`}</span>
+ {!submitted && !readOnly && (
- <span className="text-xs text-ink-2 tabular-nums">{t`${done} of ${items.length}`}</span>
++ <span className="text-xs text-ink-2 tabular-nums">{t`${ph({ done: i18n.number(done) })} of ${i18n.number(items.length)}`}</span>
+ )}
</div>
<ul className="grid gap-2.5">
- {items.map((label, index) => (
+ {items.map(({ label, index }) => (
<li key={label}>
<label className="flex cursor-pointer gap-2.5 text-[13px] leading-[19px]">
<Checkbox