Let the browser extension show a capture before sending it, and send corrections with it #171
Labels
No labels
accessibility
authentication
breaking change
bug
documentation
enhancement
interface
internationalisation
observability
security
tier
1
tier
2
tier
3
tier/4
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Postulo/postulo#171
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
The browser extension should show what Postulo read from a page before it is sent, so
the person can correct it in the popup. It still lands in the review queue afterwards, with
their corrections filled in: nothing about what a
capturestoken may do changes.Today the extension can only send the page and hope.
POST /capturesparses and stores inone go, so the first time anybody sees what the parser made of the page is on the review
screen, one tab and one sign-in away.
The API
POST /captures/preview, scopecaptures: the same body asPOST /captures(url,optionally
html), the same refusals (422 when nothing resembling a posting is there),and it answers with what the parser read and which source read it. It creates nothing
and notifies nobody.
POST /capturestakes an optionaldata: the fields a person corrected. The page isstill parsed, so the capture's source stays the parser that read it; each field given
replaces what was read, and the whole is validated through
JobPostingDataexactly as aplugin's output is. An unknown field or an empty title is a 422. The capture is pending as
before, and the review screen opens with the corrected values.
The extension (postulo-chromium, its own repo)
Capture → the popup shows the posting's fields, filled in from the preview → Send for
review sends the page with the fields that were changed. Against a Postulo without the
preview endpoint it sends straight away, as it does now.
Done when
captures; correctionsreplace fields and nothing else; an unknown field and an empty title are refused; a
capture without
datais stored exactly as before.