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
11 changes: 9 additions & 2 deletions app/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,12 @@ export default async function CompetitorDetailPage({ params }: PageProps) {

<DeepDivePromo name={competitor.name} slug={competitor.slug} />

{intelligenceBrief && (isSelf ? <SelfBriefSection brief={intelligenceBrief} /> : <IntelligenceBriefSection brief={intelligenceBrief} />)}
{intelligenceBrief &&
(isSelf ? (
<SelfBriefSection brief={intelligenceBrief} />
) : (
<IntelligenceBriefSection brief={intelligenceBrief} />
))}

<HomepageSection data={homepageData} scan={homepageScan} health={healthFor(qualityByType, "homepage")} />

Expand Down Expand Up @@ -576,7 +581,9 @@ function SelfBriefSection({ brief }: { brief: Record<string, unknown> }) {
{icp && (
<>
<KVLabel>ICP SUMMARY</KVLabel>
<p style={{ margin: "0 0 18px", fontSize: 14, lineHeight: 1.55, color: "var(--ink)", textWrap: "pretty" }}>
<p
style={{ margin: "0 0 18px", fontSize: 14, lineHeight: 1.55, color: "var(--ink)", textWrap: "pretty" }}
>
{icp}
</p>
</>
Expand Down
10 changes: 2 additions & 8 deletions app/matrix/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ import { getAxisScore } from "@/lib/matrix/overrides";
import { PositioningMatrix, type MatrixPoint } from "@/components/matrix/PositioningMatrix";
import { MatrixDownloadButton } from "@/components/matrix/MatrixDownloadButton";
import { RDSPageShell, RDSHeader, RDSFooter, RDSEmpty, RDSKicker } from "@/components/rds";
import rivalConfigJson from "../../rivals.config.json";

export const dynamic = "force-dynamic";

export default async function MatrixPage() {
let matrixConfig: MatrixConfig;
let matrixExcluded = new Set<string>();
try {
const config = loadRivalConfig();
matrixConfig = config.matrix ?? DEFAULT_MATRIX_CONFIG;
matrixExcluded = new Set(config.competitors.filter((c) => c.matrix === false).map((c) => c.slug));
} catch (err) {
if (err instanceof Error && (err as NodeJS.ErrnoException).code === "ENOENT") {
matrixConfig = DEFAULT_MATRIX_CONFIG;
Expand All @@ -21,12 +21,6 @@ export default async function MatrixPage() {
}
}

const matrixExcluded = new Set(
(rivalConfigJson.competitors as Array<{ slug: string; matrix?: boolean }>)
.filter((c) => c.matrix === false)
.map((c) => c.slug)
);

const competitors = await prisma.competitor.findMany({
select: { id: true, name: true, slug: true, intelligenceBrief: true, manualData: true, isSelf: true },
where: matrixExcluded.size > 0 ? { slug: { notIn: [...matrixExcluded] } } : undefined,
Expand Down
8 changes: 7 additions & 1 deletion lib/tabstack/__tests__/research.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,13 @@ describe("runResearch", () => {
report: "Browser Use raised $17M [1].",
metadata: {
citedPages: [
{ id: "v1", url: "https://browser-use.com/posts/seed-round", title: "We Raised $17M", claims: [], sourceQueries: [] }
{
id: "v1",
url: "https://browser-use.com/posts/seed-round",
title: "We Raised $17M",
claims: [],
sourceQueries: []
}
]
}
}
Expand Down
Loading
Loading