Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable customization of columns in ItemsTable #41777

Merged
merged 8 commits into from
May 3, 2024

Conversation

rafpaf
Copy link
Contributor

@rafpaf rafpaf commented Apr 24, 2024

Lets the ItemsTable component have customizable columns.

The logic for this is contained in BaseItemsTable. This is preliminary work for #41614

This doesn't introduce any new UI, but there is a unit test for the new logic.

The main thing to check is whether the table on the collections page stills work correctly. Note how the columns adjust as you resize the viewport horizontally. (In fact, the columns will sometimes adjust as you close and open the sidebar, because the width they are paying attention to is the width of the area to the right of the sidebar.)

Closes #41908

Copy link
Contributor Author

rafpaf commented Apr 24, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @rafpaf and the rest of your teammates on Graphite Graphite

@rafpaf rafpaf marked this pull request as ready for review April 24, 2024 14:35
@rafpaf rafpaf requested a review from a team April 24, 2024 14:35
Copy link

replay-io bot commented Apr 24, 2024

Status Complete ↗︎
Commit e13b947
Results
⚠️ 6 Flaky
2455 Passed

@rafpaf rafpaf requested a review from camsaul as a code owner April 24, 2024 15:14
@rafpaf rafpaf force-pushed the custom-columns-in-ItemsTable branch from 0b35201 to 3cfa500 Compare April 24, 2024 15:14
@rafpaf rafpaf marked this pull request as draft April 24, 2024 15:21
@rafpaf rafpaf force-pushed the custom-columns-in-ItemsTable branch from e5c6796 to e14d9f7 Compare April 24, 2024 18:35
@rafpaf rafpaf removed the request for review from camsaul April 25, 2024 03:57
@rafpaf rafpaf force-pushed the custom-columns-in-ItemsTable branch from e14d9f7 to 883e726 Compare April 25, 2024 17:09
@rafpaf rafpaf force-pushed the custom-columns-in-ItemsTable branch from 883e726 to f693462 Compare April 25, 2024 23:34
@rafpaf rafpaf force-pushed the custom-columns-in-ItemsTable branch from f693462 to 03a93b4 Compare April 25, 2024 23:36
@rafpaf rafpaf force-pushed the custom-columns-in-ItemsTable branch 2 times, most recently from 100de17 to 39852e1 Compare April 26, 2024 14:29
@rafpaf rafpaf force-pushed the custom-columns-in-ItemsTable branch from 39852e1 to 1227958 Compare April 26, 2024 14:36
@rafpaf rafpaf force-pushed the custom-columns-in-ItemsTable branch from 353b2fa to 3285b31 Compare April 26, 2024 16:49
@rafpaf rafpaf force-pushed the custom-columns-in-ItemsTable branch from 71854f7 to f61d114 Compare April 29, 2024 16:43
Base automatically changed from table/refactor to master April 30, 2024 12:51
@rafpaf rafpaf force-pushed the custom-columns-in-ItemsTable branch from f61d114 to 53caf2c Compare April 30, 2024 18:05
@@ -64,7 +64,7 @@ class DraggedItems extends Component {
// necessary for decent drag performance
return (
nextProps.items.length !== this.props.items.length ||
nextProps.pinnedItems.length !== this.props.pinnedItems ||
nextProps.pinnedItems.length !== this.props.pinnedItems.length ||
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sloansparger Just wanted to flag this new substantive change. Somehow there was a new dragging performance issue introduced in this branch, and this fixes it

@rafpaf rafpaf force-pushed the custom-columns-in-ItemsTable branch from 376770b to d76ef86 Compare April 30, 2024 19:09
@rafpaf rafpaf force-pushed the custom-columns-in-ItemsTable branch from d76ef86 to 775f7e8 Compare May 1, 2024 16:49
@rafpaf rafpaf force-pushed the custom-columns-in-ItemsTable branch from 775f7e8 to a2bcf68 Compare May 2, 2024 11:06
@rafpaf rafpaf force-pushed the custom-columns-in-ItemsTable branch 2 times, most recently from 282f879 to 65df0fa Compare May 3, 2024 12:24
@rafpaf rafpaf force-pushed the custom-columns-in-ItemsTable branch from 770a0da to e13b947 Compare May 3, 2024 13:59
@rafpaf rafpaf merged commit 5f3cca2 into master May 3, 2024
110 checks passed
@rafpaf rafpaf deleted the custom-columns-in-ItemsTable branch May 3, 2024 14:43
Copy link
Contributor Author

rafpaf commented May 3, 2024

Merge activity

@iethree
Copy link
Contributor

iethree commented May 7, 2024

yikes, this PR seems to have done something to mess with z-indexes on the collection page. investigating now.

Screen Shot 2024-05-07 at 10 39 45 AM

@iethree iethree mentioned this pull request May 7, 2024
1 task
@rafpaf rafpaf added this to the 0.50 milestone May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-backport Do not backport this PR to any branch .Team/AdminWebapp Admin and Webapp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Browse] Make ItemsTable customizable
3 participants