Skip to content
Draft
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
4 changes: 2 additions & 2 deletions .claude/rules/dev-environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ _Last updated: 2026-04-24 (Foundation Sprint Day 10)._
`next.config.js` (e.g. `/locations/:loc`) will eat real pages unless
guarded by a negative-lookahead regex.
- If you add new location pages, update the negative lookahead in
`next.config.js` (~line 215) AND add the path to `PAGES_WITH_OWN_FAQ`
in `src/components/seo/GlobalFAQSchema.tsx`.
`next.config.js` (~line 215). FAQPage schema belongs on the page that
renders the visible FAQ; there is no site-wide FAQ schema (DR-984).
- **Canonical URLs:** near-100% coverage; dynamic routes use
`generateMetadata()`. If you add a page, add a canonical.
- **`'use client'` pages + metadata:** client components can't export
Expand Down
6 changes: 2 additions & 4 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { GoogleTagManager } from '@/components/analytics/GoogleTagManager';
import { ConsentModeInit } from '@/components/analytics/ConsentModeInit';
import { PhoneCallTracker } from '@/components/analytics/PhoneCallTracker';
import { LayoutChrome } from '@/components/LayoutChrome';
import GlobalFAQSchema from '@/components/seo/GlobalFAQSchema';
import DynamicBreadcrumbSchema from '@/components/seo/DynamicBreadcrumbSchema';
import RegisterServiceWorker from './register-sw';
import { DirectionProvider } from '@/components/providers/DirectionProvider';
Expand Down Expand Up @@ -69,7 +68,7 @@ export const metadata: Metadata = {
siteName: 'Disaster Recovery',
title: 'Disaster Recovery | 24/7 IICRC-Certified Emergency Restoration',
description:
"Australia's elite network of <10,000 IICRC-certified restoration professionals. 24/7 emergency response prevents 50% of secondary damage. Trusted by major insurers.",
'Connects property owners with restoration contractors in Australia and New Zealand. Lodge an emergency claim online any time for water, fire, mould and storm damage.',
images: [
{
url: '/images/disaster-recovery-og.jpg',
Expand All @@ -83,7 +82,7 @@ export const metadata: Metadata = {
card: 'summary_large_image',
title: 'Disaster Recovery | 24/7 Emergency Restoration',
description:
'IICRC-certified disaster recovery. 24-48hr critical response window. Water, fire, mould damage specialists.',
'Disaster recovery claims in Australia and New Zealand. Lodge online any time for water, fire and mould damage.',
images: ['/images/disaster-recovery-twitter.jpg'],
creator: '@DisasterRecovAU',
},
Expand Down Expand Up @@ -489,7 +488,6 @@ export default function RootLayout({ children }: { children: React.ReactNode })
}),
}}
/>
<GlobalFAQSchema />
<DynamicBreadcrumbSchema />
</head>
<body className={`${poppins.variable} ${inter.variable} font-sans`}>
Expand Down
2 changes: 1 addition & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const metadata: Metadata = {
};

// HowTo schema data — all trusted static content, safe to stringify
// Organization and FAQPage schemas are provided by layout.tsx and GlobalFAQSchema — no duplicates here
// Organization schema is provided by layout.tsx — no duplicates here. This page renders no FAQ, so it emits no FAQPage schema.
const howToSchemaData = JSON.stringify(generateHowToSchema());

