Repository navigation
feat(inspector): link GERS IDs to gers.page - #402
Alex Iannicelli (atiannicelli) wants to merge 2 commits into
Conversation
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>
🗺️ Overture Explorer preview is live!
Note ♻️ This preview updates automatically with each push to this PR. |
There was a problem hiding this comment.
🟢 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, andbuilding_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
Eric Godwin (ericgodwin)
left a comment
There was a problem hiding this comment.
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 |
|
Bad dog! Closing |
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,addressesandbuilding_partIDs are shown without it.Changes
components/inspector_panel/ThemePanel.jsx: renders the link (MUIOpenInNewicon, "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 forbase,addressesandbuilding_part.Testing
npx jest: all suites pass.npx eslinton the changed files: clean.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