image inventory analysis for docs.temporal.io on screenshot drift

未关闭
#5,817 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
文档
描述清晰度
基本清楚
活跃度
活跃
技术栈
go, javascript
领域
documentation

调研方向

This is a multi-part audit, so pick one of the eight mismatched images to start, such as cloud/billing/billing-card.png, and open the page that links to it to compare the alt text and the image. Items that need live Cloud or Web UI access or a running Nexus setup are not beginner-friendly. Done means the chosen image and its alt text or caption agree, and the docs site still builds.

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

描述

Temporal Affiliation
  • I am a Temporal employee
Page URL

docs.temporal.io

Content Issue

Ran an inventory analysis of every image in the docs repo to find out how many UI screenshots are out of date and whether each image still matches the text around it.

Additional info

Used a script to list all 293 image files under static/ and docs/, find which pages use each one, and check when each file last changed in git. It opens the 138 screenshots and other non-diagram images one by one and compares them with the current Web UI (2.56.4) and with the text around them. Sorted diagrams and site icons by folder without opening them.

What I found

  • 46 of the images are screenshots of the Cloud UI or the Web UI. Only 2 are current and 24 are out of date or very likely out of date. The other 20 are zoomed in on a single form or menu, with no dates or surrounding page, so I couldn't tell how old they are without checking them against the live UI.
  • 8 images don't match what the page says about them, and that's true regardless of how old they are.
  • 5 images aren't used anywhere anymore. Each one was left behind when the content around it was removed.
  • Web UI screenshots can be retaken with a script. I tested it on webui/stripped_workflow_types_in_webui.png, and it produced light and dark versions without any manual work.

Images that don't match the page

Note: Many of these are small nits and fixes.

  • cloud/billing/billing-card.png: the alt text (read by screen readers) says the bill is $0.00, but the image shows $42.88.
    Link: Billing
  • encyclopedia/architecture/temporal-clients-and-server.png: the alt text says the Clients connect to the Server, but the image doesn't show a connection.
    Link: How Temporal works
  • cloud/provisioned-capacity/manage_capacity_panel.png: the paragraph above the image says the panel shows APS usage over the last one day, but the panel says "APS Usage (Last 7 Days)".
    Link: Capacity modes
  • cloud/nexus/nexus-callback.png: the caption says Pending Callbacks, but the callback in the image already succeeded.
    Link: Nexus execution debugging
  • cloud/tags/CreateNamespace-AddedTag.png: the caption says the tag has been added, but it's still being typed in.
    Link: Namespaces
  • info/retry-interval-diagram.png: the formula is missing Maximum Interval, which the page includes.
    Link: Retry Policies
  • guides/assets/recover-without-restart/keep-business-moving-list-view.png: the alt text near the top of the page describes things the image doesn't show.
    Link: Recover without restart

Next steps

  • Fix the eight images above.
  • Retake info/data-encoder-button.png and guides/assets/recover-without-restart/keep-business-moving-event-history.png from a local dev server, and swap in the new version of webui/stripped_workflow_types_in_webui.png from the test.
  • Retake the five Nexus screenshots in cloud/nexus/. These need actual Nexus calls happening, which the CLI can't do by itself, so I'll need a small program that sets up the Namespaces and Endpoint and runs a few Workflows. The Go Nexus sample in temporalio/samples-go should cover most of it.
  • Check the 20 undated Cloud screenshots against the live Cloud UI, starting with the two on the Cloud limits page (cloud-guide/edit-namespace-option.png and cloud-guide/edit-retention-period.png) and determine an automated process for this.
  • Look into adding a file to the repo that lists each UI screenshot, what it should show, where it's used, and how to retake it, plus a PR check that catches screenshots that fall out of sync with their page.
  • Delete the five unused images once I've confirmed nothing outside the repo still uses them:
    • static/img/standalone-activities-ui-nav.png
    • static/img/cloud/apikeys/namespaces-and-regional-endpoints.png
    • static/img/cloud/metrics/service-account-with-metrics-role.png
    • static/img/cloud/prometheus/add-prometheus-api-endpoint.png
    • docs/guides/assets/recover-without-restart/keep-business-moving-cover.png
主要语言
JavaScript
星标
177
派生
339
平均合并
2 天 8 小时
30 天内合并 PR
194

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

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

temporalio/documentation 的其他 Issue

查看 temporalio/documentation 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

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