Skip to content

(Demo) Patient view resource table mockup#5595

Draft
dippindots wants to merge 3 commits into
cBioPortal:masterfrom
dippindots:copilot/refine-pagination-ui
Draft

(Demo) Patient view resource table mockup#5595
dippindots wants to merge 3 commits into
cBioPortal:masterfrom
dippindots:copilot/refine-pagination-ui

Conversation

@dippindots

@dippindots dippindots commented May 26, 2026

Copy link
Copy Markdown
Collaborator

How to test:

image

@netlify

netlify Bot commented May 26, 2026

Copy link
Copy Markdown

Deploy Preview for cbioportalfrontend ready!

Name Link
🔨 Latest commit a1a586d
🔍 Latest deploy log https://app.netlify.com/projects/cbioportalfrontend/deploys/6a2874a7606cdf0008aa81bd
😎 Deploy Preview https://deploy-preview-5595.preview.cbioportal.org
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@dippindots dippindots self-assigned this May 29, 2026
@dippindots dippindots closed this Jun 9, 2026
@dippindots dippindots reopened this Jun 9, 2026
- Add patient resource table with tabbed layout
- Refine resource table pagination and UI
- Polish resource column picker and metadata columns
- Add resource filter builder with checkbox support
- Reuse LazyMobXTable for resources
- Promote resource tabs in study view
- Allow study resource table routes
- Trim unused resource table helpers and demo data

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dippindots dippindots force-pushed the copilot/refine-pagination-ui branch from 039518c to a444268 Compare June 9, 2026 20:14
dippindots and others added 2 commits June 9, 2026 20:16
Sets up Storybook (webpack5 + SWC) with a LoadingIndicator story as the
first example, and wires Playwright screenshot tests against the static
Storybook build for reliable component-level visual regression testing.

## What's included

### Storybook
- .storybook/main.ts — webpack5 builder, SWC transpiler configured for
  MobX legacy decorators (legacyDecorator + React 16 classic JSX runtime),
  SCSS module chain with sass-resources-loader mirroring rspack.config.js
- .storybook/preview.ts — viewport defaults + React 16 useInsertionEffect stub
- src/shared/components/loadingIndicator/LoadingIndicator.stories.tsx —
  4 stories: Small, Big, WithMessage, NotLoading (renders nothing)

### Visual regression tests
- storybook-visual-tests/playwright.config.ts — points at localhost:6006,
  PW_DOCKER flag for Docker-vs-host snapshot separation, PW_UPDATE_SNAPSHOTS
  support matching the existing E2E playwright config pattern
- storybook-visual-tests/tests/LoadingIndicator.visual.spec.ts — screenshot
  tests for all 4 stories using iframe.html isolation (no backend needed)
- storybook-visual-tests/tests/__snapshots__/ — committed baseline PNGs
- scripts/serve-and-test-storybook.js — serves storybook-static/ and runs
  playwright in the same process, cleans up on exit

### GitHub Actions CI
- .github/workflows/storybook-visual-tests.yml — runs on every PR and push
  to master/rc; installs deps, builds Storybook, runs visual diffs, uploads
  diff artifacts on failure; workflow_dispatch supports update_snapshots input

### Package.json scripts
- pnpm storybook           — dev server on :6006
- pnpm build-storybook     — static build
- pnpm test:storybook      — run visual tests (storybook-static must exist)
- pnpm test:storybook:ci   — build + test in one command
- pnpm test:storybook:update — regenerate all baselines

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant