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
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
53 changes: 53 additions & 0 deletions core/src/pack.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -204,6 +205,58 @@ 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,
},
{
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, 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', () => {
const data = snap({
applications: [{ id: 'a1', createdAt: T }],
Expand Down
9 changes: 9 additions & 0 deletions core/src/pack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ export interface PackStatement {
label: string;
told: string;
canonical?: string;
question?: string;
fromFill: boolean;
result: MismatchResult;
}

Expand Down Expand Up @@ -112,9 +114,16 @@ export function interviewPack(
nonEmpty(statement.answerKey) ??
'Unknown answer',
told: formatAnswer(statement.value),
fromFill: statement.source === 'fill',
result,
};
if (answer) item.canonical = formatAnswer(answer.value);
if (
typeof statement.question === 'string' &&
statement.question.trim() !== ''
) {
item.question = statement.question;
}
if (result === 'mismatch') pack.unresolved += 1;
pack.statements.push(item);
}
Expand Down
3 changes: 3 additions & 0 deletions docs/ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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`.
Expand Down
2 changes: 2 additions & 0 deletions shell/ui/PackPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ function StatementItem(props: { item: PackStatement }): VNode {
return (
<li>
<strong>{item.label}</strong>: {item.told}
{item.question ? <div>They asked: {item.question}</div> : null}
{item.fromFill ? <Fact tone="neutral">From a fill</Fact> : null}
{differs ? <div>Your canonical answer: {item.canonical}</div> : null}
{item.result === 'mismatch' ? (
<Fact tone="warning">Unresolved mismatch</Fact>
Expand Down
7 changes: 7 additions & 0 deletions shell/ui/StatementsSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,13 @@ export function StatementsSection(props: { applicationId: Id }): VNode {
<strong>{label ?? 'Unknown answer'}</strong>:{' '}
{told === '' ? '(empty)' : told}
</div>
{typeof s.question === 'string' &&
s.question.trim() !== '' ? (
<div class="document-meta">They asked: {s.question}</div>
) : null}
{s.source === 'fill' ? (
<Fact tone="neutral">From a fill</Fact>
) : null}
{check === 'mismatch' ? (
<Fact tone="warning" role="status">
Differs from your answer: {canonical}{' '}
Expand Down