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
39 changes: 39 additions & 0 deletions app/api/sample-results/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import { NextResponse } from "next/server";

const SAMPLE_RESULTS_URL = "https://monadic-dna-explorer.nyc3.cdn.digitaloceanspaces.com/monadic_dna_explorer_results_2026-05-19.tsv";

export async function GET() {
try {
const upstream = await fetch(SAMPLE_RESULTS_URL, {
method: "GET",
cache: "no-store",
});

if (!upstream.ok) {
return NextResponse.json(
{ error: `Sample results upstream failed with status ${upstream.status}` },
{ status: 502 }
);
}

const data = await upstream.arrayBuffer();
const contentType = upstream.headers.get("content-type") || "text/tab-separated-values; charset=utf-8";
const contentLength = upstream.headers.get("content-length") || String(data.byteLength);

return new NextResponse(data, {
status: 200,
headers: {
"Content-Type": contentType,
"Content-Length": contentLength,
"Content-Disposition": "inline; filename=\"monadic_dna_explorer_results_2026-05-19.tsv\"",
"Cache-Control": "no-store",
},
});
} catch (error) {
console.error("[sample-results] Failed to fetch sample results:", error);
return NextResponse.json(
{ error: error instanceof Error ? error.message : "Failed to fetch sample results" },
{ status: 500 }
);
}
}
1 change: 1 addition & 0 deletions app/components/ConversionOnboarding.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// MOTHBALLED 2026-05-19: The conversion onboarding flow is preserved for reference, but active entry points now use the lightweight new-user choice modal.
"use client";

import { useCallback, useEffect, useMemo, useRef, useState } from "react";
Expand Down
19 changes: 19 additions & 0 deletions app/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,25 @@ export default function Footer() {
</a>
. All rights reserved.
</p>
<p className="footer-legal-links">
<a
href="https://github.com/Monadic-DNA/Explorer/blob/main/terms_and_conditions.md"
target="_blank"
rel="noopener noreferrer"
className="footer-link"
>
Terms and Conditions
</a>
{" · "}
<a
href="https://github.com/Monadic-DNA/Explorer/blob/main/privacy_policy.md"
target="_blank"
rel="noopener noreferrer"
className="footer-link"
>
Privacy Policy
</a>
</p>
</div>

<div className="footer-section">
Expand Down
Loading
Loading