Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add donors component #4251

Merged
merged 4 commits into from
Dec 6, 2024
Merged

Add donors component #4251

merged 4 commits into from
Dec 6, 2024

Conversation

rakyi
Copy link
Contributor

@rakyi rakyi commented Dec 4, 2024

I also fixed a few unrelated things.

Screenshot 2024-12-04 at 14-30-54 How We’re Funded - Our World in Data

@owidbot
Copy link
Contributor

owidbot commented Dec 4, 2024

Quick links (staging server):

Site Dev Site Preview Admin Wizard Docs

Login: ssh owid@staging-site-about-donors

SVG tester:

Number of differences (default views): 0 ✅
Number of differences (all views): 0 ✅

Edited: 2024-12-04 14:03:29 UTC
Execution time: 1.27 seconds

@rakyi rakyi requested a review from ikesau December 4, 2024 14:19
@rakyi rakyi marked this pull request as ready for review December 4, 2024 14:19
export class CreateDonors1733228214376 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`-- sql
CREATE TABLE donors (
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This table will be read and written to from the scripts that we use to update the donor list. Previously the scripts generated HTML, now they will use this table. That part will be reviewed and QA'd by Lars.

),
// TODO: better validation here?
() => GdocPost.create({ ...(json as any) })
)
.with(
OwidGdocType.AboutPage,
// TODO: better validation here?
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added the same TODO as above and below for consistency.

@rakyi
Copy link
Contributor Author

rakyi commented Dec 5, 2024

You can see the new list of donors here.

Copy link
Member

@ikesau ikesau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! 👍

site/gdocs/components/Donors.tsx Outdated Show resolved Hide resolved
@rakyi rakyi merged commit bafb990 into master Dec 6, 2024
12 of 14 checks passed
@rakyi rakyi deleted the about-donors branch December 6, 2024 14:49
@rakyi rakyi linked an issue Dec 12, 2024 that may be closed by this pull request
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.

Create new donors block
3 participants