Example layout
The workbench is one frame and one screen. Home asks for the person. Search puts the copilot beside the criteria and the results. Adjust opens the filters for each condition: the rung that must match, or rank only. History is the saved list. Turn a piece on to mount it. The code is that same tree.
leading is where the product name goes. The host still supplies the transcript, the columns, the rows, and the open profile. New search returns to Home. The Search tab opens the workspace, and History opens the saved list.
Say what to add, change or drop. Pasting a new request starts a new search.
Find ICU nurses in Texas.
I found three candidates who match your search.
ICU nurses in Texas
| Name | Title · company | Place | |
|---|---|---|---|
| ICU Registered Nurse · North Loop Medical Center | Austin, Texas | 8 yrs | |
| Critical Care Nurse · Oak Ridge Hospital | Dallas, Texas | 6 yrs |
Criteria
128 people
Role
Place
Years
SourcingScreen.tsx
import {
AdjustFrame,
BotNote,
Composer,
CopilotFrame,
CriteriaBar,
ResultsBoard,
RungOption,
SourcingTheme,
WorkbenchFrame,
YouNote,
} from '@search-engine-sdk/react';
import '@search-engine-sdk/react/styles.css';
export function SourcingScreen() {
return (
<SourcingTheme mode="light" style={{ height: '100%' }}>
<WorkbenchFrame
tab="search"
onTab={setTab}
leading={<span>Sourcing</span>}
title="ICU nurses in Texas"
account="ada@example.com"
onSignOut={signOut}
onNewSearch={start}
>
<CopilotFrame style={{ width: 240, flex: 'none' }} footer={<Composer disabled={false} running={false} onSubmit={send} embedded />}>
<YouNote>Find ICU nurses in Texas.</YouNote>
<BotNote>I found three candidates who match your search.</BotNote>
</CopilotFrame>
<div style={{ display: 'flex', minWidth: 0, minHeight: 0, flex: 1, flexDirection: 'column' }}>
<CriteriaBar
segments={[
{ text: 'ICU nurses ' },
{ key: 'place', label: 'in Texas', filtered: true, title: 'Texas' },
]}
onAdjust={openAdjust}
/>
<div style={{ display: 'flex', minHeight: 0, flex: 1 }}>
<ResultsBoard match="2" shown="Showing 2" columns={columns} rows={rows} />
</div>
</div>
</WorkbenchFrame>
<AdjustFrame onClose={closeAdjust}>
<header style={{ padding: '16px 20px', borderBottom: '1px solid var(--asdk-line)' }}>
<h2 id="adjust-title" style={{ margin: 0, fontSize: 16 }}>Criteria</h2>
<p style={{ margin: '4px 0 0', fontSize: 22 }}><strong>128</strong> <span style={{ fontSize: 14 }}>people</span></p>
</header>
<div style={{ overflow: 'auto', padding: '12px 20px' }}>
<section style={{ marginBottom: 10, padding: '10px 12px', border: '1px solid var(--asdk-line)', borderRadius: 8 }}>
<h3 style={{ margin: '0 0 6px', fontSize: 14 }}>Role</h3>
<RungOption name="role" checked label="ICU nurse" how="Critical care on a hospital unit" people={{ n: 1280, over: false, dim: false }} auto onChange={() => pick('role', 'icu')} />
<RungOption name="role" checked={false} label="Registered nurse" how="Any nursing license" people={{ n: 18400, over: false, dim: false }} onChange={() => pick('role', 'rn')} />
</section>
<section style={{ marginBottom: 10, padding: '10px 12px', border: '1px solid var(--asdk-line)', borderRadius: 8 }}>
<h3 style={{ margin: '0 0 6px', fontSize: 14 }}>Place</h3>
<RungOption name="place" checked label="Texas" how="License or job in Texas" people={{ n: 640, over: false, dim: false }} onChange={() => pick('place', 'texas')} />
<RungOption name="place" checked={false} label="don't filter — rank only" weak onChange={() => pick('place', 'rank')} />
</section>
<section style={{ marginBottom: 10, padding: '10px 12px', border: '1px solid var(--asdk-line)', borderRadius: 8 }}>
<h3 style={{ margin: '0 0 6px', fontSize: 14 }}>Years</h3>
<RungOption name="years" checked label="5 years or more" how="Years of ICU experience" people={{ n: 210, over: false, dim: false }} onChange={() => pick('years', 'five')} />
<RungOption name="years" checked={false} label="don't filter — rank only" weak onChange={() => pick('years', 'rank')} />
</section>
</div>
<footer style={{ display: 'flex', justifyContent: 'flex-end', gap: 8, padding: '12px 20px', borderTop: '1px solid var(--asdk-line)' }}>
<button type="button" className="asdk-button" onClick={closeAdjust}>Discard</button>
<button type="button" className="asdk-button asdk-button-primary" onClick={closeAdjust}>Save</button>
</footer>
</AdjustFrame>
</SourcingTheme>
);
}