Skip to content

Fill records, part 2: link and record in the popup - #34

Merged
firegiant9000 merged 5 commits into
feat/fill-recordsfrom
records/pr2-popup
Nov 21, 2026
Merged

firegiant9000 merged 5 commits into
feat/fill-recordsfrom
records/pr2-popup

Conversation

@firegiant9000

Copy link
Copy Markdown
Owner

PR 2 of 3 for roadmap item 3: a fill records "what I told them" on the linked application. This PR wires the core rules from #33 into the popup.

What changes

  • Link the form (shell/ui/FormLink.tsx): when the filler finds a form, the popup shows "Records to: {company} · {title}" with Change, or "Not linked to an application." with "Choose…" and "New application from this page". A link found by a match writes nothing. Choose… stores the form key on the chosen application. New application creates the job, the application and any held fill's answers in one write.
  • Record on Fill (shell/ui/Popup.tsx): on a linked form, a Fill records the answers it confirmed and shows "Recorded N answers on … (M were already on the form)." plus a reminder that edits made on the page are not seen. With no link, the result is held ("Filled. Link an application to record what you told them.") and recorded when the owner links.
    • A new core helper, linkFormAndRecordOps, puts the link and the held answers into one write without dropping formUrls or siteType. It is tested.
  • "Also told them?" (shell/ui/ToldPanel.tsx): under the fill section, the owner ticks the answers the fill did not write and records them. The panel also offers Mark Applied with Undo while the status is unset or Interested.
  • Every write is one apply that decides against fresh data, with guards against double clicks. If the linked application is deleted while the popup is open, nothing is written. The popup says "The application is no longer there. Choose another." and keeps the fill result so Choose… can record it.

Nothing under shell/fill/, FillSection.tsx, guard/, the fill lint rules or the permissions changes. The popup only passes FillSection's existing onFilled prop and reads the controller's state.

Gate

npm run gate passes: 1923 unit tests, 18 build tests, ESLint 0 warnings, web-ext lint 0 errors and 2 warnings (unchanged).

Screenshots

npm run shots passes. The existing popup shots (paste, filed, long URL) are 360px wide with no overflow, day and night. The shots tool opens popup.html directly, not on a form tab, so the fill controller never reaches ready. The link line, the Recorded line and the "Also told them?" panel can't be captured by the tool. The owner's hand check covers them in a real Firefox profile.

Known limit

If a second Fill finishes during the few milliseconds of a link write, its held result is dropped. The owner can still tick those answers in the "Also told them?" panel.

@firegiant9000
firegiant9000 merged commit a539f38 into feat/fill-records Nov 21, 2026
1 check passed
@firegiant9000
firegiant9000 deleted the records/pr2-popup branch November 22, 2026 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant