Repository navigation
Wait for the note to be on the panel before leaving for the bill - #49
Merged
Merged
Conversation
The panel is visible before the order is understood and the note is written. On a slow runner the spec left for the bill at that moment and the note was still on its way to the line, so tests/bill.spec.js went red on main with nothing wrong in the app. Waiting for the panel to show the note is waiting for the write.
sridharkalaibala
added a commit
that referenced
this pull request
Sep 12, 2026
#47 landed on main while this was open, and it changes the same file for a different reason: this one restructures the panel into listening / review / done, that one teaches it to use the richer answer the till's AI sends. Both are wanted, so neither side was taken whole. Two conflicts, resolved by keeping the structure from here and porting #47's three features into it rather than back onto the old render(): the read-back setText('note', view.summary || view.status), and nothing at all during the review, because the review says what it is for itself "Did you mean" the candidate chips now hang off the unplaced row inside cartHtml(), where that row moved to "Goes well" the suggestions row is appended by cartHtml() after the order, an offer below the lines rather than among them view gained both sets of fields; neither side's were dropped. In the tests, both blocks are kept. Three of #47's read the CART after absorb(), which no longer applies anything - so they walk through confirm() like every other test in the file. The two that read what the TILL SAID, the summary and the suggestions it offered, do not: that is held the moment the answer arrives, before anybody has agreed to anything. And one the merge got wrong on its own. bill.spec.js gained #49's wait for the note to appear in the panel, which auto-merged ABOVE the confirm click added here - but .vp-want is on a cart row, and there is no cart row until confirm has run, so the wait could never have been satisfied. It belongs after, which is also where it does the job #49 added it for. 246 node tests and 124 browser tests pass.
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.
tests/bill.spec.js› a spoken requirement is on the bill has been red on main since this morning, on main's own runs, with nothing wrong in the app: the panel is visible before the order is understood and the note is written, and on a slow runner the spec left for the bill at that moment. Locally it passes every time.Waiting for the panel to show the note is waiting for the write. Spec only.