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

Đang mở
#5,817 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go, javascript
Lĩnh vực
documentation

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
JavaScript
Star
177
Fork
339
Merge trung bình
2 ngày 8 giờ
Pull request đã merge (30 ngày)
194

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của temporalio/documentation

Tất cả issue của temporalio/documentation

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.