Skip to content

Truncate - True calculated middle truncate #10892

Description

@gitdallas

Currently, the Truncate component requires trailingNumChars when truncating in the middle. It would be helpful if the component were also able to automatically truncate to where the truncate would leave equal (+-1) characters on either side.

This came up in a slack conversation with Vince Consola and @christianvogt

Activity

  1. moved this from Needs triage to Backlog in PatternFly Issueson Sep 19, 2024
  2. added this to the Prioritized Backlog milestone on Sep 19, 2024
  3. jenny-s51 commented on Nov 22, 2024

    @jenny-s51
    Contributor

    FYI, PF Topology has a truncateMiddle util but since it's not currently exported in index.ts it isn't available for consumers to import outside of PF Topology.

    Moving this util to https://github.com/patternfly/patternfly-react/blob/main/packages/react-core/src/helpers/util.ts would be a nice simple fix that would allow consumers to import this functionality.

  4. github-actions commented on Jan 22, 2025

    @github-actions

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

  5. christianvogt commented on Jan 22, 2025

    @christianvogt
    Contributor

    bump

  6. self-assigned this
    on Feb 20, 2025
  7. moved this from Backlog to Not started in PatternFly Issueson Feb 20, 2025
  8. removed their assignment
    on Feb 24, 2025
  9. moved this from Not started to Backlog in PatternFly Issueson Feb 24, 2025
  10. self-assigned this
    on Feb 27, 2025
  11. moved this from Backlog to Not started in PatternFly Issueson Feb 27, 2025
  12. moved this from Not started to In Progress in PatternFly Issueson Mar 7, 2025
  13. moved this from In Progress to PR Review in PatternFly Issueson Mar 8, 2025
  14. modified the milestones: 2025.Q1, 2025.Q2 on Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions