Entry dialog: close with an X or a press outside, no Close button #18
Loading…
Reference in a new issue
No description provided.
Delete branch "entry-dialog-close"
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 entry dialog's big Close button sat right under Delete. It is gone. The dialog now closes with an X next to the entry name, or with a press on the dimmed area around it. A press inside the dialog keeps it open, and Escape still closes it, as before. Delete still asks for confirmation. Long entry names wrap after
/and-beside the X.Blast radius
Tier: leaf
Trunk paths touched: none (
qml/EntryDialog.qml, the newtests/qml/tst_EntryDialog.qml, and the regeneratedpo/touchpass.aps.pot)Gate / rollback: revert this merge commit.
Proof
QMAKE=qmake-qt5 cargo makegivestest result: ok. 73 passed; 0 failed, the 2 allowed audit warnings, andBuild Done.cargo make qml-testgivesTotals: 75 passed, 0 failed. That includes 3 new EntryDialog tests: the X closes the dialog, a press outside closes it, a press inside keeps it open.test_a_press_outside_closes_itFAILStest_the_x_closes_itFAILStest_a_press_inside_keeps_it_openFAILSTestCaseitem is never visible, so presses never reached a dialog opened over it, and the first version of these tests passed for nothing. The test now opens the dialog over a visible root item. No earlier test in the repo clicks anything, so none were affected.grabImage) with a short and a long entry name and checked them by eye. The X sits at top right, the buttons are Copy / Edit / Delete, and the long name wraps at/and-. The images are not attached; please look at it once inclickable desktop --arch amd64 --no-nvidiaor on the device.Review
Reviewer: fresh-context
code-reviewat medium found 5 issues (3 low, 2 info). I fixed 2 and declined 3:Accessible.name: "Close".__closeOnDismissAreaPress. It's the same switch Popover sets, and a Lomiri upgrade that drops it would failqml-test.wait(500)in the inside-press test. Closing is immediate, since the fade duration is 0..potfile, which is expected.Review-Confidence: not audited (leaf)
Confidence by part
🤖 Generated with Claude Code
WIP: Entry dialog: close with an X or a press outside, no Close buttonto Entry dialog: close with an X or a press outside, no Close button