mirror of
https://github.com/HeyPuter/puter.git
synced 2026-08-24 15:07:17 +00:00
fix: carry feedback_enabled in suggested/recommended app summaries
launch_app uses options.app_obj verbatim when provided, and the suggested-apps launch paths (open_item.js, UIWindowSearch.js, UIDesktop.js) pass summaries from toAppSummary — which omitted feedback_enabled. So an opted-in editor launched by opening a .txt file showed no Send Feedback control in the dashboard drawer, while the same app launched from the Apps tab (full puter.apps.get object) did.
This commit is contained in:
@@ -75,6 +75,10 @@ function toAppSummary(
|
||||
godmode: Boolean(app.godmode),
|
||||
maximize_on_start: Boolean(app.maximize_on_start),
|
||||
index_url: app.index_url,
|
||||
// Launched straight from this summary as `app_obj` — see
|
||||
// SuggestedAppsService.toAppSummary; the drawer's feedback control
|
||||
// renders off this flag.
|
||||
feedback_enabled: Boolean(app.feedback_enabled),
|
||||
// An app with no owner isn't owned by a Puter user — it's an
|
||||
// "external" (origin-bootstrapped) app.
|
||||
external: app.owner_user_id == null || app.owner_user_id === '',
|
||||
|
||||
@@ -338,5 +338,10 @@ function toAppSummary(
|
||||
godmode: Boolean(app.godmode),
|
||||
maximize_on_start: Boolean(app.maximize_on_start),
|
||||
index_url: app.index_url,
|
||||
// The GUI launches straight from this summary as `app_obj` (no
|
||||
// re-read through AppDriver), so any launch-relevant flag omitted
|
||||
// here silently disappears on those paths — e.g. the dashboard
|
||||
// drawer's feedback control renders off this.
|
||||
feedback_enabled: Boolean(app.feedback_enabled),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user