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 __tests__/extension-save-job-route.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ describe('POST /api/extension/save-job', () => {
expect(json.ok).toBe(true);
expect(json.job_id).toMatch(/^[0-9a-f-]{36}$/);
expect(json.queue_id).toBe('queue-1');
expect(json.redirect_url).toBe('/dashboard');
expect(json.redirect_url).toBe('/jobs/queue');
});

it('reuses an existing tracked job and refreshes its queue entry', async () => {
Expand Down
11 changes: 3 additions & 8 deletions __tests__/production-smoke.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ describe('production smoke harness', () => {
if (url.endsWith('/jobs')) return new Response('<h1 id="jobs-heading">Jobs</h1>');
if (url.endsWith('/history')) return new Response('<h1 id="history-heading">History</h1>');
if (url.endsWith('/resume-builder'))
return new Response(
'<h1>Resume Builder</h1>Achievements &amp; sources<p>Extra experience</p>'
);
return new Response('<h1 id="resume-builder-master-heading">Resume Builder</h1>');
if (url.endsWith('/pricing')) return new Response('<h1>Tokens</h1>');
if (url.endsWith('/proof')) {
return new Response('<h1>TrueHire proof project</h1><h2>Candidate proof profile</h2>');
Expand Down Expand Up @@ -111,9 +109,7 @@ describe('production smoke harness', () => {
if (url.endsWith('/jobs')) return new Response('<h1 id="jobs-heading">Jobs</h1>');
if (url.endsWith('/history')) return new Response('<h1 id="history-heading">History</h1>');
if (url.endsWith('/resume-builder'))
return new Response(
'<h1>Resume Builder</h1>Achievements &amp; sources<p>Extra experience</p>'
);
return new Response('<h1 id="resume-builder-master-heading">Resume Builder</h1>');
if (url.endsWith('/pricing')) return new Response('<h1>Tokens</h1>');
if (url.endsWith('/proof')) {
return new Response('<h1>TrueHire proof project</h1><h2>Candidate proof profile</h2>');
Expand Down Expand Up @@ -198,8 +194,7 @@ describe('production smoke harness', () => {
'/history': '<h1 id="history-heading">History</h1>',
'/pricing': '<h1>Tokens</h1>',
'/proof': '<h1>TrueHire proof project</h1><h2>Candidate proof profile</h2>',
'/resume-builder':
'<h1>Resume Builder</h1><h2>Achievements &amp; sources</h2><h2>Extra experience</h2>',
'/resume-builder': '<h1 id="resume-builder-master-heading">Resume Builder</h1>',
'/settings': '<h1>Feature availability</h1><h2>Chrome extension</h2>',
}[path] ?? '<h1>Unexpected route</h1>'
);
Expand Down
13 changes: 9 additions & 4 deletions docs/product/surfaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,20 @@ when a route is added or removed.

| Route | Purpose |
| --- | --- |
| `/resume-builder` | Continuous master-resume outline: edit original facts, pin points, add roles/projects, manage achievements/sources and extra experience. |
| `/resume-builder` | Master résumé outline for editing experience, projects, education, and points to include when tailoring. |
| `/resume-builder/evidence` | Achievements, sources, and extra experience. |
| `/resume-builder/profile` | Signed-in career records, application answers, and archived profiles. |
| `/resume-builder/generate` | Signed-in résumé generation for a general profile or specific job. |
| `/dashboard` | Compatibility alias for the Jobs workspace. |
| `/editor/[id]` | Markdown resume editor with live preview (CodeMirror). Autosaves drafts to localStorage. |
| `/tailor/[jobId]` | Job description → AI tailor → document preview, explained changes and editable diff. Signed-in generation: 1 token. |
| `/cover-letter/[jobId]` | Cover letter generation with company research. 1 token. |
| `/interview-prep/[jobId]` | STAR+R story generation. |
| `/evidence` | Compatibility redirect to `/resume-builder#sources`; the existing evidence bank retains D1/localStorage persistence. |
| `/stash` | Compatibility redirect to `/resume-builder#extra-experience`; the existing extra-content pool is preserved. |
| `/jobs` | Job intake, application tracking and analytics. Job discovery and reviewed application preparation are available here. |
| `/evidence` | Compatibility redirect to `/resume-builder/evidence#sources`. |
| `/stash` | Compatibility redirect to `/resume-builder/evidence#extra-experience`. |
| `/jobs` | Job intake, application tracking, and analytics. |
| `/jobs/discover` | LinkedIn search, ATS search tips, and recent roles from the observed feed. |
| `/jobs/queue` | Review-first application preparation, follow-ups, and recruiter replies. |
| `/history` | Past job records and saved tailored résumé versions, with options to reopen or download the exact version. |
| `/settings` | Account-menu settings: AI provider config and apply-agent readiness. |

Expand Down
40 changes: 29 additions & 11 deletions e2e/ats-job-flow.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,26 @@ test('Always include selections persist with the base resume and education stays
*/

test.describe('Job search tips', () => {
test('search tips panel is visible and expandable on dashboard', async ({ page }) => {
test('search tips live on the Find jobs page, with the workspace navigation intact', async ({
page,
}) => {
await page.goto('/dashboard');

await page.getByText('Find more jobs', { exact: true }).click();
const navigation = page.getByRole('navigation', { name: 'Jobs sections' });
await expect(page.getByRole('heading', { name: 'Jobs', exact: true })).toBeVisible();
await expect(page.getByLabel('Role or keywords')).toHaveCount(0);
await expect(page.getByText('Application queue', { exact: true })).toHaveCount(0);
await navigation.getByRole('link', { name: 'Find jobs', exact: true }).click();
await expect(page).toHaveURL(/\/jobs\/discover$/);
await expect(navigation.getByRole('link', { name: 'Find jobs', exact: true })).toHaveAttribute(
'aria-current',
'page'
);
await expect(
page
.getByRole('navigation', { name: 'Primary', exact: true })
.getByRole('link', { name: 'Jobs', exact: true })
).toHaveAttribute('aria-current', 'page');

// The tips panel should be present
const tipsButton = page.getByRole('button', {
Expand All @@ -199,8 +215,7 @@ test.describe('Job search tips', () => {
});

test('builds a Google query preview and open link', async ({ page }) => {
await page.goto('/dashboard');
await page.getByText('Find more jobs', { exact: true }).click();
await page.goto('/jobs/discover');

const tipsButton = page.getByRole('button', {
name: /find less-competitive jobs on ats boards/i,
Expand All @@ -225,8 +240,7 @@ test.describe('Job search tips', () => {
});

test('toggling boards updates the query', async ({ page }) => {
await page.goto('/dashboard');
await page.getByText('Find more jobs', { exact: true }).click();
await page.goto('/jobs/discover');

const tipsButton = page.getByRole('button', {
name: /find less-competitive jobs on ats boards/i,
Expand Down Expand Up @@ -551,7 +565,11 @@ test.describe('Apply-agent queue receipts (guest mode)', () => {
});
await page.reload();

await page.getByText('Application preparation & follow-ups', { exact: true }).click();
await page
.getByRole('navigation', { name: 'Jobs sections' })
.getByRole('link', { name: 'Apply queue', exact: true })
.click();
await expect(page).toHaveURL(/\/jobs\/queue$/);
await expect(page.getByText('Application queue', { exact: true })).toBeVisible();
await expect(page.getByText(/ReceiptCo · Tailored materials/i)).toBeVisible();
await page.getByRole('button', { name: 'Mark submitted' }).click();
Expand Down Expand Up @@ -582,10 +600,10 @@ test.describe('Apply-agent queue receipts (guest mode)', () => {
});
});

test.describe('Dashboard discover section copy', () => {
test('mentions ATS boards in the discover section', async ({ page }) => {
await page.goto('/dashboard');
await page.getByText('Find more jobs', { exact: true }).click();
test.describe('Find jobs', () => {
test('old observed feed URLs open Find jobs', async ({ page }) => {
await page.goto('/jobs?page=2');
await expect(page).toHaveURL(/\/jobs\/discover\?page=2$/);
await expect(page.getByText(/Ashby, Greenhouse, Lever/i)).toBeVisible();
});
});
28 changes: 26 additions & 2 deletions e2e/resume-builder.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,24 @@ test('Outline edits, pins and added projects survive reload and legacy links ope
.fill('TypeScript · https://example.org/console');
await projects.getByLabel('Achievement 1', { exact: true }).fill('Released an API console.');
await projects.getByRole('button', { name: 'Add to master' }).click();
const builderSections = page.getByRole('navigation', { name: 'Resume Builder sections' });
await builderSections.getByRole('link', { name: 'Evidence', exact: true }).click();
await expect(page).toHaveURL(/\/resume-builder$/);
await expect(page.getByRole('status')).toContainText('Save your changes before leaving');
const unexpectedNavigation = expect(
page.waitForURL(/\/resume-builder\/evidence/, { timeout: 750 })
).rejects.toThrow('Timeout');
await page.evaluate(() => {
window.location.hash = 'sources';
});
await unexpectedNavigation;
await expect(page).toHaveURL(/\/resume-builder#sources$/);
await expect(page.getByRole('heading', { name: 'Achievements & sources' })).toHaveCount(0);
await page.getByRole('button', { name: 'Save', exact: true }).click();
await expect(page.getByRole('status').filter({ hasText: 'Saved' })).toBeVisible();
await page.evaluate(() => {
window.history.replaceState(null, '', window.location.pathname + window.location.search);
});
await page.reload();
await expect(
page.getByRole('checkbox', { name: 'Always include: Built accessible React screens.' })
Expand Down Expand Up @@ -72,12 +88,20 @@ test('Outline edits, pins and added projects survive reload and legacy links ope
.getByRole('link', { name: 'Resume Builder', exact: true })
.click();
await expect(page.getByRole('heading', { name: 'Resume Builder', exact: true })).toBeVisible();
await builderSections.getByRole('link', { name: 'Evidence', exact: true }).click();
await expect(page).toHaveURL(/resume-builder\/evidence\?resume=outline-master/);
await expect(page.getByRole('heading', { name: 'Achievements & sources' })).toBeVisible();
await expect(page.getByRole('button', { name: 'Save', exact: true })).toHaveCount(0);
await builderSections.getByRole('link', { name: 'Master résumé', exact: true }).click();
await expect(page.getByLabel('Master resume')).toHaveValue('outline-master');
await page.goto('/evidence');
await page.waitForURL(/resume-builder#sources/);
await page.waitForURL(/resume-builder\/evidence#sources/);
await expect(page.getByRole('heading', { name: 'Achievements & sources' })).toBeVisible();
await page.goto('/stash');
await page.waitForURL(/resume-builder#extra-experience/);
await page.waitForURL(/resume-builder\/evidence#extra-experience/);
await expect(page.getByRole('heading', { name: 'Extra experience' })).toBeVisible();
await page.goto('/resume-builder?resume=outline-master#sources');
await expect(page).toHaveURL(/resume-builder\/evidence\?resume=outline-master#sources/);
await page.goto('/jobs');
await expect(page.getByRole('heading', { name: 'Jobs', exact: true })).toBeVisible();
const nav = page.getByRole('navigation', { name: 'Primary', exact: true });
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@
"@codemirror/view": "^6.43.6",
"@mozilla/readability": "^0.6.0",
"@radix-ui/react-avatar": "1.2.7",
"@radix-ui/react-checkbox": "1.3.12",
"@radix-ui/react-dialog": "1.2.0",
"@radix-ui/react-dropdown-menu": "2.1.25",
"@radix-ui/react-label": "2.1.16",
Expand Down
31 changes: 0 additions & 31 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions public-readability-policy.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export const privatePaths = [
'/api/',
'/dashboard',
'/jobs',
'/history',
'/evidence',
'/resume-builder',
'/editor',
Expand Down
2 changes: 1 addition & 1 deletion scripts/production-smoke.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function buildSmokeChecks({ hasSessionCookie = false } = {}) {
method: 'GET',
path: '/resume-builder',
expectStatus: 200,
requiredText: ['Resume Builder', 'Achievements &amp; sources', 'Extra experience'],
requiredText: ['id="resume-builder-master-heading"'],
},
{
name: 'pricing',
Expand Down
5 changes: 5 additions & 0 deletions scripts/verify-deploy-routes.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,17 @@ import { join } from 'node:path';
export const REQUIRED_DEPLOY_ROUTES = [
'/',
'/jobs',
'/jobs/discover',
'/jobs/queue',
'/history',
'/proof',
'/pricing',
'/settings',
'/dashboard',
'/resume-builder',
'/resume-builder/evidence',
'/resume-builder/profile',
'/resume-builder/generate',
'/api/jobs/search',
'/api/mcp',
'/api/resume',
Expand Down
12 changes: 12 additions & 0 deletions src/__tests__/resume-builder.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,18 @@ it('opens a newly requested master when creation navigates within the builder pa
expect(screen.getByRole('heading', { name: 'Grace' })).toBeVisible();
});

it('restores a nondefault guest master when returning from a workspace subpage', () => {
const other = { ...resume, id: 'r2', name: 'Other', source: source.replace('Ada', 'Grace') };
vi.mocked(localListResumes).mockReturnValue([resume, other]);
render(<ResumeBuilder serverResumes={[]} requestedResume="r2" />);
expect(screen.getByLabelText('Master resume')).toHaveValue('r2');
expect(screen.getByRole('heading', { name: 'Grace' })).toBeVisible();
expect(screen.getByRole('link', { name: 'Evidence' })).toHaveAttribute(
'href',
'/resume-builder/evidence?resume=r2'
);
});

it('shows readable details and cancels a focused edit without changing the imported master', () => {
render(<ResumeBuilder {...props} />);
expect(screen.queryByLabelText('Full name')).not.toBeInTheDocument();
Expand Down
2 changes: 1 addition & 1 deletion src/app/api/extension/save-job/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export async function POST(req: NextRequest) {
job_id: jobId,
queue_id: queueId,
existing,
redirect_url: shouldQueue ? '/dashboard' : `/tailor/${jobId}`,
redirect_url: shouldQueue ? '/jobs/queue' : `/tailor/${jobId}`,
},
{ status: existing ? 200 : 201, headers }
);
Expand Down
2 changes: 1 addition & 1 deletion src/app/application-utilities.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
}
@source "../";

@source "../../node_modules/@saas-maker/ui/src/components/{badge,button,input,table,tabs,textarea,toggle,toggle-group}.tsx";
@source "../../node_modules/@saas-maker/ui/src/components/{badge,button,card,checkbox,input,label,skeleton,table,tabs,textarea,toggle,toggle-group}.tsx";
2 changes: 1 addition & 1 deletion src/app/evidence/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { redirect } from 'next/navigation';

export default function LegacyPage() {
redirect('/resume-builder#sources');
redirect('/resume-builder/evidence#sources');
}
2 changes: 1 addition & 1 deletion src/app/history/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default async function HistoryPage() {

return (
<Dashboard
historyOnly
view="history"
serverResumes={[]}
serverJobs={jobs}
serverHistory={versions}
Expand Down
22 changes: 22 additions & 0 deletions src/app/jobs/discover/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { Dashboard } from '@/components/dashboard';
import ObservedJobs from '@/components/observed-jobs';
import { listResumes } from '@/lib/actions/resume-actions';

export const dynamic = 'force-dynamic';
export const metadata = { title: 'Find jobs' };

export default async function DiscoverJobsPage({
searchParams,
}: {
searchParams: Promise<{ page?: string | string[] }>;
}) {
const resumes = await listResumes();
return (
<Dashboard
view="discover"
browseContent={<ObservedJobs searchParams={searchParams} />}
serverResumes={resumes}
serverJobs={[]}
/>
);
}
Loading
Loading