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

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
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時間
マージ済み PR(30日)
194

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

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

temporalio/documentation のほかの issue

temporalio/documentation の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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