Login/signup modal renders behind the app in expanded mode (showLoginPrompt looks like a no-op)
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 55/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- authentication, frontend
Research direction
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.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- TypeScript
- Stars
- 217
- Forks
- 89
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from reddit/devvit
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
-
Bound concurrent filesystem reads during asset discovery and source ZIP generationPossibly taken @CR29-22-2805 claimed this 138 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 95/100
amosblomqvist/learnharness#1141 ·
Maintainers usually reply within 4 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
ranxianglei/billion-context#8319 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
tencent-connect/dsh-qqbot#148 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
JimLiu/open-artifact#126 ·
-
bug repro-ready
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
mksglu/context-mode#1454 ·