Skip to content

fix(table): use DrawerHeader with close button in preview drawer#76

Merged
pigarevaoks merged 6 commits intomainfrom
feature/fix-table-preview-drawer
Apr 3, 2026
Merged

fix(table): use DrawerHeader with close button in preview drawer#76
pigarevaoks merged 6 commits intomainfrom
feature/fix-table-preview-drawer

Conversation

@pigarevaoks
Copy link
Copy Markdown
Collaborator

Summary

  • Use DrawerHeader (with built-in DrawerClose button) in table preview drawer header instead of custom layout
  • Add renderPreviewHeader prop to Table for custom drawer headers
  • Extract shared SecurityPreviewContent component with showTitle flag to deduplicate preview content between header/no-header variants

Test plan

  • Verify MasterCellWithActions story shows drawer with header + close button
  • Verify MasterCellWithPreviewDrawer story shows drawer with objectName in body (no header)
  • Verify close button in drawer header dismisses the preview

🤖 Generated with Claude Code

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 3, 2026

This PR is included in version 0.19.0-rc-feature-fix-table-preview-drawer.1

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 3, 2026

This PR is included in version 0.19.0-rc-feature-fix-table-preview-drawer.2

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 3, 2026

This PR is included in version 0.19.0-rc-feature-fix-table-preview-drawer.3

pigarevaoks and others added 6 commits April 3, 2026 13:55
Use DrawerHeader and DrawerClose in table preview drawer header
instead of custom HStack layout. Extract shared SecurityPreviewContent
component with showTitle flag to avoid content duplication.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Remove previewTrigger guard from header rendering so renderPreviewHeader
works with both master and button triggers.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Change DrawerHeader flex alignment from items-center to items-start
so header content aligns to the top when it wraps to multiple lines.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace separate renderPreviewHeader, renderPreviewContent, previewTrigger,
previewRowId, and onPreviewRowChange props with a single preview object.
Add tooltipText support with 'Open preview' default on master cell for
both trigger types.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace flat previewRowId, setPreviewRowId, renderPreviewHeader,
renderPreviewContent, previewTrigger, previewTooltipText fields
in TableContextValue with a single preview object.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Rename lastPreviewRef to lastContentRef for consistency
- Show cursor-pointer on master cell when tooltipText is set (both triggers)
- Update JSDoc in usePreviewCell

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@pigarevaoks pigarevaoks force-pushed the feature/fix-table-preview-drawer branch from fbee688 to ae34b67 Compare April 3, 2026 11:56
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 3, 2026

This PR is included in version 0.19.1-rc-feature-fix-table-preview-drawer.1

@pigarevaoks pigarevaoks merged commit 4756040 into main Apr 3, 2026
17 checks passed
@pigarevaoks pigarevaoks deleted the feature/fix-table-preview-drawer branch April 3, 2026 12:13
github-actions bot pushed a commit that referenced this pull request Apr 3, 2026
## <small>0.19.1 (2026-04-03)</small>

* fix(table): use DrawerHeader with close button in preview drawer (#76) ([4756040](4756040)), closes [#76](#76)
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 3, 2026

This PR is included in version 0.19.1

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 3, 2026

This PR is included in version 0.20.0-rc-feature-add-icons.1

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