Login/signup modal renders behind the app in expanded mode (showLoginPrompt looks like a no-op)
还没有人认领这个 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
- Install/playtest the repro app on a test subreddit and open its post while logged out.
- Tap Play — the app opens in expanded mode (
requestExpandedMode(event, 'game')). - 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 callingshowLoginPrompt()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 / closebar) 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,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
reddit/devvit 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 1/5 1 小时以内 新手友好度 85/100
-
难度 2/5 1-3 小时 新手友好度 67/100
-
Bound concurrent filesystem reads during asset discovery and source ZIP generation可能已有人在做 @CR29-22-2805 于 138 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 65/100
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 95/100
amosblomqvist/learnharness#1141 ·
维护者通常 4 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
ranxianglei/billion-context#8319 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
tencent-connect/dsh-qqbot#148 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
JimLiu/open-artifact#126 ·
-
bug repro-ready
难度 2/5 1-3 小时 新手友好度 86/100
mksglu/context-mode#1454 ·