Login/signup modal renders behind the app in expanded mode (showLoginPrompt looks like a no-op)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- authentication, frontend
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 217
- Fork
- 89
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của reddit/devvit
-
redis.expireTime() returns relative TTL seconds on live host instead of Unix timestamp secondsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
-
Bound concurrent filesystem reads during asset discovery and source ZIP generationCó thể đã có người làm @CR29-22-2805 đã nhận 138 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Tất cả issue của reddit/devvit
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
amosblomqvist/learnharness#1141 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
ranxianglei/billion-context#8319 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
tencent-connect/dsh-qqbot#148 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
JimLiu/open-artifact#126 ·
-
Claude Code: replace stub has no cut cue, a 6128 B Bash output reads as the one line `END6000`Đang mởbug repro-ready
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
mksglu/context-mode#1454 ·