PR description is hidden when a PR review opens on a phone

未关闭 适合新手
#3,667 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@flipcyde101 已经在做这个了。

开始于 2026年11月19日。

  • #3749 来自 @flipcyde101 —— 未关闭
  • #3861 来自 @backnotprop —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
78/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
react, typescript
领域
frontend, mobile

调研方向

从 packages/review-editor/App.tsx 中的 landing 逻辑开始,尤其检查 isCompactTouchLayout 条件,并查看 adr/research/synthesis-mobile-feedback-triage-20260812.md 中描述的移动端布局行为。在 375×812 的尺寸下通过一次 PR review 重现,并与 1440 像素时进行比较。当手机上的 PR review 打开时显示 PR Overview,且仍可通过 Review 导航访问 All changes,即为完成。

由索引模型根据 Issue 内容生成。

描述

What happened?

I opened a GitHub PR review on my phone with plannotator review <pr-url> --tailscale. The review showed the diff, but I couldn't find the PR description.

On a wide screen, a PR review opens on PR Overview, which shows the description first. In the phone layout (PHONE_REVIEW_LAYOUT_MEDIA_QUERY), it opens on All changes instead. The description is still there, but only after I open Review navigation and tap the PR row. Nothing on the diff screen points there.

The landing comes from packages/review-editor/App.tsx:

if (prMetadata && !isCompactTouchLayout) openPROverviewPanel();
else openAllFilesPanel();

#1301 chose this on purpose. adr/research/synthesis-mobile-feedback-triage-20260812.md says PR reviews "arrive in full-width All Files instead of opening the tree or PR overview beside the diff", and an iPhone pass "confirmed the artifact-first direction". On a phone, though, PR Overview already opens as one full-width tab, never beside the diff. For a PR, the description is part of what I review, and the artifact-first landing hides it from someone who doesn't know the navigator holds it.

Could phone PR reviews land on PR Overview too? All changes would stay one tap away in Review navigation, as on a wide screen.

Steps, in Chromium at 375×812:

  1. plannotator review https://github.com/<owner>/<repo>/pull/<n>
  2. Open the URL at 375 pixels wide, with or without touch emulation.
  3. Close Review navigation. The page shows All changes, and the PR description is not in the page.
  4. Open Review navigation and tap the PR row. The description appears.

The same PR at 1440 pixels shows the description on load. --tailscale doesn't change the result.

Plannotator version

0.28.37, and a source checkout of main at 55e6bbd2 (0.29.0).

OS

macOS.

Agent

Claude Code.

Where did it happen?

Code review.

Browser

A phone browser over Tailscale. Reproduced in Chromium 157.

主要语言
TypeScript
星标
8.7k
派生
649
平均合并
14 小时 26 分钟
30 天内合并 PR
772

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

backnotprop/plannotator 的其他 Issue

查看 backnotprop/plannotator 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。