Skip to content

Implement updates tracking OWID grapher#6

Open
xrendan wants to merge 1058 commits intoBuildCanada:masterfrom
owid:master
Open

Implement updates tracking OWID grapher#6
xrendan wants to merge 1058 commits intoBuildCanada:masterfrom
owid:master

Conversation

@xrendan
Copy link
Copy Markdown
Member

@xrendan xrendan commented Feb 26, 2026

Context

Links to issues, Figma, Slack, and a technical introduction to the work.

Screenshots / Videos / Diagrams

Add if relevant, i.e. might not be necessary when there are no UI changes.

Testing guidance

Step-by-step instructions on how to test this change

  • Does the change work in the archive?
  • Does the staging experience have sign-off from product stakeholders?

Reminder to annotate the PR diff with design notes, alternatives you considered, and any other helpful context.

Checklist

(delete all that do not apply)

Before merging

  • Google Analytics events were adapted to fit the changes in this PR
  • Changes to CSS/HTML were checked on Desktop and Mobile Safari at all three breakpoints
  • Changes to HTML were checked for accessibility concerns

If DB migrations exists:

  • If columns have been added/deleted, all necessary views were recreated
  • The DB type definitions have been updated
  • The DB types in the ETL have been updated
  • If tables/views were added/removed, the Datasette export has been updated to take this into account
  • Update the documentation in db/docs

After merging

  • If a table was touched that is synced to R2, the sync script to update R2 has been run

marcelgerber and others added 29 commits April 1, 2026 16:42
Admin-only button in the DI footer that copies a plain-text version
of the insight (title, body, author attribution, CTA) to clipboard,
formatted for social media posting.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Collection of small improvement to shared bespoke components
Causes of Death Treemap as Bespoke viz
Add 'Copy for social' button to Data Insight pages
dependabot Bot and others added 30 commits May 5, 2026 09:44
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
🔨 (typescript) check for unused locals
Pass the full grapher config to getDatapageDataV2 for multi-dim views,
instead of the partial view config from the multi-dim config.

This seems like a general oversight that slipped through until now. It
was uncovered thanks to an incorrect citation in "How to cite this
data", which wasn't using the title from the full grapher config, where
the title comes from the variable grapher config, and instead fell back
to variable.display.name.
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Mirror analytics fixes from cloudflare-workers PR

Ports the GA4 analytics changes from
owid/cloudflare-workers#27 so the two mirrored
analytics.ts files stay in sync.

- Namespace Grapher query params under q_* in cf_function_invocation
  events. Until now `?country=DE` (a real Grapher param used by chart
  embeds, thumbnails, and downloads) overwrote the structured `country`
  field sourced from cf-ipcountry, silently corrupting the country
  column in dbt's raw_traffic / worker_traffic. Other query params pass
  through bare, except for collisions with structured names which are
  dropped via a reserved-key set (built from Object.keys(params) plus
  "status_code"). The Grapher key list comes from GRAPHER_QUERY_PARAM_KEYS
  in @ourworldindata/types — same source-of-truth used elsewhere in
  this repo (e.g. functions/_common/urlTools.ts).
- Add a `host` param so the same event can carry which hostname served
  the request (e.g. ourworldindata.org vs api.owid.io). Drop the
  pathname argument from getCommonEventParams; it's derivable from
  request.url and was always passed by the single call site as such.
- Switch from the hand-rolled parseCookies in cookieTools.ts to
  parseCookie from the `cookie` npm package (jshttp). Bumps the
  functions workspace dep to ^1.1.1 to pick up the parseCookie alias
  (parse is now deprecated upstream).
- Add the reverse-link header comment pointing at the cloudflare-workers
  mirror, so future readers of either file know to update both.

* 🐛🤖 Address analytics review comments

* 🔨🤖 Inline analytics cookie helper
✨ hide tick marks when x-axis is shared
🔨 standardise AxisView components
🎉 (admin) add last edited note for map brackets
Adds support for shared x-axis for faceted slope charts.

This is a bit more involved because this involves a rewrite of using HorizontalAxis in slope charts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants