Surface WAIT_USER and add Confirm to the browser client
Ports show_user_message() from client/brewpi_gui.py: a plain <dialog>
pops with the step's user_message the instant WAIT_USER is newly
entered (tracked via a prevState comparison in onSudChanged()'s State
branch), and sends {"Sud": {"Confirm": true}} on the dialog's close
event - covers both the OK button and Escape dismissal.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0189FkmyJkY77HqsNomr1DwV
This commit is contained in:
@@ -123,6 +123,15 @@ nav#tabs {
|
||||
}
|
||||
.step-plate .span2 { grid-column: span 2; }
|
||||
|
||||
#sud-message-dialog {
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 4px;
|
||||
padding: 1em 1.4em;
|
||||
max-width: 24em;
|
||||
}
|
||||
#sud-message-dialog::backdrop { background: rgba(0, 0, 0, 0.3); }
|
||||
#sud-message-dialog form { margin-top: 1em; text-align: right; }
|
||||
|
||||
footer {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
|
||||
Reference in New Issue
Block a user