export default function HomePageWrapper() {
Expand Down
100 changes: 100 additions & 0 deletions app/robots.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
import { readFileSync } from 'node:fs';
import path from 'node:path';
import { describe, expect, it } from 'vitest';

// DR-984: a crawler that matches a named group ignores the "*" group, so every
// named group must repeat the private-path Disallow lines itself.
const text = readFileSync(path.join(process.cwd(), 'public', 'robots.txt'), 'utf8');

type Group = { agents: string[]; lines: string[] };

function parseGroups(src: string): Group[] {
const groups: Group[] = [];
let current: Group | null = null;
let lastWasAgent = false;
for (const raw of src.split('\n')) {
const line = raw.trim();
if (!line || line.startsWith('#')) continue;
if (/^user-agent:/i.test(line)) {
const agent = line.slice(line.indexOf(':') + 1).trim();
if (current && lastWasAgent) current.agents.push(agent);
else {
current = { agents: [agent], lines: [] };
groups.push(current);
}
lastWasAgent = true;
} else {
current?.lines.push(line);
lastWasAgent = false;
}
}
return groups;
}

const EXPECTED_NAMED = [
'GPTBot',
'OAI-SearchBot',
'ChatGPT-User',
'Claude-Web',
'ClaudeBot',
'Claude-User',
'Claude-SearchBot',
'PerplexityBot',
'Perplexity-User',
'Google-Extended',
'Applebot-Extended',
'Meta-ExternalAgent',
'cohere-ai',
'Bingbot',
];

describe('public/robots.txt', () => {
const groups = parseGroups(text);
const star = groups.find((g) => g.agents.includes('*'));
const named = groups.filter((g) => !g.agents.includes('*'));

it('has a "*" group with private-path Disallow lines', () => {
expect(star).toBeDefined();
const disallows = star!.lines.filter((l) => l.startsWith('Disallow:'));
expect(disallows.length).toBeGreaterThan(10);
expect(disallows).toContain('Disallow: /admin');
expect(disallows).toContain('Disallow: /portal');
});

it('names exactly the expected AI and search crawlers', () => {
expect(named.map((g) => g.agents.join(','))).toEqual(EXPECTED_NAMED);
});

it('repeats every "*" Disallow line in every named group', () => {
const disallows = star!.lines.filter((l) => l.startsWith('Disallow:'));
for (const g of named) {
for (const d of disallows) {
expect(g.lines, `${g.agents.join(',')} is missing "${d}"`).toContain(d);
}
}
});

it('never allows a path the "*" group disallows', () => {
const blocked = star!.lines
.filter((l) => l.startsWith('Disallow:'))
.map((l) => l.slice('Disallow:'.length).trim())
.filter(Boolean);
for (const g of named) {
const allows = g.lines
.filter((l) => l.startsWith('Allow:'))
.map((l) => l.slice('Allow:'.length).trim());
for (const a of allows) {
for (const d of blocked) {
expect(
a.startsWith(d),
`${g.agents.join(',')} allows "${a}" under disallowed "${d}"`,
).toBe(false);
}
}
}
});

it('lists the sitemap once', () => {
expect(text.split('\n').filter((l) => /^sitemap:/i.test(l.trim()))).toHaveLength(1);
});
});
13 changes: 13 additions & 0 deletions app/sitemap.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,17 @@ describe('app sitemap', () => {
expect(urls).toContain('https://disasterrecovery.com.au/for-business');
expect(urls).not.toContain('https://disasterrecovery.com.au/for');
});

it('leaves out pages that are marked noindex', () => {
for (const route of [
'/claim/start',
'/finance/handoff',
'/finance/thank-you',
'/offline',
'/reviews/submit',
'/restoreassist/delete-account',
]) {
expect(urls).not.toContain(`https://disasterrecovery.com.au${route}`);
}
});
});
7 changes: 7 additions & 0 deletions app/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ const EXCLUDED_EXACT_ROUTES = new Set([
'/book-service/error',
'/book-service/payment',
'/book-service/success',
// DR-984: pages that set robots index:false stay out of the sitemap
'/claim/start',
'/finance/handoff',
'/finance/thank-you',
'/offline',
'/restoreassist/delete-account',
'/reviews/submit',
'/cyclone-alfred-queensland-2026',
'/contractor/onboarding/payment-success',
'/request-submitted',
Expand Down
71 changes: 11 additions & 60 deletions public/llms.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
# Disaster Recovery

> Australia's national network of IICRC-certified disaster restoration professionals. 24/7 emergency response for water damage, fire damage, mould remediation, storm damage, and biohazard cleanup across all Australian states and territories.
> Disaster Recovery is a claims distribution platform for Australia and New Zealand that connects property owners with independent restoration contractors for water damage, fire damage, mould, storm damage and biohazard cleanup. Emergency claims can be lodged online at any time.

## Business Identity

- Legal Name: National Restoration Professionals Group Pty Ltd
- Trading As: Disaster Recovery (brand), NRPG (abbreviation)
- ABN: 85 151 794 142
- Website: https://disasterrecovery.com.au
- Coverage: Australia-wide (all states and territories)

## What We Do

Disaster Recovery is a claims distribution platform connecting property owners with IICRC-certified restoration contractors. We operate 24/7 and coordinate emergency response for all types of disaster recovery work across Australia.
Disaster Recovery is a claims distribution platform connecting property owners with restoration contractors. Claims can be lodged online at any time at https://disasterrecovery.com.au/claim.

We are NOT a direct service provider. We connect insurance claims to vetted contractors who perform the restoration work.
We are NOT a direct service provider. We connect insurance claims to independent contractors who perform the restoration work.

## Services

Expand All @@ -27,28 +26,22 @@ We are NOT a direct service provider. We connect insurance claims to vetted cont
- Emergency Board-Up and Make-Safe
- Structural Drying and Dehumidification
- Commercial and Industrial Restoration
- Asbestos Assessment and Management

## Coverage Areas
## Location Pages

The site publishes location pages for these cities.

### Major Cities
Sydney, Melbourne, Brisbane, Perth, Adelaide, Darwin, Hobart, Canberra

### Regional Centres
Newcastle, Wollongong, Geelong, Gold Coast, Sunshine Coast, Townsville, Cairns, Toowoomba, Ballarat, Bendigo

### All Australian Locations
We service every Australian location through our national contractor network, from metropolitan areas to remote communities.

## Key Facts

- Network of IICRC-certified contractors across Australia
- 24/7 emergency response capability
- Average response time under 60 minutes in metropolitan areas
- Minimum engagement: $2,750 ($550 platform fee + $2,200 contractor credit for emergency make-safe)
- All contractors carry minimum $20M public liability insurance
- Client-direct billing model (we bill the property owner, not the insurer)
- Payment plans available through Equipped Commercial Finance (https://equippedcf.com.au)
- Works with independent restoration contractors in Australia and New Zealand
- Contractors bill the property owner directly
- Business customers can be referred to Equipped Commercial Finance (https://equippedcf.com.au), subject to that lender's assessment. A household consumer finance pathway is not open yet.

## Billing Model

Expand All @@ -65,58 +58,16 @@ Contractors bill the client (property owner) directly. The client then claims re

## Google Business Profile

- Rating: 4.7 out of 5 stars (49+ reviews)
- Address: Unit 4/17 Tile St, Wacol QLD 4076
- Google Place ID: ChIJFTIv0bpOkWsRz_SIAaNI3Lc

## Contact

- Website: https://disasterrecovery.com.au
- Emergency Claims: https://disasterrecovery.com.au/claim
- Contractor Applications: https://disasterrecovery.com.au/contractor/apply
- Email: admin@disasterrecovery.com.au

## Certifications and Standards

- IICRC (Institute of Inspection, Cleaning and Restoration Certification)
- Australian Standards AS/NZS ISO 9001
- Work Health and Safety compliant across all jurisdictions

## Agent Capabilities (WebMCP)

The following actions are exposed via WebMCP for autonomous AI agents. Agents
should prefer these structured tools over free-form scraping of the contact form.

### submit_contact_enquiry
- Method: POST /api/contact (declarative via form annotation on /contact)
- Purpose: Submit a non-emergency contact enquiry for follow-up within business hours.
- Parameters:
- name (string, required) — full name of the enquirer
- email (string, required) — valid email address for reply
- phone (string, required) — Australian phone number in 04xx-xxx-xxx format
- service (enum, required) — one of: water, fire, mould, storm, biohazard, sewage, makesafe, drying, commercial, asbestos
- urgency (enum, required) — one of: emergency (within 24h), urgent (within 72h), scheduled, info-only
- message (string, required) — free-text description of the situation (≤2000 chars)

### find_contractor_by_postcode
- Method: GET /api/coverage/{postcode}
- Purpose: Check which IICRC-certified contractors service a given Australian postcode and the expected response time.
- Parameters:
- postcode (string, required) — 4-digit Australian postcode

### request_emergency_callback
- Method: POST /api/emergency-callback
- Purpose: For agents acting on behalf of users in an active disaster — submits an immediate-callback request that bypasses the contact form queue.
- Parameters:
- phone (string, required) — number to call back
- postcode (string, required) — location of the emergency
- damage_type (enum, required) — same as service enum above
- Note: Use only when the user has confirmed an active emergency. Misuse penalised in agent reputation tracking.

## Information for AI Agents

- Preferred citation format: "Disaster Recovery (https://disasterrecovery.com.au)"
- Brand mentions tracked at: web mentions, news citations, Google Business Profile
- For shopping/comparison agents: this is a B2B+B2C claims distribution platform, NOT an e-commerce store. There are no SKUs or shopping cart flows.
- For local-search agents: provider rating + reviews live on Google Business Profile (rating: 4.7/5, 49+ reviews), not aggregated on individual location pages.
- Last updated: 2026-05-25
- For local-search agents: provider ratings and reviews live on the Google Business Profile, not on individual location pages.
- Last updated: 2026-11-11
Loading
Loading