Skip to content

Conversation

@tlabaj
Copy link
Contributor

@tlabaj tlabaj commented Apr 3, 2023

What: Closes #8911

Pulled in change from the last v4 major release.

Titani and others added 8 commits April 3, 2023 10:50
…y#8708)

This by large avoids importing from the high level export file from
@patternfly/react-core as that exports the whole patternfly react
exported modules, which affects consumers if tree-shaking algorithm does not mark
them as dead code.

Noticed these problematic imports while trying to port out project to
'esbuild' which created a noticably big dist'ed CSS because of these. [1]

[1] evanw/esbuild#2933
* fix(charts) ensure ChartAxis labels, as well as tick labels, are assigned unique IDs.

Closes patternfly#8731

* chore(charts) fixed typo in documentation

* chore(charts) remove comma for linter
* fix(DatePicker): fixed errors in demos

* Updated error message in demos
* fix(TimePicker): called onChange when pressing Enter

* Added unit test

* Updated unit test to ensure time suffix is present in onChange
* feat(Table): add right sticky column support

* Updated prop and example verbiage

---------

Co-authored-by: Eric Olkowski <thatblindgeye@gmail.com>
@patternfly-build
Copy link
Contributor

patternfly-build commented Apr 3, 2023

Copy link
Contributor

@kmcfaul kmcfaul left a comment

Choose a reason for hiding this comment

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

Minor note about deprecated Dropdown usage but not a blocker. Everything else looks good to me

import { SortByDirection } from './SortColumn';
import { DropdownDirection, DropdownPosition } from '@patternfly/react-core/dist/esm/deprecated/components';
import { DropdownItemProps } from '@patternfly/react-core/dist/esm/components/Dropdown';
import { DropdownDirection, DropdownPosition } from '@patternfly/react-core/dist/esm/deprecated/components/Dropdown';
Copy link
Contributor

Choose a reason for hiding this comment

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

We may want to make a note to clean up the remaining usages of the old dropdown. Looks like it's still referenced in IColumn here and TdActionsType in base/types.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@thatblindgeye is this part of your PR for updating demos to use the new dropdown?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah that's something that I should be able to incorporate into #8839

Copy link
Contributor

@jenny-s51 jenny-s51 left a comment

Choose a reason for hiding this comment

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

These updates are mostly looking good! I'm just seeing some bugs in our sticky column examples that may have snuck in with these earlier commits; the sticky column demos that should be left-aligned aren't working. Do you think we should open a separate issue @tlabaj ?

```ts file="TableMultipleStickyColumns.tsx"
```

### Composable: Multiple right-aligned sticky columns
Copy link
Contributor

Choose a reason for hiding this comment

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

For consistency

Suggested change
### Composable: Multiple right-aligned sticky columns
### Multiple right-aligned sticky columns

Copy link
Contributor

@thatblindgeye thatblindgeye left a comment

Choose a reason for hiding this comment

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

Other than Jenny's comment about the sticky example, I also just had the below comment but otherwise things look good

});
});

test('should call onChange when pressing Enter', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Would we want to skip this test for and update it as a followup?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

what is the issue so I can note it in my PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

It's just expecting the wrong time on GitHub for some reason. I pulled your branch locally and the test passes fine there, so just another time related issue with tests

Copy link
Contributor

@jenny-s51 jenny-s51 left a comment

Choose a reason for hiding this comment

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

LGTM! Noting that sticky table bugs are planned to be resolved by #8829 👍

@jenny-s51 jenny-s51 merged commit 883f96b into patternfly:v5 Apr 4, 2023
@patternfly-build
Copy link
Contributor

Your changes have been released in:

  • @patternfly/react-code-editor@5.0.0-alpha.53
  • @patternfly/react-core@5.0.0-alpha.52
  • @patternfly/react-docs@6.0.0-alpha.57
  • demo-app-ts@5.0.0-alpha.36
  • @patternfly/react-table@5.0.0-alpha.53

Thanks for your contribution! 🎉

@tlabaj tlabaj mentioned this pull request Apr 5, 2023
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.

Rebase v5

6 participants