Repository navigation
Fill records, part 2: link and record in the popup - #34
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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.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.linkFormAndRecordOps, puts the link and the held answers into one write without droppingformUrlsorsiteType. It is tested.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.applythat 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 existingonFilledprop and reads the controller's state.Gate
npm run gatepasses: 1923 unit tests, 18 build tests, ESLint 0 warnings,web-ext lint0 errors and 2 warnings (unchanged).Screenshots
npm run shotspasses. The existing popup shots (paste, filed, long URL) are 360px wide with no overflow, day and night. The shots tool openspopup.htmldirectly, not on a form tab, so the fill controller never reachesready. 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.