Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
1d29015
Add fill fields to statements and applications
firegiant9000 Nov 21, 2026
392632f
Test that export keeps fill fields
firegiant9000 Nov 21, 2026
f3d9bf6
Find and link the application for a form
firegiant9000 Nov 21, 2026
a99ed66
Build what-I-told-them statements from a fill
firegiant9000 Nov 21, 2026
a2efcb7
Work out the told panel and its writes
firegiant9000 Nov 21, 2026
dad8c83
Create an application from a form page in one write
firegiant9000 Nov 21, 2026
93b05fc
Match a job saved from a form's apply page
firegiant9000 Nov 21, 2026
10c497b
Merge pull request #33 from firegiant9000/records/pr1-core
firegiant9000 Nov 21, 2026
09c4550
Link a form to its application in the popup
firegiant9000 Nov 21, 2026
e6865f5
Record what the fill told them on the linked application
firegiant9000 Nov 21, 2026
488a78f
Drop a held fill when a match links the form
firegiant9000 Nov 21, 2026
9af29c0
Tick the rest and mark Applied from the popup
firegiant9000 Nov 21, 2026
9d91314
Keep a fill result when its application is gone
firegiant9000 Nov 21, 2026
a539f38
Merge pull request #34 from firegiant9000/records/pr2-popup
firegiant9000 Nov 21, 2026
ea9dd77
Carry the form's question into the interview pack
firegiant9000 Nov 21, 2026
a482eb4
Show the form's question and fill source on statements
firegiant9000 Nov 21, 2026
29e7153
Document what a fill records
firegiant9000 Nov 21, 2026
86fd8a5
Hide a blank question in the interview pack
firegiant9000 Nov 21, 2026
a16bc4b
Merge pull request #38 from firegiant9000/records/pr3-display
firegiant9000 Nov 21, 2026
e2fce29
Show the duplicate and repost facts when making an application from a…
firegiant9000 Nov 21, 2026
1c7ffb6
Match a job saved from a form when saving it again from the apply page
firegiant9000 Nov 21, 2026
ce9957b
Keep a fill result the popup still offers to record
firegiant9000 Nov 21, 2026
a5336e9
Ignore overlong form URLs
firegiant9000 Nov 21, 2026
b2fac8d
Drop unneeded casts in the form application tests
firegiant9000 Nov 21, 2026
a00d039
Keep a held fill result when the owner's link fails
firegiant9000 Nov 21, 2026
b6262e6
Test the Ashby application page match
firegiant9000 Nov 21, 2026
4748f1b
Merge pull request #39 from firegiant9000/records/branch-fixes
firegiant9000 Nov 22, 2026
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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ Stage 1 is the dashboard. Stage 2 adds saving a job from the page you are on, pl

- **Applications list** with search, filters, manual entry, and a next-action date and who acts next.
- **Save a job.** After you click the toolbar button (or press Alt+Shift+S by default; you can rebind it in about:addons), the popup reads the current tab once and offers the job for saving. Nothing is read before the click.
- **Fill a form.** In the popup, Fill writes your saved details and answers into the empty fields it recognises with certainty, then lists what it did not fill and why. It never changes a field that already has a value, and it never submits. Custom dropdowns and file uploads are listed for you to do yourself.
- **Fill a form.** In the popup, Fill writes your saved details and answers into the empty fields it recognises with certainty, then lists what it did not fill and why. It never changes a field that already has a value, and it never submits. Custom dropdowns and file uploads are listed for you to do yourself. When the form is linked to an application, the answers it filled are recorded as what you told them, with the form's question, and you can tick the ones you pasted yourself and mark the application Applied.
- **Duplicate and repost facts.** When a job matches an application you already have, the popup says so ("already applied" or "possible match"). It also states the fact when you saved the same posting earlier, without judging it.
- **Automatic backup.** Countersign saves `Countersign/countersign-backup.json` to your downloads folder, and the dashboard shows how old the last backup is. The backup file holds all your data, including your details and contacts, as plain text, so keep your downloads folder out of cloud sync if that matters to you.
- **What I told them.** Per application, record the answers you gave. A warning appears when one differs from your canonical answer.
- **Quiet list** (`#/quiet`) of applications with no response for a set number of days (a setting). You can close several at once.
- **Fill log.** On an application, record the application site type and how filling went. You enter it by hand.
- **Fill log.** On an application, record the application site type and how filling went. The site type is set by a fill when empty; how filling went is still yours to enter.
- **Contacts** (`#/contacts`) with a log of reaching out, replies and referrals. The popup and the application page ask "anyone here?" and let you record that you checked and nobody was there.
- **Deadlines** (`#/deadlines`): open tasks, next-action dates and quiet applications on one list, dated rows first.
- **My details** (`#/details`): 14 profile fields (name, first and last name, email, phone, address, links) and your canonical answers, each with a copy button. Copying uses a click only.
Expand Down
56 changes: 56 additions & 0 deletions core/src/duplicates.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,62 @@ describe('findApplicationMatch', () => {
});
});

