Skip to content

BDMS-903: Open well show pages in new windows from the well list - #325

Merged
jirhiker merged 1 commit into
stagingfrom
BDMS-903-open-well-show-new-window
Aug 5, 2026
Merged

BDMS-903: Open well show pages in new windows from the well list#325
jirhiker merged 1 commit into
stagingfrom
BDMS-903-open-well-show-new-window

Conversation

@jirhiker

@jirhiker jirhiker commented Aug 5, 2026

Copy link
Copy Markdown
Member

Closes BDMS-903.

Why

AMP Team users compare several wells at a time, but every route from the well list to a well detail page replaced the list in place, so scroll position, search, and filters were lost on each round trip.

What changed

  • New leading column on the well list. Each cell is a link to that well's show page with target="_blank". The link fills the whole cell, so clicking anywhere in the column opens the well in a new window — not just the icon glyph. Because it is a real anchor, middle click and the browser's own "Open link in new window" context menu work too.
  • Ctrl/Cmd+click and middle click on any list row now open the record's show page in a new window instead of navigating in place. This lives in ListPage, so other Ocotillo list pages get it as well. Shift is deliberately untouched — the DataGrid uses it for row range selection.
  • buildWellShowPath extracted in wellPublicUrls.ts so the in-app well route has a single definition; buildWellShowAbsoluteUrl now builds on it.

Plain left click behavior is unchanged: the row still navigates in the same tab.

Acceptance criteria

  • Users can open individual well show pages from the well list in new windows
  • Supports viewing details for multiple wells at once
  • Works for wells in the well list

Testing

  • New unit tests in src/test/components/listPageNewWindow.test.ts cover the new-window click detection and the blocked-popup path.
  • npx vitest run src/test/{components,pages,utils} — 214 passed.
  • Verified in the running dev app: the column link resolves to /ocotillo/well/show/:id with target="_blank" rel="noopener noreferrer" and an Open <well name> in a new window aria-label; Ctrl+click on a row calls window.open(...,'_blank','noopener,noreferrer') while a plain click still navigates in place; the link rect covers the full cell.

🤖 Generated with Claude Code

The well list is the entry point for comparing several wells, but every
path to a detail page replaced the list in place, so users lost their
scroll position and filters each time they checked one well.

- Add a leading column on the well list whose cell is a link to the well
  show page with target="_blank". The link fills the cell so the whole
  column is the hit target, and being a real anchor it also supports
  middle click and the browser "open in new window" context menu.
- Support Ctrl/Cmd+click and middle click on any ListPage row to open the
  record's show page in a new window. Shift is left alone because the
  DataGrid uses it for row range selection.
- Extract buildWellShowPath so the in-app route has one definition.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown

Preview Deployment

Preview URL: https://preview-bdms-903-open-well-show-new-window-auejgdbofq-uc.a.run.app

Note: This preview uses the staging API endpoints.

@TylerAdamMartinez

Copy link
Copy Markdown
Contributor

Ultimately, I think the long term solution here is to implement a tab view & split view UI system within the application.

@jirhiker
jirhiker merged commit 0846b00 into staging Aug 5, 2026
5 checks passed
@jirhiker jirhiker mentioned this pull request Aug 24, 2026
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.

3 participants