Login/signup modal renders behind the app in expanded mode (showLoginPrompt looks like a no-op)
まだ誰も着手していません。
評価
- 難易度
- 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 ·