Skip to content

fix(demo): show the OpenStreetMap attribution and drop the default e2e API key - #148

Merged
kochizufan merged 1 commit into
train/2026-12from
dec26/demo-osm-attribution-and-e2e-key
Oct 30, 2026
Merged

kochizufan merged 1 commit into
train/2026-12from
dec26/demo-osm-attribution-and-e2e-key

Conversation

@kochizufan

Copy link
Copy Markdown
Member

Summary

  • The demo now shows © OpenStreetMap contributors and a link to the OpenStreetMap copyright page next to vector layers whose source is OpenStreetMap. The text and link are built with DOM APIs, so no innerHTML is added.
  • e2e/maplat-legacy.spec.ts reads the Google key only from GOOGLE_MAPS_API_KEY and has no default. The test passes without a key because it never switches to a Google map.
  • .github/secret_scanning.yml no longer excludes index.html.
  • New static test spec/no-google-api-key.spec.ts checks tracked files for key-shaped strings and pins the five remaining exclusions. On failure it reports file names only.
  • README (en/ja) notes that the E2E tests need no key.

src/ and .github/workflows/test.yml are unchanged.

Verification

Check Before the fix After the fix
spec/no-google-api-key.spec.ts 2 failed (1 file matched, 6 exclusions) 2 passed
e2e/nov26-m4-t8-demo.spec.ts, attribution tests 6 failed on the new assertions passed
e2e/maplat-legacy.spec.ts without a key not applicable passed
vitest run not applicable 974 passed, 1 skipped
tsc --noEmit not applicable exit 0
eslint src spec not applicable 0 errors (2 existing warnings)

The E2E runs used --trace off --reporter line, and their output held no key-shaped strings.

🤖 Generated with Claude Code

…e API key

The demo now shows the copyright notice and a link for vector layers sourced from OpenStreetMap. It is built with DOM APIs, so the data stays text.

The legacy e2e test reads the Google key only from the environment and runs without one. A static test keeps key-shaped strings out of tracked files and pins the secret scanning exclusions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kochizufan
kochizufan marked this pull request as ready for review October 30, 2026 18:30
@kochizufan
kochizufan merged commit 6f3ef11 into train/2026-12 Oct 30, 2026
5 checks passed
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.

1 participant