Skip to content

feat(inspector): link GERS IDs to gers.page - #402

Closed
Alex Iannicelli (atiannicelli) wants to merge 2 commits into
mainfrom
atiannicelli-gers-page-link
Closed

Alex Iannicelli (atiannicelli) wants to merge 2 commits into
mainfrom
atiannicelli-gers-page-link

Conversation

@atiannicelli

@atiannicelli Alex Iannicelli (atiannicelli) commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes #401

Adds an external-link icon after the GERS ID in the inspector panel that opens https://gers.page/id/<id> in a new tab. The icon is shown only for theme/types in the GERS registry; base, addresses and building_part IDs are shown without it.

Changes

  • components/inspector_panel/ThemePanel.jsx: renders the link (MUI OpenInNew icon, "View on gers.page" tooltip, accessible label) when the feature's theme/type isn't on the registry's deny-list. Double-click to copy the ID is unchanged.
  • components/inspector_panel/ThemePanel.css: small, muted icon styling that inherits the text colour (works in light and dark mode).
  • __tests__/ThemePanel.test.js: covers the link for all seven registry types and its absence for base, addresses and building_part.

Testing

  • npx jest: all suites pass.
  • npx eslint on the changed files: clean.
  • Checked in a local dev server with a Seattle place (places.place.3b115ca6-ca2e-4704-9d05-941563714caf): the icon renders next to the ID and links to the matching gers.page page.

Picture for an example of the link

image

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Alex Iannicelli <atiannicelli@gmail.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Alex Iannicelli <atiannicelli@gmail.com>
@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown

🗺️ Overture Explorer preview is live!

🌍 Preview https://staging.overturemaps.org/explore-site/pr/402/index.html
🕐 Updated 2026-11-08T20:14:49Z
📝 Commit 44f92c8

Note

♻️ This preview updates automatically with each push to this PR.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues block approval of the change adding gers.page access from the inspector panel.

No open issues 🎉

What changed in this PR

Adds direct access to gers.page from the inspector panel, addressing #401 while preserving double-click copying of GERS IDs.

Changes:

  • Adds an accessible external-link icon for registry-supported features, excluding base, addresses, and building_part.
  • Styles the icon to inherit text color, with hover and keyboard-focus feedback.
  • Adds tests for supported types, excluded types, and features without IDs.
File Description
components/​inspector_panel/​ThemePanel.jsx Conditionally renders the gers.page link with a tooltip and accessible label.
components/​inspector_panel/​ThemePanel.css Adds compact icon styling and hover/focus states.
__tests__/​ThemePanel.test.js Covers link visibility, destination, and new-tab attributes.

Review effort: Balanced

@ericgodwin Eric Godwin (ericgodwin) left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Before making this change we have to decide if we are going to keep and maintain the GERS per page artifact, correct?

@atiannicelli

Alex Iannicelli (atiannicelli) commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor Author

Before making this change we have to decide if we are going to keep and maintain the GERS per page artifact, correct?

That's why I added you as a reviewer... I don't mind maintaining the gers.page site on my own... if I end up taking it down then we can remove the link. I realize that this is a bit "inside baseball" to add a link to a personal page so I get it if we don't want to do it. Not a big deal either way. If you would rather not add it I can close the PR

@atiannicelli

Copy link
Copy Markdown
Contributor Author

Bad dog! Closing

This branch was previously deployed

1 inactive deployment
staging — 17c9cef0 Deployed Nov 9, 2026 by atiannicelli via Cleanup #58
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.

Link GERS IDs in the inspector panel to gers.page

3 participants