skill: Knowify vendor bills (private API, replace semantics, QuickBooks trap) - #571
Open
axelclark wants to merge 1 commit into
Open
skill: Knowify vendor bills (private API, replace semantics, QuickBooks trap)#571axelclark wants to merge 1 commit into
axelclark wants to merge 1 commit into
Conversation
…oks trap Knowify (secure.knowify.com) is an AngularJS SPA over api.knowify.com. Documents what cost several steps to work out while driving a real bill edit: - Recipe for pulling the whole API registry + call sites out of the main bundle, so the next agent can learn a request shape without a live capture or a write. - Stable selectors for the bill edit form, and the fact that modals live in <k-modal-target> (a document-wide checkbox query misses them). - The "Send to QuickBooks" checkbox is a 0x0 input replaced by a styled label, so getBoundingClientRect on the input returns 0,0 and clicking there silently does nothing. It also defaults to CHECKED — submitting without unticking pushes the bill to QuickBooks, which is not reversible from the browser. - Payables/updatePayable is replace-not-update: the old bill id stops existing, every line item id changes, and NewId comes back only sometimes. Two things don't survive on their own (the attached PDF, and the generated billable). - Payables/updatePayableItem returns DidSucceed:true but silently ignores Description — it's allocation-only. Worth knowing before using it to edit text. - The read endpoints worth starting from, including which billables drop out of GetBillablesForProject once invoiced. No credentials, cookies, or account-specific data — selectors, endpoints, and payload shapes only, per the domain-skills guidance.
✅ Skill review passedReviewed 1 file(s) — no findings. |
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.
Adds
domain-skills/knowify/bills.mdfrom a real session driving a vendor-bill edit in Knowify (secure.knowify.com— construction accounting; AngularJS SPA overapi.knowify.com).What's in it, all verified against the live app rather than inferred:
verbis the path prefix, the key is the endpoint name.<k-modal-target>, so a document-wideinput[type=checkbox]scan misses them entirely.<label for=…>, sogetBoundingClientRect()on the input returns0,0and a coordinate click there does nothing. It also defaults to CHECKED — submitting without unticking pushes the bill to QuickBooks, which isn't reversible from the browser. Includes the label-click snippet and the assertion to make afterward.Payables/updatePayableis replace-not-update. The old bill id stops existing, every line-item id changes, andNewIdis populated only sometimes. Two things don't survive on their own: the attached PDF (echoSupportingDocumentsverbatim) and the generated billable (regenerate withPayables/createBillablesBill;allocatePayablereports success without creating one).Payables/updatePayableItemsilently ignoresDescriptionwhile returningDidSucceed:true— it's allocation-only. Easy to waste time on.GetBillablesForProject, so a lower count than expected on a billed job is normal.No credentials, cookies, or account-specific data — selectors, endpoints, and payload shapes only, per the
domain-skillsguidance. No raw pixel coordinates.Summary by cubic
Adds
domain-skills/knowify/bills.md, a focused guide for editing Knowify vendor bills via the private API, with safe selectors and key traps to avoid. Helps prevent accidental QuickBooks sync and clarifies replace semantics inPayables/updatePayable.api.knowify.com/<verb>/<name>.<k-modal-target>.Payables/updatePayablereplaces the bill (IDs change,NewIdmay be null). EchoSupportingDocumentsand regenerate the billable viaPayables/createBillablesBill;Indexing/allocatePayablewon’t create one.Payables/updatePayableItemignoresDescription(allocation-only).Payables/Get,Payables/searchPayablesIds,Invoices/GetBillablesForProject(already invoiced items drop out).Written for commit f173b3d. Summary will update on new commits.