Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 25 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Runs the same gate as `pnpm check` on every pull request.
name: CI

on:
Expand Down Expand Up @@ -26,5 +25,29 @@ jobs:
test-results/
playwright-report/
retention-days: 7
- name: Lighthouse

lighthouse:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- run: corepack enable
- run: pnpm install --frozen-lockfile
- name: Build the production site
run: pnpm build
env:
SHOW_SAMPLE_CONTENT: "false"
NEXT_PUBLIC_SITE_URL: https://flutter.ph
NEXT_PUBLIC_GA_MEASUREMENT_ID: ${{ vars.GA_MEASUREMENT_ID }}
- name: Audit the production export
run: pnpm lighthouse
- uses: actions/upload-artifact@v4
if: always()
with:
name: lighthouse-production
path: .lighthouseci/
include-hidden-files: true
retention-days: 7
7 changes: 3 additions & 4 deletions .lighthouserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
"collect": {
"startServerCommand": "pnpm start",
"startServerReadyPattern": "Accepting connections",
"url": ["http://localhost:3000/"],
"url": ["http://localhost:3000/", "http://localhost:3000/events/shipaton-manila-2026"],
"numberOfRuns": 3,
"settings": {
"preset": "perf",
"formFactor": "mobile",
"throttlingMethod": "simulate",
"onlyCategories": ["performance", "accessibility", "best-practices", "seo"],
"skipAudits": ["is-crawlable"]
"onlyCategories": ["performance", "accessibility", "best-practices", "seo"]
}
},
"assert": {
Expand All @@ -22,6 +20,7 @@
"categories:accessibility": ["error", { "minScore": 0.95 }],
"categories:best-practices": ["error", { "minScore": 0.95 }],
"categories:seo": ["error", { "minScore": 0.95 }],
"is-crawlable": ["error", { "minScore": 1 }],
"largest-contentful-paint": [
"error",
{ "maxNumericValue": 2000, "aggregationMethod": "median-run" }
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,14 @@ To try it on your phone, run `pnpm dev -H 0.0.0.0` and open `http://<your comput
| `pnpm test:e2e` | Accessibility (axe) in light and dark, legacy URLs, at 360 to 1440 px in Chromium and WebKit |
| `pnpm test:perf` | Scroll smoothness in Chromium and WebKit, fails on jank or layout shift |
| `pnpm lighthouse` | Lighthouse mobile against the production build, 95+ budgets |
| `pnpm check` | Everything above that CI runs on every pull request |
| `pnpm check` | Typecheck, lint, formatting, unit tests, preview build, and browser tests |

Run `pnpm build` (or `pnpm build:preview`) before `pnpm test:e2e` and `pnpm test:perf`.

For Lighthouse, run `pnpm build && pnpm lighthouse` with port 3000 free. CI audits the production homepage and Shipaton Manila event page three times each and keeps the HTML and JSON reports in the `lighthouse-production` artifact, including when a budget fails.

For post-deployment indexing checks and a search traffic baseline, see [Check search visibility](docs/search-performance.md).

## How it's built

- Next.js 16 App Router with React Server Components, exported as static files (`output: "export"`)
Expand Down
2 changes: 2 additions & 0 deletions content/events/ffdc-2024-watch-party.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ registered: 76
---

An evening with FFDG Manila watching FlutterFlow Developer Conference 2024, with a showcase of the Kaya Community App. FlutterFlow and Flutter PH are independent entities.

[Watch FlutterFlow’s conference livestream from New York](https://www.youtube.com/watch?v=3-OggW44lHc). The recording covers the conference broadcast, not the local showcase in Pasig.
4 changes: 1 addition & 3 deletions content/events/meetup-2025-06.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,4 @@ rsvpUrl: https://luma.com/5q61mghk
registered: 42
---

{/* TODO(content): Luma lists no address and the description says online. Confirm the format. */}

Talks on building intelligent experiences in Flutter with Firebase Genkit and exploring Firebase Studio, followed by community projects: Exploretale, CoWorkly, ServeBeez and Happy Bidet.
The program paired two sessions: Joshua de Guzman on building intelligent experiences in Flutter with Firebase Genkit, and John Lester Necesito on Firebase Studio. The community showcase listed four projects: Exploretale, CoWorkly, ServeBeez and Happy Bidet.
4 changes: 3 additions & 1 deletion content/events/shipaton-manila-2026.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@ sponsors:
}
---

Shipaton is the world's largest mobile hackathon, hosted by RevenueCat. Shipaton Manila brought the Philippine community together in person, with a new Next Gen Student Track that let students compete internationally.
Flutter Philippines, Swift PH and FFDG Manila brought RevenueCat’s mobile hackathon to Pasig. The 2026 edition included a Next Gen Student Track for students competing internationally.

The Manila program listed Carlo Feliciano on Finally Fit and Adrian Abelarde on Bendy. A FlutterFlow session, community project showcase and mini-hackathon rounded out the agenda.
2 changes: 2 additions & 0 deletions content/events/wwdc-2025-watch-party.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ rsvpUrl: https://luma.com/6i04g76w
---

Flutter PH and Swift PH stayed up together for the WWDC25 keynote.

[Watch the WWDC25 keynote on Apple Developer](https://developer.apple.com/videos/play/wwdc2025/101/). This is Apple’s presentation, not a recording of the Pasig watch party.
4 changes: 3 additions & 1 deletion docs/content-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ All content lives in `content/`. The build checks every file against the schemas

## Events (`content/events/*.mdx`)

Flutter PH's own events. The file name becomes the event's ID.
Flutter PH's own events. The file name becomes a public URL: `content/events/shipaton-manila-2026.mdx` is served at `/events/shipaton-manila-2026`. Keep that name stable when updating an event.

```mdx
---
Expand All @@ -27,6 +27,8 @@ sponsors: # optional, official logos in public/images/sponsors/
A longer description in Markdown.
```

After an event, update the Markdown body with a short recap: who spoke, what they demonstrated, and where to find the materials. Link the speaker’s original demo repository or slides when available. Use the optional `resources.slides`, `resources.recording` and `resources.photos` fields for event materials. If a watch party has only the conference broadcast, label it as such in the body rather than calling it a local recording. Distinguish the published program from what an organizer can confirm actually happened.

Upcoming or past is worked out from `endsAt` in Manila time. The event with the most registrations is shown as the featured event.

## Talks by the team (`content/talks/<year>.yaml`)
Expand Down
18 changes: 18 additions & 0 deletions docs/search-performance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Check search visibility after deployment

A green Lighthouse report tests the build. It does not mean Google indexed the pages or that anyone found them in search.

1. After the GitHub Pages deployment, open [the production sitemap](https://flutter.ph/sitemap.xml). Check that the homepage and published event URLs appear and sample entries do not.
2. In [Search Console](https://search.google.com/search-console), select the verified flutter.ph property. Submit the sitemap under **Sitemaps**. Use **URL inspection** on the homepage and one event: record the indexing verdict, last crawl and Google-selected canonical. A newly published event may not be indexed yet.
3. Under **Performance → Search results**, use Web search and a completed 28-day period. Export clicks, impressions, CTR and average position for the exact queries “flutter philippines” and “flutter meetup manila”. Keep the dates with the export. Compare against the next complete 28-day period. A missing query is not proof of zero searches.
4. Use the event page filter to see which queries actually surface event pages. Look for relevant impressions and clicks, not just changes in average position.

## Repeatable export

As an alternative to using the UI, use a short-lived OAuth access token for a Google account with access to the verified property and the Search Console API enabled. Set `SEARCH_CONSOLE_ACCESS_TOKEN` in the shell, not in the repository. For a URL-prefix property, also set `SEARCH_CONSOLE_PROPERTY=https://flutter.ph/` (default: `sc-domain:flutter.ph`).

```sh
node scripts/search-baseline.mjs --submit-sitemap > ~/flutter-ph-search-baseline.json
```

Omit `--submit-sitemap` for read-only checks. Submission requires the `webmasters` scope; reporting also works with `webmasters.readonly`. The script checks that the event sitemap is live before contacting Google. It reports the index status of the homepage and one published event, plus the two exact queries over 28 days ending four days ago. A null metrics row means Google did not return data. Save dated copies outside the repo. See the [Search Console API reference](https://developers.google.com/webmaster-tools/v1/api_reference_index).
1 change: 1 addition & 0 deletions e2e/legacy-redirects.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ test.describe("legacy flutter.ph URLs keep working", () => {
expect(html).toContain(`content="0; url=${target.to}"`);
expect(html).toContain(`href="${target.to}"`);
expect(html).toContain('name="robots" content="noindex');
expect(html).not.toContain('rel="canonical"');
});
}
}
Expand Down
5 changes: 4 additions & 1 deletion e2e/routes.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
/** Key routes checked for accessibility and captured as screenshots. Grows each phase. */
export const keyRoutes = [{ path: "/", name: "home" }] as const;
export const keyRoutes = [
{ path: "/", name: "home" },
{ path: "/events/shipaton-manila-2026", name: "event" },
] as const;
129 changes: 129 additions & 0 deletions e2e/search-discovery.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
import { existsSync } from "node:fs";
import { expect, test } from "@playwright/test";
import { allEvents } from "../.content-collections/generated/index.js";
import { formatEventRange } from "../src/lib/dates";
import { site, social } from "../src/lib/site";

const home = new URL("/", site.url).href;
const eventPath = (slug: string) => `/events/${encodeURIComponent(slug)}`;
const events = allEvents.filter(
(event) => !event.sample || existsSync(`out${eventPath(event.slug)}.html`),
);

test.use({ javaScriptEnabled: false });
test.beforeEach(({}, testInfo) => {
test.skip(testInfo.project.name !== "desktop-1280", "Static output is viewport-independent.");
});

test("robots and sitemap expose the homepage and published event details", async ({ request }) => {
const robots = await request.get("/robots.txt");
expect(robots.ok()).toBe(true);
const rules = await robots.text();
expect(rules).toMatch(/^User-agent:\s*\*\s*$/im);
expect(rules).toMatch(/^Allow:\s*\/\s*$/im);
expect(rules.split(/\r?\n/)).toContain(`Sitemap: ${home}sitemap.xml`);

const sitemap = await request.get("/sitemap.xml");
expect(sitemap.ok()).toBe(true);
const xml = await sitemap.text();
const urls = Array.from(xml.matchAll(/<loc>(.*?)<\/loc>/g), ([, url]) => url);
const published = [home, ...events.map((event) => new URL(eventPath(event.slug), home).href)];
expect(urls.toSorted()).toEqual(published.toSorted());
});

test("homepage metadata, linked entities and answers are available without JavaScript", async ({
page,
}) => {
await page.goto("/");
const canonical = page.locator('link[rel="canonical"]');
await expect(canonical).toHaveCount(1);
expect(new URL((await canonical.getAttribute("href"))!).href).toBe(home);
expect(await page.locator('meta[name="robots"][content*="noindex" i]').count()).toBe(0);
const title = await page.title();
expect(title).toContain(site.name);
expect(title).not.toBe(site.name);

const description = await page.locator('meta[name="description"]').getAttribute("content");
expect(description).toBeTruthy();
for (const tag of ['meta[property="og:description"]', 'meta[name="twitter:description"]']) {
await expect(page.locator(tag)).toHaveAttribute("content", description!);
}
const ogUrl = await page.locator('meta[property="og:url"]').getAttribute("content");
expect(new URL(ogUrl!).href).toBe(home);

const graphs = await page.locator('script[type="application/ld+json"]').allTextContents();
const nodes = graphs.flatMap((text) => JSON.parse(text)["@graph"] ?? []);
const organization = nodes.find((node) => node["@type"] === "Organization");
const website = nodes.find((node) => node["@type"] === "WebSite");
expect(organization).toMatchObject({ name: site.name });
expect(organization["@id"]).toBeTruthy();
expect(organization.sameAs).toEqual(expect.arrayContaining([social.github.href]));
expect(website).toMatchObject({ publisher: { "@id": organization["@id"] } });

await expect(page.locator("#get-involved h2")).toHaveText(/\?/);
await expect(page.locator("#get-involved")).toContainText(/Metro Manila/);
await expect(page.locator("#learn h2")).toHaveText(/\?/);
await expect(page.locator("#learn")).toContainText(/codelab/i);
const join = page.locator("#join-community");
await expect(join.locator("h2")).toHaveText(/join Flutter Philippines/i);
await expect(join.getByRole("link", { name: /Facebook/i })).toHaveAttribute("href", site.joinUrl);
await expect(join.getByRole("link", { name: /Luma/i })).toHaveAttribute("href", social.luma.href);
});

test("homepage links to every published community event without JavaScript", async ({ page }) => {
await page.goto("/");
const hrefs = await page
.locator("main a[href]")
.evaluateAll((links) => links.map((link) => link.getAttribute("href")));
for (const event of events) {
expect(hrefs, event.title).toContain(eventPath(event.slug));
}
});

for (const event of events) {
test(`event detail: ${event.slug}`, async ({ page }) => {
const path = eventPath(event.slug);
const url = new URL(path, home).href;
expect((await page.goto(path))?.status()).toBe(200);
await expect(page.locator("h1")).toHaveText(event.title);
await expect(page.locator("main")).toContainText(event.summary);
await expect(page.locator("main")).toContainText(
formatEventRange(event.startsAt, event.endsAt),
);
if (event.registered) {
await expect(page.locator("main")).toContainText(`${event.registered} registered`);
}
await expect(page).toHaveTitle(`${event.title} | ${site.name}`);
await expect(page.locator('meta[name="description"]')).toHaveAttribute(
"content",
event.summary,
);
await expect(page.locator('link[rel="canonical"]')).toHaveAttribute("href", url);
await expect(page.locator('meta[property="og:url"]')).toHaveAttribute("content", url);
await expect(page.locator('meta[name="robots"][content*="noindex" i]')).toHaveCount(0);
if (event.rsvpUrl) {
expect(
await page
.locator("main a")
.evaluateAll((links) => links.map((a) => a.getAttribute("href"))),
).toContain(event.rsvpUrl);
}

const scripts = await page.locator('script[type="application/ld+json"]').allTextContents();
const item = scripts.map((text) => JSON.parse(text)).find((doc) => doc["@type"] === "Event");
expect(item).toMatchObject({
name: event.title,
url,
description: event.summary,
startDate: event.startsAt,
endDate: event.endsAt,
organizer: { "@type": "Organization", name: site.name },
});
if (event.format === "in-person" && event.venue) {
expect(item.location).toMatchObject({ "@type": "Place", name: event.venue.name });
await expect(page.locator("main")).toContainText(event.venue.name);
} else if (event.format === "online") {
expect(item.location).toMatchObject({ "@type": "VirtualLocation" });
}
});
}
57 changes: 57 additions & 0 deletions scripts/search-baseline.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
const origin = "https://flutter.ph/";
const sitemap = new URL("sitemap.xml", origin).href;
const property = process.env.SEARCH_CONSOLE_PROPERTY || "sc-domain:flutter.ph";
const token = process.env.SEARCH_CONSOLE_ACCESS_TOKEN;
const submit = process.argv.includes("--submit-sitemap");

if (!token) {
throw new Error("Set SEARCH_CONSOLE_ACCESS_TOKEN for a verified flutter.ph property.");
}

async function google(url, method, data) {
const response = await fetch(url, {
method,
redirect: "error",
headers: { Authorization: `Bearer ${token}`, "Content-Type": "application/json" },
body: data && JSON.stringify(data),
});
if (!response.ok) throw new Error(`Search Console: ${response.status} ${await response.text()}`);
return method === "PUT" ? null : response.json();
}

const api = `https://www.googleapis.com/webmasters/v3/sites/${encodeURIComponent(property)}`;
const response = await fetch(sitemap);
if (!response.ok) throw new Error(`Deploy the event sitemap first (HTTP ${response.status}).`);
const urls = [...(await response.text()).matchAll(/<loc>([^<]+)<\/loc>/g)].map((m) => m[1]);
const event = urls.find((url) => url.startsWith(origin + "events/"));
if (!urls.includes(origin) || !event) throw new Error("The event sitemap is not live yet.");
if (submit) await google(`${api}/sitemaps/${encodeURIComponent(sitemap)}`, "PUT");

const date = (offset) => new Date(Date.now() - offset * 86400000).toISOString().slice(0, 10);
const period = { startDate: date(31), endDate: date(4) };
const inspections = [];
for (const inspectionUrl of [origin, event]) {
const { inspectionResult } = await google(
"https://searchconsole.googleapis.com/v1/urlInspection/index:inspect",
"POST",
{ inspectionUrl, siteUrl: property, languageCode: "en-US" },
);
inspections.push({ url: inspectionUrl, ...inspectionResult.indexStatusResult });
}

const queries = [];
for (const query of ["flutter philippines", "flutter meetup manila"]) {
const { rows = [] } = await google(`${api}/searchAnalytics/query`, "POST", {
...period,
type: "web",
dimensions: ["query"],
dimensionFilterGroups: [
{ filters: [{ dimension: "query", operator: "equals", expression: query }] },
],
});
queries.push({ query, metrics: rows[0] ?? null });
}

console.log(
JSON.stringify({ property, period, sitemapSubmitted: submit, inspections, queries }, null, 2),
);
Loading
Loading