Landing page extensions link to dashboard_url, sending viewers into the content dashboard

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

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
52/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
r
Área
web-dev

Línea de trabajo

Read extensions/shiny-landing-page/R/content_hub.R and extensions/quarto-website/content_hub.R, then inspect extensions/shiny-landing-page/tests/testthat/test-content_hub.R and the manifest versions. Check whether standalone /content/<guid>/ gives unauthorized viewers a usable access-denied or request-access page; that result determines the Quarto extension behavior. Done when the links, comment, fixture, and manifest versions reflect the chosen behavior.

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

Descripción

enhancement

The Custom Landing Page (shiny-landing-page) and Quarto: Content Hub (quarto-website) extensions link each content item to its dashboard_url:

    # dashboard_url opens the item inside Connect's own frame, with its title,
    # info panel, and sharing controls, rather than bare.
    url = content$dashboard_url,

This appears in extensions/shiny-landing-page/R/content_hub.R and extensions/quarto-website/content_hub.R.

A main use for these extensions is as the Server.RootRedirect target, so that viewers land on a curated page instead of the Connect content dashboard. With dashboard_url, every content link takes the viewer into the dashboard, and the ‹ CONTENT breadcrumb there leads straight to the full content list. That defeats the purpose of the redirect.

Proposal

Link to content_url (standalone) instead.

  • The landing page itself is viewed standalone, so linking onward to standalone content is consistent.
  • The title, info panel, and sharing controls in the dashboard frame matter mostly to publishers and administrators, who can still reach the dashboard at /connect/.
  • It matches the behavior of connectwidgets, which linked to content in standalone mode.

Things to check

  • Quarto: Content Hub lists content its publisher can see, so viewers may click items they can't access. Confirm that a standalone /content/<guid>/ gives an unauthorized viewer a usable access-denied or request-access page. If it doesn't, consider keeping dashboard_url for that extension, or making the link target configurable.
  • Update the comment, the dashboard_url fixture in extensions/shiny-landing-page/tests/testthat/test-content_hub.R, and the manifest versions.
Lenguaje dominante
R
Estrellas
10
Forks
8
Merge medio
9 h 43 min
PR fusionados (30 d)
2

Preparar el entorno

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 posit-dev/connect-extensions

Todos los issues de posit-dev/connect-extensions

Issues similares

Más issues de R

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.