Login/signup modal renders behind the app in expanded mode (showLoginPrompt looks like a no-op)
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 55/100
- Type d'issue
- Bug
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- typescript
- Domaine
- authentication, frontend
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
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.
- Langage dominant
- TypeScript
- Étoiles
- 217
- Forks
- 89
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de reddit/devvit
-
redis.expireTime() returns relative TTL seconds on live host instead of Unix timestamp secondsOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 85/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 67/100
-
Bound concurrent filesystem reads during asset discovery and source ZIP generationPeut-être pris @CR29-22-2805 l’a pris il y a 138 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
Toutes les issues de reddit/devvit
Issues similaires
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 95/100
amosblomqvist/learnharness#1141 ·
Les mainteneurs répondent en général sous 4 jours
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
ranxianglei/billion-context#8319 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
tencent-connect/dsh-qqbot#148 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 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`Ouvertebug repro-ready
Difficulté 2/5 1-3 heures Accessibilité débutants 86/100
mksglu/context-mode#1454 ·