The kitchen's speaker lives with the kitchen - #874
Merged
sridharkalaibala merged 3 commits intoSep 17, 2026
Merged
Conversation
Promote develop to main: every IPC handler has a door
Promote develop to main: the switches survive everything
Owner: "this is about kitchen play right? not restaurant module?"
He is right, and it took three goes. First the Sale tab of Core
Settings, beside the auto-focus switches, because those are device-local
too. Then the Print tab, because the kitchen ticket is printed. Per-device
was the right instinct and the wrong page both times.
A speaker is a device on ONE COMPUTER, like the cash drawer, the weighing
scale and the kitchen screen. Hardware Manager is where those live, and it
is the window somebody setting up the machine at the pass is already
standing in. So it is a Kitchen Sound tab, next to Kitchen Screen.
Not the Multi KOT Print tab, which would have been the obvious guess: that
one is hidden unless multi-KOT is enabled, and a setting that disappears
depending on another setting is how this feature spent its whole life
switched off and unfindable.
Removed from the settings page rather than left in both, with a note there
saying where it went. Two homes drift apart and then a shop has two
answers to one question.
The switches are set BEFORE anything that can fail and the pickers fill
inside their own guard, which is the fix from the settings page carried
over rather than re-learned: filling the voice picker threw there, the
failure path hid the switches and the Test button, and left three empty
pickers on screen.
tests/settings-windows.test.js caught a real bug in this while I was
writing it: switchTab('sound') had no entry in tabMap, and switchTab hides
every panel before showing the requested one, so clicking the tab would
have blanked the window. Its message says Receipt Printer did exactly that
once. A guard somebody wrote after being bitten, catching the next person.
Contributor
|
Merged to Try it at https://develop.posnic.io, or run it yourself: git fetch origin develop && git checkout develop
npm install && npm --prefix api install
npm run dev # then http://localhost:3000When you have tested it, say what you did and what happened, and set Reporting that something is broken is as useful as fixing it. It is |
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.
Right, and it took three goes to get this in the correct place.
Per-device was the right instinct and the wrong page both times. A speaker is a device on one computer, like the cash drawer, the weighing scale and the kitchen screen. Hardware Manager is where those live, and it is the window somebody setting up the machine at the pass is already standing in.
So it is a 🔔 Kitchen Sound tab, immediately after 📺 Kitchen Screen:
Not the Multi KOT Print tab, which would have been the obvious guess. That one is hidden unless multi-KOT is enabled, and a setting that disappears depending on another setting is exactly how this feature spent its whole life switched off and unfindable.
Removed from the settings page, not left in both
Two homes drift apart and then a shop has two answers to one question. A comment stays behind on both files saying where it went and why, because the next person will wonder.
The hard-won part is carried over rather than re-learned: the switches are set before anything that can fail, and the pickers fill inside their own guard. On the settings page, filling the voice picker threw, the failure path hid the switches and the Test button, and left three empty pickers on screen.
A guard caught me
tests/settings-windows.test.jsfailed on this while I was writing it:Clicking the new tab would have blanked the whole window. Somebody wrote that test after being bitten, and it caught the next person, which is the entire point of writing them that way.
Tests
tests/the-kitchen-switch-has-somewhere-to-live.test.jsrewritten for the new home, 11 of them: the switches exist and are two rather than one, they show what the machine is set to, they are set before anything that can fail, the tab hides itself where there is no bridge, the Test button reaches the real announcer and says why when nothing happened, and the controls are really gone from the settings page rather than living in two places.Zero assertion failures across the desktop suite.