# tabular_data_preview: Extract table component from the preview pane \(\#63752\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/93c87da195cd8cbb5c353f22366a2837c2677287)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 93c87da195cd8cbb5c353f22366a2837c2677287

Requested commit: 93c87da195cd8cbb5c353f22366a2837c2677287

Commit: 93c87da195cd8cbb5c353f22366a2837c2677287

Tree: 926989464d6d636bc604fec72e3adcbf29ecee44

Author: Oleksandr Kholiavko

Committer: GitHub

## Message

```
tabular_data_preview: Extract table component from the preview pane (#63752)

## TL;DR

`TabularDataPreviewPane` did rendering, focus, engine, and settings all
in one component.

Extracted the table-rendering half into `TableView` (new
`table_view.rs`), so the pane now owns tab/item concerns and just embeds
`self.table: Entity<TableView>` which allows the table to be reusable in
other contexts (i.e. multiple tables per pane or rendering data from
other sources like DB client).

> NOTE: No behavior changes. Only refactoring

## Testing

- `cargo check -p tabular_data_preview`, `./script/clippy` clean.
- Tested manually: no UI/UX/performance regressions

## Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [ ] Unsafe blocks (if any) have justifying comments
- [x] UI standards followed
- [ ] Tests cover the new/changed behavior
- [x] Performance impact considered, acceptable

Release Notes:

- N/A
```

## Parents

- [00def035dec61f4fafceecc4aceb6f44f2c96f49](https://git.cafe/gitcafe/zed/commit/00def035dec61f4fafceecc4aceb6f44f2c96f49?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/93c87da195cd8cbb5c353f22366a2837c2677287?format=markdown)
