Skip to content

BDMS-924: Well detail responsive layout and breakpoints#302

Merged
jeremyzilar merged 8 commits into
stagingfrom
BDMS-924-responsive-breakpoints
Jun 23, 2026
Merged

BDMS-924: Well detail responsive layout and breakpoints#302
jeremyzilar merged 8 commits into
stagingfrom
BDMS-924-responsive-breakpoints

Conversation

@jeremyzilar

Copy link
Copy Markdown
Contributor

Summary

  • Well detail main body layout responds to content area width (880px), not viewport width, so cards stack in mobile order when edit/Get Help panels reduce space instead of crushing a two-column grid
  • CoreWellInfo stats bar stacks below 480px card width
  • Canonical SCREENS breakpoint scale in src/constants/breakpoints.ts, Tailwind @theme, and MUI theme.breakpoints
  • Shell updates: useIsMobile at tablet (640px), Get Help full-screen overlay on phones, sidebar/header use named Tailwind breakpoints
  • Edit and Get Help panels can stay open together (users may file a bug without closing draft edits)

Stacks on #300 (BDMS-879 edit panel). Feature doc: the-brain docs/product/features/well-show-responsive.md.

Jira: https://nmbgmr.atlassian.net/browse/BDMS-924

Test plan

  • Open a well (e.g. NM-28361) at full width: two columns, stats bar 3-across
  • Open edit panel on desktop: main body stacks to single column; cards readable
  • Open edit + Get Help together: both stay open; main body still stacks when space is tight
  • Narrow viewport (~375px): single column mobile card order; Get Help full-screen overlay
  • Header Preview PDF / Edit buttons at original sm height (not oversized)
  • npm run build and well-show tests pass

When edit or help panels shrink the page, cards stack in mobile order instead of staying in a crushed two-column grid. CoreWellInfo stats also stack on narrow cards.
Documents SCREENS scale in constants, Tailwind, and MUI. Get Help goes full-screen on phones, closes edit panel when opened, and well edit closes Get Help. Header actions wrap with better touch targets.
…eight.

Removed panel mutex so users can file a bug without closing draft edits. Dropped min-h-9 on header actions so Preview PDF and Edit stay at sm size.
@github-actions

Copy link
Copy Markdown

Preview Deployment

Preview URL: https://preview-bdms-924-responsive-breakpoints-auejgdbofq-uc.a.run.app

Note: This preview uses the staging API endpoints.

@jeremyzilar jeremyzilar self-assigned this Jun 22, 2026
@chasetmartin

Copy link
Copy Markdown
Collaborator

Breakpoints and overall panel functionality looks great to me. I did notice that if a user is editing groups in the edit panel, then resizes over the smallest breakpoint, the edits are lost. See video:
https://github.com/user-attachments/assets/db1e7b35-7513-4292-b13d-e220887cdd28

Base automatically changed from BDMS-879-project-editing-panel to staging June 23, 2026 16:18
@github-actions

Copy link
Copy Markdown

Preview Deployment

Preview URL: https://preview-bdms-924-responsive-breakpoints-auejgdbofq-uc.a.run.app

Note: This preview uses the staging API endpoints.

Use one panel wrapper that switches layout classes instead of separate mobile and desktop trees, so WellEditPanel does not remount and lose unsaved group edits.
@github-actions

Copy link
Copy Markdown

Preview Deployment

Preview URL: https://preview-bdms-924-responsive-breakpoints-auejgdbofq-uc.a.run.app

Note: This preview uses the staging API endpoints.

1 similar comment
@github-actions

Copy link
Copy Markdown

Preview Deployment

Preview URL: https://preview-bdms-924-responsive-breakpoints-auejgdbofq-uc.a.run.app

Note: This preview uses the staging API endpoints.

@jeremyzilar

Copy link
Copy Markdown
Contributor Author

Breakpoints and overall panel functionality looks great to me. I did notice that if a user is editing groups in the edit panel, then resizes over the smallest breakpoint, the edits are lost.

Thanks @chasetmartin -- I think this should be fixed now 🌟

@chasetmartin chasetmartin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

That fix worked for me, looks good.

The temporary logs were dumping full well details JSON on every page load.
Puts v1.0.1 under the footer links so Get Help sits at the bottom without extra gap.
@github-actions

Copy link
Copy Markdown

Preview Deployment

Preview URL: https://preview-bdms-924-responsive-breakpoints-auejgdbofq-uc.a.run.app

Note: This preview uses the staging API endpoints.

@jeremyzilar jeremyzilar merged commit 9a3caf6 into staging Jun 23, 2026
4 of 5 checks passed
@jeremyzilar jeremyzilar deleted the BDMS-924-responsive-breakpoints branch June 23, 2026 17:59
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.

2 participants