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

Đang mở
#304 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

  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.

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của reddit/devvit

Tất cả issue của reddit/devvit

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.