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

PANGOLIN-3680: data table settings menu #2797

Merged
merged 10 commits into from
May 8, 2024

Conversation

kterry1
Copy link
Contributor

@kterry1 kterry1 commented Apr 26, 2024

Summary

The DataTableManager's table settings has been replaced with the new DropdownMenu component and the tooltip as been added.

@kterry1 kterry1 self-assigned this Apr 26, 2024
Copy link

changeset-bot bot commented Apr 26, 2024

🦋 Changeset detected

Latest commit: 2e9599d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 96 packages
Name Type
@commercetools-uikit/data-table-manager Minor
@commercetools-frontend/ui-kit Minor
@commercetools-uikit/design-system Minor
@commercetools-uikit/calendar-time-utils Minor
@commercetools-uikit/calendar-utils Minor
@commercetools-uikit/hooks Minor
@commercetools-uikit/i18n Minor
@commercetools-uikit/localized-utils Minor
@commercetools-uikit/utils Minor
@commercetools-uikit/accessible-hidden Minor
@commercetools-uikit/avatar Minor
@commercetools-uikit/card Minor
@commercetools-uikit/collapsible-motion Minor
@commercetools-uikit/collapsible-panel Minor
@commercetools-uikit/collapsible Minor
@commercetools-uikit/constraints Minor
@commercetools-uikit/data-table Minor
@commercetools-uikit/field-errors Minor
@commercetools-uikit/field-label Minor
@commercetools-uikit/field-warnings Minor
@commercetools-uikit/grid Minor
@commercetools-uikit/icons Minor
@commercetools-uikit/label Minor
@commercetools-uikit/link Minor
@commercetools-uikit/loading-spinner Minor
@commercetools-uikit/messages Minor
@commercetools-uikit/notifications Minor
@commercetools-uikit/pagination Minor
@commercetools-uikit/primary-action-dropdown Minor
@commercetools-uikit/progress-bar Minor
@commercetools-uikit/stamp Minor
@commercetools-uikit/tag Minor
@commercetools-uikit/text Minor
@commercetools-uikit/tooltip Minor
@commercetools-uikit/view-switcher Minor
@commercetools-uikit/accessible-button Minor
@commercetools-uikit/flat-button Minor
@commercetools-uikit/icon-button Minor
@commercetools-uikit/link-button Minor
@commercetools-uikit/primary-button Minor
@commercetools-uikit/secondary-button Minor
@commercetools-uikit/secondary-icon-button Minor
@commercetools-uikit/dropdown-menu Minor
@commercetools-uikit/async-creatable-select-field Minor
@commercetools-uikit/async-select-field Minor
@commercetools-uikit/creatable-select-field Minor
@commercetools-uikit/date-field Minor
@commercetools-uikit/date-range-field Minor
@commercetools-uikit/date-time-field Minor
@commercetools-uikit/localized-multiline-text-field Minor
@commercetools-uikit/localized-text-field Minor
@commercetools-uikit/money-field Minor
@commercetools-uikit/multiline-text-field Minor
@commercetools-uikit/number-field Minor
@commercetools-uikit/password-field Minor
@commercetools-uikit/radio-field Minor
@commercetools-uikit/search-select-field Minor
@commercetools-uikit/select-field Minor
@commercetools-uikit/text-field Minor
@commercetools-uikit/time-field Minor
@commercetools-uikit/async-creatable-select-input Minor
@commercetools-uikit/async-select-input Minor
@commercetools-uikit/checkbox-input Minor
@commercetools-uikit/creatable-select-input Minor
@commercetools-uikit/date-input Minor
@commercetools-uikit/date-range-input Minor
@commercetools-uikit/date-time-input Minor
@commercetools-uikit/input-utils Minor
@commercetools-uikit/localized-money-input Minor
@commercetools-uikit/localized-multiline-text-input Minor
@commercetools-uikit/localized-rich-text-input Minor
@commercetools-uikit/localized-text-input Minor
@commercetools-uikit/money-input Minor
@commercetools-uikit/multiline-text-input Minor
@commercetools-uikit/number-input Minor
@commercetools-uikit/password-input Minor
@commercetools-uikit/radio-input Minor
@commercetools-uikit/rich-text-input Minor
@commercetools-uikit/rich-text-utils Minor
@commercetools-uikit/search-select-input Minor
@commercetools-uikit/search-text-input Minor
@commercetools-uikit/select-input Minor
@commercetools-uikit/select-utils Minor
@commercetools-uikit/selectable-search-input Minor
@commercetools-uikit/text-input Minor
@commercetools-uikit/time-input Minor
@commercetools-uikit/toggle-input Minor
@commercetools-uikit/spacings-inline Minor
@commercetools-uikit/spacings-inset-squish Minor
@commercetools-uikit/spacings-inset Minor
@commercetools-uikit/spacings-stack Minor
@commercetools-uikit/buttons Minor
@commercetools-uikit/fields Minor
@commercetools-uikit/inputs Minor
@commercetools-uikit/spacings Minor
visual-testing-app Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Apr 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ui-kit ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 8, 2024 7:55am

