From 0fdf40b8dae9bdb4ab6040042d66bd1780d2f227 Mon Sep 17 00:00:00 2001 From: Nariman Jelveh Date: Sat, 7 Nov 2026 20:43:21 -0800 Subject: [PATCH] Fill the send-feedback popup with the feedback dialog; fix arrow focus (#4539) * Fill the send-feedback popup with the feedback dialog The popup opened by puter.ui.showFeedbackDialog() drew the floating modal over a scrim. It now fills the window like the custom domain popup, with the actions pinned to the bottom and the message box taking the spare height. The full-page styles move from .custom-domain-fullpage to a shared .app-feedback-fullpage on the modal shell. * Land the first ArrowDown on the first item after a click Opening the menu with the pointer focused the first item without a visible focus ring, so ArrowDown appeared to skip it. A pointer open now focuses the menu itself; opening from the keyboard still focuses the first item. --- src/gui/src/UI/UIWindowAppFeedback.js | 14 ++-- src/gui/src/UI/UIWindowAppFeedback.test.js | 68 +++++++++++++++++++ src/gui/src/UI/UIWindowAttachCustomDomain.js | 14 ++-- src/gui/src/css/dashboard.css | 41 +++++++---- src/gui/src/initgui.js | 1 + .../src/ui/components/PuterUserMenu.js | 14 ++-- .../src/ui/components/PuterUserMenu.test.js | 12 ++++ 7 files changed, 132 insertions(+), 32 deletions(-) create mode 100644 src/gui/src/UI/UIWindowAppFeedback.test.js diff --git a/src/gui/src/UI/UIWindowAppFeedback.js b/src/gui/src/UI/UIWindowAppFeedback.js index 4267c1dff..b1d503eda 100644 --- a/src/gui/src/UI/UIWindowAppFeedback.js +++ b/src/gui/src/UI/UIWindowAppFeedback.js @@ -40,7 +40,9 @@ let feedback_modal_seq = 0; * server is the authority on the app's canonical title — then submits to * `POST /app-feedback`. * - * @param {{ app?: string, origin?: string, source?: 'app' | 'web' }} options + * @param {{ app?: string, origin?: string, source?: 'app' | 'web', fullpage?: boolean }} options + * `fullpage` fills the viewport instead of floating over it, for a popup + * window that exists only to host this dialog. * @returns {Promise} true iff feedback was submitted successfully. * Resolves false on cancel/close/unavailable — never rejects, so IPC and * popup callers can always report an answer. @@ -71,7 +73,7 @@ async function UIWindowAppFeedback (options) { const titleId = `${modal_id}-title`; const h = ` -