Skip to content

Conversation

@jenny-s51
Copy link
Contributor

What: Closes #7272

Additional issues:

@jenny-s51 jenny-s51 changed the title Sortable table fullscreen feat(table): update sortable demo to align with core Apr 22, 2022
@patternfly-build
Copy link
Collaborator

patternfly-build commented Apr 22, 2022

@mmenestr
Copy link
Collaborator

Is this demo the one I'm supposed to be checking for this PR? https://patternfly-react-pr-7292.surge.sh/components/table#composable-sortable---custom-control

@mcoker
Copy link
Contributor

mcoker commented Apr 27, 2022

@mmenestr it's this one

https://patternfly-react-pr-7292.surge.sh/components/table/react-demos/sortable---responsive/

Copy link
Collaborator

@wise-king-sullyman wise-king-sullyman left a comment

Choose a reason for hiding this comment

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

Is this the right core demo to be looking at? https://www.patternfly.org/v4/components/table/html-demos/sortable

If so I'm not sure if these differences are substantive or not, but I notice a handful of differences between the demos still.

Areas of difference:

  • Masthead logo
  • Masthead toolbar items
  • Breadcrumbs below the masthead
  • Items in the toolbar group
  • Checkboxes in the rows
  • Pagination at the bottom of the table

@wise-king-sullyman
Copy link
Collaborator

I'm seeing a ReferenceError: number is not defined error when navigating to the demo now.

@wise-king-sullyman
Copy link
Collaborator

wise-king-sullyman commented May 6, 2022

I'm still seeing a handful of differences in the toolbars, specifically at larger window widths. I.e.

image
vs
image

image
vs
image

The title and description are also different, but I think that the title and description in this demo should be copied into the core demo if anything.

I'm not sure if those are significant since this demo seems to focus on small window usage.

@jenny-s51
Copy link
Contributor Author

Thank you for your feedback @wise-king-sullyman ! I've added some changes that should make the toolbar and dashboard header align with the core demos more closely.

Per @tlabaj and @mcarrano, we are separating the implementation of additional toolbar logic from these table PRs. We will address that in an upcoming sprint as these must be resolved first:

Please kindly re-review when you have a moment so we can prioritize getting these table changes in for the release 🙂

Copy link
Collaborator

@wise-king-sullyman wise-king-sullyman left a comment

Choose a reason for hiding this comment

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

If the additional toolbar differences will be resolved in future issues this looks perfect 🔥

Copy link
Contributor

@tlabaj tlabaj left a comment

Choose a reason for hiding this comment

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

Looks pretty good. Only thing I am seeing is the the "Responsive action hidden on small button" is not getting hidden on small for me.

@jenny-s51 jenny-s51 force-pushed the sortableTableFullscreen branch from c335b22 to 03e34f9 Compare May 9, 2022 21:41
Copy link
Contributor

@tlabaj tlabaj left a comment

Choose a reason for hiding this comment

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

@jenny-s51 this still is not working correctly. I am also noticing that the structure does not match core. Core's toolbar seems to be in a card and this one is not. I am also seeing other discrepancies lie that toolbar content section in core has "pf-m-nowrap" applied.

cc @mcoker @mattnolting

@jenny-s51 jenny-s51 force-pushed the sortableTableFullscreen branch from 8639062 to b332158 Compare May 10, 2022 17:15
Copy link
Contributor

@tlabaj tlabaj left a comment

Choose a reason for hiding this comment

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

It is looking better! however I see the "sort" button disappearing when the screen is very small (phone size)

image

Here it shows when it is bigger (tablet size).

image

@mcarrano
Copy link
Member

Good catch @tlabaj

@jenny-s51 for reference, this core demo shows how sorting should behave when the view port shrinks: https://www.patternfly.org/v4/components/table/html-demos/sortable/ Basically a sort menu is exposed in the toolbar after the table converts to its stacked orientation.

@jenny-s51
Copy link
Contributor Author

@tlabaj @mcarrano I've updated with a fix that keeps the sort menu in the toolbar when using a phone size viewport.

@jenny-s51 jenny-s51 requested a review from tlabaj May 11, 2022 18:52
Copy link
Member

@mcarrano mcarrano left a comment

Choose a reason for hiding this comment

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

This looks great. Thanks @jenny-s51 !

Copy link
Contributor

@tlabaj tlabaj left a comment

Choose a reason for hiding this comment

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

The responsive behaviour is still slightly off. I see the sorting button before the table transitions to a stacked layout.

image

Copy link
Contributor

@mcoker mcoker left a comment

Choose a reason for hiding this comment

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

This LGTM, left a few comments but none are blockers.

@jenny-s51 jenny-s51 force-pushed the sortableTableFullscreen branch from becebbb to 30d6637 Compare May 12, 2022 20:45
@tlabaj
Copy link
Contributor

tlabaj commented May 16, 2022

I agree @jenny-s51 updating the wrapper is outside the scope of this PR. I have created this issue #7429

Copy link
Contributor

@mcoker mcoker left a comment

Choose a reason for hiding this comment

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

Looks like the sort icon is hidden on xs (< sm breakpoint) viewports - I think this line can just be updated to {{ md: 'hidden' }}?

https://github.com/patternfly/patternfly-react/blame/1e7104949ff012ac1246d2eb65250131458b653e/packages/react-table/src/demos/Table.md#L2282

@jenny-s51 jenny-s51 force-pushed the sortableTableFullscreen branch from 1e71049 to e1ca0ec Compare May 17, 2022 18:48
@jenny-s51 jenny-s51 force-pushed the sortableTableFullscreen branch from 5b5dfcd to 5668a56 Compare May 17, 2022 19:21
@jenny-s51 jenny-s51 requested a review from mcoker May 18, 2022 14:52
Copy link
Contributor

@mcoker mcoker left a comment

Choose a reason for hiding this comment

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

LGTM! Great job on this!!

Copy link
Contributor

@tlabaj tlabaj left a comment

Choose a reason for hiding this comment

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

Looks great Jenny!

@tlabaj tlabaj merged commit 6891764 into patternfly:main May 19, 2022
@patternfly-build
Copy link
Collaborator

Your changes have been released in:

  • eslint-plugin-patternfly-react@4.55.0
  • @patternfly/react-catalog-view-extension@4.67.0
  • @patternfly/react-charts@6.69.0
  • @patternfly/react-code-editor@4.57.0
  • @patternfly/react-console@4.67.0
  • @patternfly/react-core@4.216.0
  • @patternfly/react-docs@5.77.0
  • @patternfly/react-icons@4.67.0
  • @patternfly/react-inline-edit-extension@4.61.0
  • demo-app-ts@4.176.0
  • @patternfly/react-integration@4.178.0
  • @patternfly/react-log-viewer@4.61.0
  • @patternfly/react-styles@4.66.0
  • @patternfly/react-table@4.85.0
  • @patternfly/react-tokens@4.68.0
  • @patternfly/react-topology@4.63.0
  • @patternfly/react-virtualized-extension@4.63.0
  • transformer-cjs-imports@4.54.0

Thanks for your contribution! 🎉

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.

Feat(Table): Full screen demo for sortable

9 participants