From ea9dd778a9d1d0ee7c33d5a7ce7396494d477c7d Mon Sep 17 00:00:00 2001
From: Arlo Kharod <42082766+firegiant9000@users.noreply.github.com>
Date: Sat, 21 Nov 2026 16:57:42 -0600
Subject: [PATCH 1/4] Carry the form's question into the interview pack
---
core/src/pack.test.ts | 42 ++++++++++++++++++++++++++++++++++++++++++
core/src/pack.ts | 5 +++++
2 files changed, 47 insertions(+)
diff --git a/core/src/pack.test.ts b/core/src/pack.test.ts
index b880353..90c7a43 100644
--- a/core/src/pack.test.ts
+++ b/core/src/pack.test.ts
@@ -174,6 +174,7 @@ describe('interviewPack', () => {
label: 'Willing to relocate',
told: 'No',
canonical: 'Yes',
+ fromFill: false,
result: 'mismatch',
});
// No label on the answer: falls back to its key.
@@ -204,6 +205,47 @@ describe('interviewPack', () => {
expect(pack?.unresolved).toBe(0);
});
+ it('marks fill statements and carries their question', () => {
+ const data = snap({
+ applications: [{ id: 'a1', createdAt: T }],
+ statements: [
+ {
+ id: 's1',
+ createdAt: T,
+ applicationId: 'a1',
+ answerKey: 'sponsor',
+ value: { type: 'text', value: 'No' },
+ source: 'fill',
+ question: 'Will you require sponsorship?',
+ },
+ {
+ id: 's2',
+ createdAt: T,
+ applicationId: 'a1',
+ answerKey: 'sponsor',
+ value: { type: 'text', value: 'No' },
+ },
+ {
+ id: 's3',
+ createdAt: T,
+ applicationId: 'a1',
+ answerKey: 'sponsor',
+ value: { type: 'text', value: 'No' },
+ source: 'other',
+ question: 42,
+ },
+ ],
+ });
+ const pack = interviewPack(data, 'a1', {});
+ const [first, second, third] = pack?.statements ?? [];
+ expect(first?.fromFill).toBe(true);
+ expect(first?.question).toBe('Will you require sponsorship?');
+ expect(second?.fromFill).toBe(false);
+ expect(second && 'question' in second).toBe(false);
+ expect(third?.fromFill).toBe(false);
+ expect(third && 'question' in third).toBe(false);
+ });
+
it('lists rounds in order with resolved interviewers and kind labels', () => {
const data = snap({
applications: [{ id: 'a1', createdAt: T }],
diff --git a/core/src/pack.ts b/core/src/pack.ts
index c65e566..8880d62 100644
--- a/core/src/pack.ts
+++ b/core/src/pack.ts
@@ -24,6 +24,8 @@ export interface PackStatement {
label: string;
told: string;
canonical?: string;
+ question?: string;
+ fromFill: boolean;
result: MismatchResult;
}
@@ -112,9 +114,12 @@ export function interviewPack(
nonEmpty(statement.answerKey) ??
'Unknown answer',
told: formatAnswer(statement.value),
+ fromFill: statement.source === 'fill',
result,
};
if (answer) item.canonical = formatAnswer(answer.value);
+ const question = nonEmpty(statement.question);
+ if (question !== undefined) item.question = question;
if (result === 'mismatch') pack.unresolved += 1;
pack.statements.push(item);
}
From a482eb4ab2c5713fc35c32879c79d719797a35cb Mon Sep 17 00:00:00 2001
From: Arlo Kharod <42082766+firegiant9000@users.noreply.github.com>
Date: Sat, 21 Nov 2026 17:00:45 -0600
Subject: [PATCH 2/4] Show the form's question and fill source on statements
---
shell/ui/PackPage.tsx | 2 ++
shell/ui/StatementsSection.tsx | 7 +++++++
2 files changed, 9 insertions(+)
diff --git a/shell/ui/PackPage.tsx b/shell/ui/PackPage.tsx
index 983faf6..83f1179 100644
--- a/shell/ui/PackPage.tsx
+++ b/shell/ui/PackPage.tsx
@@ -43,6 +43,8 @@ function StatementItem(props: { item: PackStatement }): VNode {
return (
{item.label}: {item.told}
+ {item.question ? They asked: {item.question}
: null}
+ {item.fromFill ? From a fill : null}
{differs ? Your canonical answer: {item.canonical}
: null}
{item.result === 'mismatch' ? (
Unresolved mismatch
diff --git a/shell/ui/StatementsSection.tsx b/shell/ui/StatementsSection.tsx
index 867c3f0..d5c0780 100644
--- a/shell/ui/StatementsSection.tsx
+++ b/shell/ui/StatementsSection.tsx
@@ -242,6 +242,13 @@ export function StatementsSection(props: { applicationId: Id }): VNode {
{label ?? 'Unknown answer'}:{' '}
{told === '' ? '(empty)' : told}
+ {typeof s.question === 'string' &&
+ s.question.trim() !== '' ? (
+ They asked: {s.question}
+ ) : null}
+ {s.source === 'fill' ? (
+ From a fill
+ ) : null}
{check === 'mismatch' ? (
Differs from your answer: {canonical}{' '}
From 29e7153f812be85958f46f2878f8548bfbe24a26 Mon Sep 17 00:00:00 2001
From: Arlo Kharod <42082766+firegiant9000@users.noreply.github.com>
Date: Sat, 21 Nov 2026 17:02:57 -0600
Subject: [PATCH 3/4] Document what a fill records
---
README.md | 4 ++--
docs/ARCHITECTURE.md | 3 +++
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index e8e383f..61212e7 100644
--- a/README.md
+++ b/README.md
@@ -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.
diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md
index fde58ba..9f255ed 100644
--- a/docs/ARCHITECTURE.md
+++ b/docs/ARCHITECTURE.md
@@ -27,6 +27,8 @@ The repository interface (`core/src/repository.ts`) has three methods:
To change data, a function in `core/` takes a snapshot and returns a list of operations. It does not write anything itself. The shell applies the list. Views filter the snapshot in memory; the data set is hundreds of records, so there are no secondary indexes.
+A fill's result is recorded by `core/src/fill-records.ts` in one write; nothing else about a fill is stored.
+
Two details in the shell:
- Writes are serialised and each is built from a fresh snapshot (`shell/ui/write-queue.ts`). Two quick clicks cannot overwrite each other with stale data.
@@ -40,6 +42,7 @@ An in-memory repository (`core/src/memory-repository.ts`) is used in tests. The
- A round (`Round`) belongs to an application and holds a kind, date, time, interviewer ids and four flat debrief fields. A story (`Story`) holds situation, task, action, result and tags. A weekly review (`WeeklyReview`) holds a week start, an outreach target and an application cap.
- New optional fields: `Company.isTarget`, `Application.projectsShown`, `Contact.followUpOn`, `Contact.followUpApplicationId` and `ContactEvent.voidedAt`. A contact event is undone by setting `voidedAt`; voided events are hidden and never counted.
+- Optional fields for fills: `Statement.source` (`'fill'` when a fill recorded it), `Statement.question` (the form's question text) and `Application.formUrls` (the form pages linked to this application).
- Weekly counts (`core/src/weekly.ts`) are derived on read from live contact events and status events whose date falls in Monday to Sunday. Nothing is stored except the plan.
- `Company.anyoneHere` is `'checked_nobody'` when you have recorded that nobody you know works there. Contacts are otherwise linked by `companyId`.
From 86fd8a519c695a6c7b5fbd0a586f99cd66d0177c Mon Sep 17 00:00:00 2001
From: Arlo Kharod <42082766+firegiant9000@users.noreply.github.com>
Date: Sat, 21 Nov 2026 17:07:31 -0600
Subject: [PATCH 4/4] Hide a blank question in the interview pack
---
core/src/pack.test.ts | 13 ++++++++++++-
core/src/pack.ts | 8 ++++++--
2 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/core/src/pack.test.ts b/core/src/pack.test.ts
index 90c7a43..78cd4f2 100644
--- a/core/src/pack.test.ts
+++ b/core/src/pack.test.ts
@@ -234,16 +234,27 @@ describe('interviewPack', () => {
source: 'other',
question: 42,
},
+ {
+ id: 's4',
+ createdAt: T,
+ applicationId: 'a1',
+ answerKey: 'sponsor',
+ value: { type: 'text', value: 'No' },
+ source: 'fill',
+ question: ' ',
+ },
],
});
const pack = interviewPack(data, 'a1', {});
- const [first, second, third] = pack?.statements ?? [];
+ const [first, second, third, fourth] = pack?.statements ?? [];
expect(first?.fromFill).toBe(true);
expect(first?.question).toBe('Will you require sponsorship?');
expect(second?.fromFill).toBe(false);
expect(second && 'question' in second).toBe(false);
expect(third?.fromFill).toBe(false);
expect(third && 'question' in third).toBe(false);
+ expect(fourth?.fromFill).toBe(true);
+ expect(fourth && 'question' in fourth).toBe(false);
});
it('lists rounds in order with resolved interviewers and kind labels', () => {
diff --git a/core/src/pack.ts b/core/src/pack.ts
index 8880d62..ec5344f 100644
--- a/core/src/pack.ts
+++ b/core/src/pack.ts
@@ -118,8 +118,12 @@ export function interviewPack(
result,
};
if (answer) item.canonical = formatAnswer(answer.value);
- const question = nonEmpty(statement.question);
- if (question !== undefined) item.question = question;
+ if (
+ typeof statement.question === 'string' &&
+ statement.question.trim() !== ''
+ ) {
+ item.question = statement.question;
+ }
if (result === 'mismatch') pack.unresolved += 1;
pack.statements.push(item);
}