{error && {error}}
} title={__('Local business', 'ai-rank-suite')}
subtitle={__('One record, published as LocalBusiness schema and reused by every “near me” answer Google, ChatGPT and Perplexity give about you', 'ai-rank-suite')}
action={
{s.enabled ? (
{openNow.label}
{openNow.until ? ` · ${openNow.until}` : ''}
) : (
{__('Not published — nothing is emitted yet', 'ai-rank-suite')}
)}
Site timezone: {data.timezone || 'UTC'}
{/*
* What is left, as a task rather than a verdict.
*
* This was a column of red REQUIRED badges — every gap
* listed at equal weight, which reads as a punishment
* list and gives no idea how much work is actually left
* or where to do it. A bar, a count, and one button that
* opens the tab holding the next gap.
*/}
{missing.length === 0 ? (
{__('Nothing left to fill in. The Output tab shows exactly what search engines and assistants will read.', 'ai-rank-suite')}
) : (
(() => {
// Which tab each check belongs to, so the button can
// send someone to the field rather than to the page.
const TAB_OF = {
hours: 'hours',
areas: 'reach',
services: 'reach',
payment: 'reach',
locations: 'locations',
};
const tabFor = (c) => TAB_OF[c.id] || 'profile';
/*
* Go to the field, not just to its tab.
*
* This only called setTab, and the field it is
* about is usually on the profile tab, which is
* the tab already open — so "Fill in street and
* number" set the tab to the one you were on,
* scrolled nowhere, and did nothing at all that
* anybody could see. Reported, fairly, as a dead
* button.
*
* The tab still has to change first for the
* cases where the field is elsewhere, and the
* scroll waits a frame so the new tab has
* rendered before we look for the input.
*/
const goToField = (c) => {
setTab(tabFor(c));
window.requestAnimationFrame(() => {
const el = document.querySelector(`[data-airanksuite-field="${c.id}"]`);
if (!el) return;
el.scrollIntoView({ behavior: 'smooth', block: 'center' });
// Focus after the scroll, or the browser jumps twice.
window.setTimeout(() => el.focus({ preventScroll: true }), 350);
});
};
const req = missing.filter((c) => c.tier === 'required');
const rec = missing.filter((c) => c.tier === 'recommended');
const first = req[0] || rec[0] || missing[0];
const doneReq = (completeness.checks || []).filter((c) => c.tier === 'required' && c.ok).length;
const totalReq = (completeness.checks || []).filter((c) => c.tier === 'required').length;
return (
{tab === 'profile' && (
<>
} title={__('Identity', 'ai-rank-suite')} subtitle={__('Who the business is, in the words an assistant will repeat', 'ai-rank-suite')}>
} title={__('Address', 'ai-rank-suite')}
subtitle={__('The NAP — name, address, phone — that must match your Google Business Profile character for character', 'ai-rank-suite')}
>
{__('A street name is ambiguous — dozens of German towns have a Bahnhofstraße 1. Coordinates remove the guess, which is what decides whether you appear in a map pack for the right town. The lookup uses OpenStreetMap and needs no account; you can also paste the pair from Google Maps by right-clicking your pin.', 'ai-rank-suite')}
} title={__('Images', 'ai-rank-suite')} subtitle={__('Google puts a picture next to a local result — without one, your listing is plain text', 'ai-rank-suite')}>
update({ logo_url: v })}
hint={__('Square, at least 112×112, on a plain background.', 'ai-rank-suite')}
/>
update({ image_url: v })}
hint={__('The storefront, the practice, the workshop. At least 1200px wide.', 'ai-rank-suite')}
/>
} title={__('Commercial details', 'ai-rank-suite')} subtitle={__('Answers to the questions people ask before they walk in', 'ai-rank-suite')}>
{__('A practice that closes between 12 and 13 but publishes 09:00–17:00 tells an assistant it is open at 12:30. Two windows per day is the shape Google expects, and it is what stops someone standing in front of a locked door.', 'ai-rank-suite')}
{__('No exceptions yet. Christmas, a public holiday, a week of stocktaking — each one entered here is a question your phone does not have to answer.', 'ai-rank-suite')}
) : (
{__('From', 'ai-rank-suite')}
{__('To (optional)', 'ai-rank-suite')}
{__('Label', 'ai-rank-suite')}
{__('Closed', 'ai-rank-suite')}
{__('Hours', 'ai-rank-suite')}
{(s.special_hours || []).map((entry, i) => {
// A closure that has already happened is not emitted any
// more, so saying so beats letting the row look active.
const past = (entry.until || entry.date || '') < today;
return (
setList('special_hours', i, { date: e.target.value })}
/>
setList('special_hours', i, { until: e.target.value })}
/>
)}
>
)}
{tab === 'locations' && (
} title={__('Branches', 'ai-rank-suite')}
subtitle={__('Each branch becomes its own LocalBusiness node, linked back to head office as its parent', 'ai-rank-suite')}
action={
}
>
{(s.locations || []).length === 0 ? (
{__('One location so far. Add branches if you have several — every field left empty inherits from the main profile, so a second surgery in the next town usually needs nothing but a street and a phone number. List them on any page with', 'ai-rank-suite')}{' '}
[airanksuite_locations].
)}
)}
{tab === 'reach' && (
<>
} title={__('Service areas', 'ai-rank-suite')}
subtitle={__('The towns and districts you travel to — the answer to “do you come to …?”', 'ai-rank-suite')}
>
update({ areas: v })}
placeholder={__('Add a town or district and press Enter', 'ai-rank-suite')}
/>
{__('A plumber, a mobile physiotherapist or a wedding photographer serves a radius, not a shopfront. Listing those places as areaServed is what lets you appear for a town you have no office in — and it is the only local signal available at all to a business that works from home and publishes no address.', 'ai-rank-suite')}
{__('Nothing listed. “What does a check-up cost?” is one of the most common questions asked of an assistant, and a priced service here is a concrete answer it can give — with your name attached. Render them on a page with', 'ai-rank-suite')}{' '}
[airanksuite_services].
) : (
{(s.services || []).map((service, i) => (
setList('services', i, { name: e.target.value })}
/>
setList('services', i, { price: e.target.value })}
/>
setList('services', i, { currency: e.target.value })}
/>
setList('services', i, { description: e.target.value })}
/>
setList('services', i, { url: e.target.value })}
/>
{__('None yet. Use this when one address houses several distinct practices — an orthodontist inside a dental clinic, a tax adviser inside a law firm — so each can be found on its own terms.', 'ai-rank-suite')}
) : (
{(s.departments || []).map((dept, i) => (
setList('departments', i, { name: e.target.value })}
/>
setList('departments', i, { phone: e.target.value })}
/>
setList('departments', i, { email: e.target.value })}
/>
))}
)}
} title={__('Amenities', 'ai-rank-suite')} subtitle={__('“Is it wheelchair accessible?” is a question with a schema answer', 'ai-rank-suite')}>
({ key, label }))}
value={s.amenities || []}
onChange={(v) => update({ amenities: v })}
/>
} title={__('Linked profiles', 'ai-rank-suite')} subtitle={__('Published as sameAs — how an engine confirms you are one entity', 'ai-rank-suite')}>
update({ profiles: v })}
placeholder="https://www.google.com/maps/place/…"
/>
{__('Your Google Business Profile first, then the directories your industry actually uses — Facebook, LinkedIn, Instagram, Jameda, an industry register. Each one is a claim that the entity at that URL and the entity on this site are the same, which is what lets an assistant merge the reviews and the opening hours into a single confident answer.', 'ai-rank-suite')}
} title={__('Languages spoken', 'ai-rank-suite')} subtitle={__('Published as knowsLanguage', 'ai-rank-suite')}>
update({ languages: v })}
suggestions={LANGUAGE_SUGGESTIONS}
placeholder={__('Add a language', 'ai-rank-suite')}
/>
} title={__('Action links', 'ai-rank-suite')} subtitle={__('Where an assistant sends someone who wants to act', 'ai-rank-suite')}>
>
)}
{tab === 'listings' && (
{
// A URL typed for Bing/Apple lands in the form; an import from
// Google reloads the record so the Profile tab shows it.
if (patch) update(patch);
else reload();
}}
/>
)}
{tab === 'output' && (
<>
} title={__('Structured data', 'ai-rank-suite')}
subtitle={__('Exactly what is printed on your home page — no view-source needed', 'ai-rank-suite')}
action={
preview?.test && (
{__('Open in Google\'s Rich Results Test ↗', 'ai-rank-suite')}
)
}
>
{!preview ? (
{__('Loading the preview…', 'ai-rank-suite')}
) : (
{preview.active ? __('Published on the home page', 'ai-rank-suite') : __('Not published — switch “Publish” on', 'ai-rank-suite')}
{sprintf(_n('%d node in the graph', '%d nodes in the graph', preview.nodes, 'ai-rank-suite'), preview.nodes)}
)}
} title={__('Shortcodes', 'ai-rank-suite')} subtitle={__('Drop the business data into any page, post or widget', 'ai-rank-suite')}>
{__('Shortcode', 'ai-rank-suite')}
{__('What it renders', 'ai-rank-suite')}
{[
['[airanksuite_business_address]', __('Full address block, marked up as ', 'ai-rank-suite')],
['[airanksuite_business_hours]', __('Opening-hours table, including upcoming holiday closures', 'ai-rank-suite')],
['[airanksuite_business_hours special="no"]', __('The weekly grid only, without exceptions', 'ai-rank-suite')],
['[airanksuite_business_phone]', __('Click-to-call phone number', 'ai-rank-suite')],
['[airanksuite_open_now]', __('Live “Open now / Closed” badge in the site timezone', 'ai-rank-suite')],
['[airanksuite_business_map]', __('Address as a link to your map pin', 'ai-rank-suite')],
['[airanksuite_services]', __('Your service list with prices', 'ai-rank-suite')],
['[airanksuite_locations]', __('Every branch, one address block each', 'ai-rank-suite')],
].map(([code, desc]) => (
{code}
{desc}
))}
} title={__('Profile checklist', 'ai-rank-suite')} subtitle={__('Everything that goes into the score, in one list', 'ai-rank-suite')}>
{__('Field', 'ai-rank-suite')}
{__('Weight', 'ai-rank-suite')}
{__('Why it matters', 'ai-rank-suite')}
{completeness.checks.map((check) => (
{check.ok ? '✓' : '○'}
{check.label}
{TIER_LABEL[check.tier]}
{check.hint || '—'}
))}
>
)}
{/* The form is five tabs deep now; a save button that lives at the bottom
of one of them is a save button somebody will miss. */}
{saved && ✓ {__('Saved', 'ai-rank-suite')}}
{s.enabled
? __('Published on the home page as LocalBusiness structured data.', 'ai-rank-suite')
: __('Not published yet — turn on “Publish” at the top.', 'ai-rank-suite')}