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 app/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function App() {
meta: {
title: 'RevMind | architecture from your knowledge graph',
description:
'RevMind — architecture from your knowledge graph. A RevealFleet product. Not a public Architecture SKU.',
'Explore an example knowledge graph and its relationships. RevMind displays demonstration data.',
},
},
{
Expand Down
4 changes: 2 additions & 2 deletions app/lib/__tests__/honesty.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ describe('RevMind honesty', () => {
});

it('refuses a public Architecture SKU', () => {
expect(DIAGRAM_HONESTY).toContain('architecture from your knowledge graph');
expect(DIAGRAM_HONESTY).toContain('not a public Architecture SKU');
expect(DIAGRAM_HONESTY).toContain('example knowledge graph');
expect(DIAGRAM_HONESTY).toContain('demonstration data');
});

it('ships a demo snapshot with named nodes', () => {
Expand Down
2 changes: 1 addition & 1 deletion app/lib/honesty.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** Safe honesty line — RevMind is not a public Architecture SKU. */
export const DIAGRAM_HONESTY =
'architecture from your knowledge graph; not a public Architecture SKU' as const;
'Explore an example knowledge graph and the relationships it contains. This view uses demonstration data.' as const;

export const PRODUCT_NAME = 'RevMind' as const;

Expand Down
2 changes: 1 addition & 1 deletion app/routes/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function HomePage() {
<p className="max-w-2xl text-base text-muted-foreground">{DIAGRAM_HONESTY}</p>
</div>
<div className="rounded-xl border border-border bg-card p-4 sm:p-6">
<h2 className="mb-4 text-sm font-medium text-foreground">Demo graph</h2>
<h2 className="mb-4 text-sm font-medium text-foreground">Example graph</h2>
<GraphCanvas snapshot={DEMO_SNAPSHOT} />
</div>
</section>
Expand Down
6 changes: 3 additions & 3 deletions app/routes/NotFoundPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ export function NotFoundPage() {
<div className="text-center">
<p className="text-sm font-semibold uppercase tracking-widest text-primary">404</p>
<h1 className="mt-2 text-3xl font-bold tracking-tight text-foreground sm:text-4xl">
Page not found
This page isn't available.
</h1>
<p className="mt-4 max-w-md text-base text-muted-foreground">
The page you are looking for is not here.
Return to the example graph to continue exploring.
</p>
<div className="mt-8 flex items-center justify-center">
<LinkButton href="/">Return home</LinkButton>
<LinkButton href="/">Return to the example graph</LinkButton>
</div>
</div>
</section>
Expand Down
9 changes: 7 additions & 2 deletions app/routes/__tests__/NotFoundPage.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ function renderApp(path: string) {
describe('NotFoundPage', () => {
it('renders a 404 heading for unknown paths', () => {
renderApp('/does-not-exist');
expect(screen.getByRole('heading', { level: 1, name: 'Page not found' })).toBeInTheDocument();
expect(screen.getByRole('link', { name: 'Return home' })).toHaveAttribute('href', '/');
expect(
screen.getByRole('heading', { level: 1, name: "This page isn't available." }),
).toBeInTheDocument();
expect(screen.getByRole('link', { name: 'Return to the example graph' })).toHaveAttribute(
'href',
'/',
);
});
});
Loading