Skip to content

fix(table): master cell preview drawer interaction [AS-801]#72

Closed
pigarevaoks wants to merge 1 commit intomainfrom
feature/AS-801-locked-filter-chips
Closed

fix(table): master cell preview drawer interaction [AS-801]#72
pigarevaoks wants to merge 1 commit intomainfrom
feature/AS-801-locked-filter-chips

Conversation

@pigarevaoks
Copy link
Copy Markdown
Collaborator

Summary

  • Click master cell to toggle preview drawer (no button)
  • Controlled mode: previewRowId + onPreviewRowChange props
  • DrawerHeader always shows close button, DrawerTitle only when title provided
  • Non-modal drawer: modal={false}, overlay={false}, closeOnOutsideClick={false}
  • Active row highlight via data-preview-active
  • New story: MasterCellWithPreviewDrawer

Test plan

  • Click master cell → drawer opens with row content
  • Click same cell → drawer closes
  • Click different row's cell → drawer content swaps without close/open animation
  • Drawer close button (✕) works
  • Active row has visual highlight
  • Table remains interactive while drawer is open
  • renderPreviewContent without title → only close button in header

🤖 Generated with Claude Code

- Remove preview toggle button, open drawer by clicking master cell
- Add controlled mode: `previewRowId` + `onPreviewRowChange` props
- DrawerHeader always renders DrawerClose, DrawerTitle only with title
- Add MasterCellWithPreviewDrawer story
- Fix duplicate DrawerClose (DrawerHeader already includes one)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@pigarevaoks pigarevaoks force-pushed the feature/AS-801-locked-filter-chips branch from 61ad1b9 to 4da8c75 Compare April 2, 2026 15:38
@pigarevaoks
Copy link
Copy Markdown
Collaborator Author

Moved to feat/AS-801-table-preview-drawer branch

@pigarevaoks pigarevaoks closed this Apr 2, 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.

1 participant