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

オープン
#484 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
52/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
r
領域
web-dev

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
R
スター
10
フォーク
8
平均マージ
9時間 43分
マージ済み PR(30日)
2

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

posit-dev/connect-extensions のほかの issue

posit-dev/connect-extensions の issue をすべて見る

似ている issue

R の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。