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

Aperta
#5,817 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go, javascript
Ambito
documentation

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
JavaScript
Stelle
177
Fork
339
Merge medio
2g 8h
PR unite (30g)
194

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di temporalio/documentation

Tutte le issue di temporalio/documentation

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.