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

Abierto
#304 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
typescript

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
217
Forks
89
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de reddit/devvit

Todos los issues de reddit/devvit

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.