Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/applications-launcher-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function launcherAppsForSession(canAccessFavourites: boolean): LauncherApp[] {

const toolsLauncherCopy = {
heading: "Tools",
description: "Assessment, prescribing, and clinical workflows.",
description: "Assessment, prescribing, workflows.",
allSectionLabel: "All tools",
countNoun: "tools",
emptyTitle: "No tools match",
Expand Down
2 changes: 1 addition & 1 deletion src/components/clinical-dashboard/differentials-home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1267,7 +1267,7 @@ export function DifferentialsHome({
<ModeHomeTemplate
testId="differentials-home-template"
title="Differentials"
subtitle="Match your catalogue against your indexed library."
subtitle="Match your catalogue to your library."
icon={BrainCircuit}
headingLevel={1}
desktopComposerSlotId={desktopComposerSlotId}
Expand Down
2 changes: 1 addition & 1 deletion src/components/clinical-dashboard/favourites-hub.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export function FavouritesHub({
<ModeHomeHero
testId="favourites-home"
title="Favourites"
subtitle="Notes, sources, and clinical sets, ready to reuse."
subtitle="Saved notes, sources, and sets."
icon={Heart}
headingLevel={headingLevel}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ function MedicationHome({
<ModeHomeTemplate
testId="medication-home"
title="Medication"
subtitle="Search a medication or prescribing question."
subtitle="Medication dosing and safety."
icon={Pill}
headingLevel={2}
desktopComposerSlotId={desktopComposerSlotId}
Expand Down
2 changes: 1 addition & 1 deletion src/components/dsm/dsm-home-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function DsmHomePage() {
<ModeHomeTemplate
testId="dsm-home"
title="DSM-5 Diagnosis"
subtitle="Diagnostic criteria, specifiers, and comparisons."
subtitle="Criteria, specifiers, and comparisons."
icon={BookOpenCheck}
actionsLabel="DSM-5 Diagnosis actions"
desktopComposerSlotId={modeHomeDesktopComposerSlotId}
Expand Down
2 changes: 1 addition & 1 deletion src/components/factsheets/factsheets-home-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function FactsheetsHomePage() {
<ModeHomeHero
testId="factsheets-home"
title="Factsheets"
subtitle="Plain-language patient handouts to print and share."
subtitle="Plain-language patient handouts."
icon={BookOpenText}
/>

Expand Down
2 changes: 1 addition & 1 deletion src/components/forms/forms-home-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export function FormsHomePage() {
<ModeHomeTemplate
testId="forms-home-template"
title="Forms"
subtitle="The complete WA MHA 2014 forms register."
subtitle="The WA MHA 2014 forms register."
icon={FileText}
desktopComposerSlotId={modeHomeDesktopComposerSlotId}
actionsLabel="Forms tasks"
Expand Down
2 changes: 1 addition & 1 deletion src/components/formulation/formulation-home-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function FormulationHome() {
<ModeHomeTemplate
testId="formulation"
title="Formulation"
subtitle="Build a structured clinical formulation from the evidence."
subtitle="Build a formulation from the evidence."
icon={Network}
actionsLabel="Formulation workflows"
desktopComposerSlotId={modeHomeDesktopComposerSlotId}
Expand Down
2 changes: 1 addition & 1 deletion src/components/services/services-home-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export function ServicesHomePage({ defaultServiceSlug = null }: { defaultService
<ModeHomeTemplate
testId="services-home-template"
title="Services"
subtitle="Search by need, catchment, or referral route."
subtitle="Search by need, catchment, or route."
icon={Users}
desktopComposerSlotId={modeHomeDesktopComposerSlotId}
actionsLabel="Service tasks"
Expand Down
2 changes: 1 addition & 1 deletion src/components/specifiers/specifiers-home-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function SpecifiersHome() {
<ModeHomeTemplate
testId="specifiers"
title="Specifiers"
subtitle="Refine diagnostic wording, exclusions, and episode patterns."
subtitle="Check specifier fit and exclusions."
icon={Tags}
actionsLabel="Specifier workflows"
desktopComposerSlotId={modeHomeDesktopComposerSlotId}
Expand Down
4 changes: 2 additions & 2 deletions src/components/therapy-compass/screens/home-screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export function HomeScreen() {

const therapyCountCopy =
b.therapies.length === 0
? "Source-grounded therapy records and clinical pathways."
: `${b.therapies.length} source-grounded therapy ${b.therapies.length === 1 ? "record" : "records"} and clinical pathways.`;
? "Source-grounded therapy records."
: `${b.therapies.length} source-grounded therapy ${b.therapies.length === 1 ? "record" : "records"}.`;

return (
<ModeHomeMain testId="therapy-compass-home" contentAlign="startOnPhone">
Expand Down
12 changes: 5 additions & 7 deletions tests/therapy-compass-data-recovery.dom.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,15 @@ describe("Therapy Compass required data recovery", () => {

expect(await screen.findByRole("status")).toHaveTextContent("Loading therapy library…");
expect(screen.getAllByRole("main")).toHaveLength(1);
expect(screen.queryByText(/Source-grounded therapy records and clinical pathways/)).not.toBeInTheDocument();
expect(screen.queryByText(/Source-grounded therapy records\./)).not.toBeInTheDocument();
expect(screen.queryByRole("heading", { name: "Therapy" })).not.toBeInTheDocument();

release(undefined);

await waitFor(() =>
expect(screen.getByText(/1 source-grounded therapy record and clinical pathways/)).toBeInTheDocument(),
);
await waitFor(() => expect(screen.getByText(/1 source-grounded therapy record\./)).toBeInTheDocument());
expect(screen.getByRole("heading", { name: "Therapy" })).toBeInTheDocument();
expect(screen.getAllByRole("main")).toHaveLength(1);
expect(screen.queryByText(/Source-grounded therapy records and clinical pathways/)).not.toBeInTheDocument();
expect(screen.queryByText(/Source-grounded therapy records\./)).not.toBeInTheDocument();
});

it("shows an honest load error, retries all required files, and recovers", async () => {
Expand All @@ -91,7 +89,7 @@ describe("Therapy Compass required data recovery", () => {
);

expect(screen.getByRole("status")).toHaveTextContent("Loading therapy library");
expect(screen.queryByText(/Source-grounded therapy records and clinical pathways/)).not.toBeInTheDocument();
expect(screen.queryByText(/Source-grounded therapy records\./)).not.toBeInTheDocument();
expect(screen.queryByRole("heading", { name: "Frequently used therapies" })).not.toBeInTheDocument();

expect(await screen.findByRole("alert")).toHaveTextContent("Therapy Compass could not load");
Expand All @@ -101,7 +99,7 @@ describe("Therapy Compass required data recovery", () => {
fireEvent.click(screen.getByRole("button", { name: "Retry" }));

expect(await screen.findByRole("heading", { name: "Therapy" })).toBeInTheDocument();
expect(screen.getByText(/1 source-grounded therapy record and clinical pathways/)).toBeInTheDocument();
expect(screen.getByText(/1 source-grounded therapy record\./)).toBeInTheDocument();
expect(screen.queryByRole("alert")).not.toBeInTheDocument();
await waitFor(() => expect(fetchMock).toHaveBeenCalledTimes(2));
});
Expand Down
Loading