triggerElement={
<IconButton icon={<ColumnsIcon />} label="list" />
}
menuHorizontalConstraint={4}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

menuHorizontalContraint with value of 3 would wrap the text in the dropdown so I upped it to 4 as that was the closest I could get to the design and ensuring no wrapping occurred.

Copy link
Contributor

@ddouglasz ddouglasz Apr 26, 2024

Choose a reason for hiding this comment

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

I think we need to tag @FilPob here to approve of this decision.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think that's a good option, but bear in mind this adjustment works for english translation but might not work for other languages.
For instance, if we use portuguese, the text will be wrapped anyway.

@kterry1 kterry1 marked this pull request as ready for review April 26, 2024 15:06
@kterry1 kterry1 requested a review from a team April 26, 2024 15:06
Copy link
Contributor

@ddouglasz ddouglasz left a comment

Choose a reason for hiding this comment

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

Awesome work 💯
Please remember to add a changeset 🙏🏾.

triggerElement={
<IconButton icon={<ColumnsIcon />} label="list" />
}
menuHorizontalConstraint={4}
Copy link
Contributor

@ddouglasz ddouglasz Apr 26, 2024

Choose a reason for hiding this comment

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

I think we need to tag @FilPob here to approve of this decision.

@FilPob
Copy link

FilPob commented Apr 29, 2024

@kterry1 Could you please try to set the menuHorizontalConstraint to auto ? By that the menu should wrap around the content regardless of it's length

@CarlosCortizasCT
Copy link
Contributor

I think we should not merge this PR until this issue is fixed.
If we do, we will be releasing a change which will contain a know bug and will downgrade our user experience.

@kterry1
Copy link
Contributor Author

kterry1 commented Apr 29, 2024

@kterry1 Could you please try to set the menuHorizontalConstraint to auto ? By that the menu should wrap around the content regardless of it's length

@FilPob done!

@kterry1
Copy link
Contributor Author

kterry1 commented Apr 29, 2024

I think we should not merge this PR until this issue is fixed. If we do, we will be releasing a change which will contain a know bug and will downgrade our user experience.

@CarlosCortizasCT Is Shield planning on working on this, or is this something Pangolin Team needs to pull in?

@CarlosCortizasCT
Copy link
Contributor

I think we should not merge this PR until this issue is fixed. If we do, we will be releasing a change which will contain a know bug and will downgrade our user experience.

@CarlosCortizasCT Is Shield planning on working on this, or is this something Pangolin Team needs to pull in?

Hi @kterry1

We will work on it and we will try to do it this week (reference).

@CarlosCortizasCT
Copy link
Contributor

@kterry1 We've just merged a fix for the issues I commented on Monday so it's good to move forward with this one.

Copy link
Contributor

@CarlosCortizasCT CarlosCortizasCT left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍

Thanks Kevin!

@CarlosCortizasCT CarlosCortizasCT merged commit 8c0c1c8 into main May 8, 2024
7 checks passed
@CarlosCortizasCT CarlosCortizasCT deleted the feat/PANGOLIN-3680-data-table-settings-menu branch May 8, 2024 07:58
@ct-changesets ct-changesets bot mentioned this pull request May 8, 2024
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.

5 participants