Login/signup modal renders behind the app in expanded mode (showLoginPrompt looks like a no-op)

未關閉
#304 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
55/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
typescript

研究方向

Start with the expanded-mode flow in @devvit/web/client, especially requestExpandedMode, exitExpandedMode, and showLoginPrompt; use the linked minimal repro to compare the prompt before and after exiting expanded mode. Trace how the host displays its auth modal and how the expanded web view is layered. Done when both the app's login prompt and Reddit's Join button show the modal above the expanded app.

由索引模型根據 Issue 內容生成。

描述

Summary

For a logged-out viewer on desktop web, Reddit's login/signup modal is rendered behind the app while the web view is in expanded mode, so showLoginPrompt() looks like a no-op.

Environment

  • Devvit packages / CLI: 0.15.4 (@devvit/web, @devvit/start, devvit)
  • Desktop web browser (reproduced in Chrome on reddit.com)
  • Viewer is logged out

Steps to reproduce

Minimal repro app: https://github.com/yusakman/devvit-expanded-login-prompt

  1. Install/playtest the repro app on a test subreddit and open its post while logged out.
  2. Tap Play — the app opens in expanded mode (requestExpandedMode(event, 'game')).
  3. Tap the button that calls showLoginPrompt() from @devvit/web/client.

Expected

Reddit's Sign Up / Log In modal appears on top of the app.

Actual

The modal is drawn in the host page behind the full-screen expanded web view, so it is not visible. It looks like the button did nothing.

Additional observations:

  • Leaving expanded mode first (exitExpandedMode(event)) and then calling showLoginPrompt() makes the modal visible — that is the workaround the reporting app ships — but the game has to collapse out of expanded mode just to show a login prompt.
  • Reddit's own Join button in the expanded-view header (the … / Join / expand / close bar) behaves the same way: its auth modal also appears behind the app, which suggests the host overlay/modal layer sits below the expanded web view rather than above it.

Impact

Logged-out players who play a run and tap "Sign in" cannot log in, because the modal is invisible, and Reddit's own Join in the expanded header is affected too.

主要語言
TypeScript
星號
217
分支
89
PR 合併指標
30 天內沒有已合併 PR

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

reddit/devvit 的其他 Issue

查看 reddit/devvit 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。