mirror of
https://github.com/HeyPuter/puter.git
synced 2026-11-23 14:17:06 +00:00
* Show the app feedback dialog in a frame on first-party pages puter.ui.showFeedbackDialog() on a page one label under the Puter origin now frames /embed/feedback in a modal over the page, instead of opening a puter.com popup. The embed uses the same framing rules, query redirect, and host-user binding as /embed/apps, and sends the feedback for the framing page's origin, which the server reads from the referrer and pins with frame-ancestors. Without the named user's Puter session, or with an email still to confirm, the embed reports itself unavailable and the SDK falls back to the popup, which can sign in. A frame that never answers (such as one the host's CSP blocks) falls back too. The embed session check moves out of appsEmbed.js into a shared helper, and the first-party page check out of <puter-user-menu> into puter.js's lib, so both embeds use one copy of each. * Keep the framing page from scrolling behind the feedback embed A wheel or touch scroll over the feedback embed's scrim chained out of the frame and scrolled the first-party page underneath the open dialog. The embed's root now stops overscroll from leaving the frame. * Name the feedback embed's user from the cached whoami showFeedbackDialog() on a first-party page fetched /whoami before it started loading the embed, adding a round trip to every call. It now uses the user puter.js already cached for the session and asks the API only when there is none.