describe('form apply-page addresses', () => {
const stored = 'https://jobs.lever.co/example/abc';
const data = snap({
jobs: [{ id: 'j1', createdAt: `2026-06-12${AT}`, canonicalUrl: stored }],
applications: [{ id: 'a1', createdAt: `2026-06-13${AT}`, jobId: 'j1' }],
});

it('findApplicationMatch matches the /apply address of a stored job', () => {
expect(
findApplicationMatch(data, { canonicalUrl: `${stored}/apply` }),
).toEqual({ kind: 'already_applied', applicationId: 'a1' });
expect(
findApplicationMatch(data, {
canonicalUrl: 'https://jobs.lever.co/example/other/apply',
}),
).toBeUndefined();
});

it('matches the Ashby /application address of a stored job', () => {
const ashby = 'https://jobs.ashbyhq.com/example/abc';
const ashbyData = snap({
jobs: [{ id: 'j2', createdAt: `2026-06-12${AT}`, canonicalUrl: ashby }],
applications: [{ id: 'a2', createdAt: `2026-06-13${AT}`, jobId: 'j2' }],
});
expect(
findApplicationMatch(ashbyData, { canonicalUrl: `${ashby}/application` }),
).toEqual({ kind: 'already_applied', applicationId: 'a2' });
expect(
repostFact(
ashbyData,
{ canonicalUrl: `${ashby}/application` },
'2026-11-15',
)?.firstSavedOn,
).toBe('2026-06-12');
expect(
findApplicationMatch(ashbyData, {
canonicalUrl: 'https://jobs.ashbyhq.com/example/zzz/application',
}),
).toBeUndefined();
});

it('repostFact matches the /apply address of a stored job', () => {
expect(
repostFact(data, { canonicalUrl: `${stored}/apply` }, '2026-11-15')
?.firstSavedOn,
).toBe('2026-06-12');
expect(
repostFact(
data,
{ canonicalUrl: 'https://jobs.lever.co/example/other/apply' },
'2026-11-15',
),
).toBeUndefined();
});
});

describe('repostFact', () => {
const job = (id: string, day: string, extra: Partial<Job> = {}): Job => ({
id,
Expand Down
13 changes: 11 additions & 2 deletions core/src/duplicates.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { normalizeName } from './application-ops';
import { isLocalDate, toLocalDate } from './dates';
import { formUrlKey } from './form-link';
import type { Application, Id, Job, LocalDate, Snapshot } from './types';
import { canonicalizeUrl } from './url';

Expand Down Expand Up @@ -45,6 +46,14 @@ function safeCanonical(url: string): string | undefined {
}
}

// Equal, or both the same posting once a form's apply segment is dropped.
function urlsMatch(have: string | undefined, want: string): boolean {
if (have === undefined) return false;
if (have === want) return true;
const key = formUrlKey(want);
return key !== undefined && key === formUrlKey(have);
}

function applicationCanonicalUrl(
app: Application,
jobsById: Map<Id, Job>,
Expand Down Expand Up @@ -110,7 +119,7 @@ export function findApplicationMatch(
const appTitle = nameKey(app.title);
if (
wantUrl !== undefined &&
url === wantUrl &&
urlsMatch(url, wantUrl) &&
!contradicts(wantCompany, company, wantTitle, appTitle)
) {
if (
Expand Down Expand Up @@ -169,7 +178,7 @@ export function repostFact(
const jobTitle = nameKey(job.title);
const sameUrl =
wantUrl !== undefined &&
str(job.canonicalUrl) === wantUrl &&
urlsMatch(str(job.canonicalUrl), wantUrl) &&
!contradicts(wantCompany, jobCompany, wantTitle, jobTitle);
const sameName =
wantCompany !== undefined &&
Expand Down
29 changes: 29 additions & 0 deletions core/src/export.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,35 @@ describe('parseExport', () => {
expect(parsed.file.settings).toEqual(settings);
});

it('round-trips fill statement fields and formUrls', () => {
const app = {
id: 'a1',
createdAt: T,
formUrls: ['https://jobs.example.com/acme/1'],
};
const statement = {
id: 's1',
createdAt: T,
applicationId: 'a1',
answerKey: 'sponsorship',
value: { type: 'yes_no' as const, value: false },
source: 'fill' as const,
question: 'Will you require sponsorship?',
};
const snap: Snapshot = {
...emptySnapshot(),
applications: [app],
statements: [statement],
};
const parsed = parseExport(
JSON.stringify(buildExport(snap, {}, { now: () => T })),
);
expect(parsed.ok).toBe(true);
if (!parsed.ok) return;
expect(parsed.file.data.applications).toEqual([app]);
expect(parsed.file.data.statements).toEqual([statement]);
});

it('restores an export without the new fields', () => {
const result = parseExport(fixtureText);
expect(result.ok).toBe(true);
Expand Down
Loading