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
3 changes: 0 additions & 3 deletions apps/maple-research/frontend/bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion apps/maple-research/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
},
"dependencies": {
"@mapleai/sdk": "file:../../../sdk",
"@opensecret/react-v1": "npm:@opensecret/react@3.4.1",
"@radix-ui/react-alert-dialog": "^1.1.15",
"@radix-ui/react-checkbox": "^1.3.3",
"@radix-ui/react-dialog": "^1.1.15",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { describe, expect, test } from "bun:test";
import { renderToStaticMarkup } from "react-dom/server";

import { DesktopSignInUpdateRequired } from "./DesktopSignInUpdateRequired";

describe("DesktopSignInUpdateRequired", () => {
test("tells an unsupported release to update and links to the download page", () => {
const markup = renderToStaticMarkup(<DesktopSignInUpdateRequired />);

expect(markup).toContain("Update Maple to sign in");
expect(markup).toContain("no longer supported");
expect(markup).toContain('href="https://maple.ai/research#download"');
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { Button } from "@/components/ui/button";
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
import { MARKETING_DOWNLOADS_URL } from "@/config/domains";

/**
* Shown instead of the application when a Maple release from before
* Transport V2 opens the hosted sign-in page. The backend no longer serves
* that release, so the only way forward is a current build.
*/
export function DesktopSignInUpdateRequired() {
return (
<Card className="max-w-md mx-auto mt-20">
<CardHeader>
<CardTitle>Update Maple to sign in</CardTitle>
</CardHeader>
<CardContent>
<p className="mb-4">
This version of Maple is no longer supported and can&apos;t sign in. Install the latest
version, then sign in again.
</p>
<Button asChild>
<a href={MARKETING_DOWNLOADS_URL}>Download Maple</a>
</Button>
</CardContent>
</Card>
);
}
Loading