Skip to content

[ENG-36352] feat: improve table columns width and text truncation handling#3176

Merged
gdsantana merged 9 commits intodevfrom
ENG-36352-tables-improvements-colunas-com-tamanho-maximo
Mar 2, 2026
Merged

[ENG-36352] feat: improve table columns width and text truncation handling#3176
gdsantana merged 9 commits intodevfrom
ENG-36352-tables-improvements-colunas-com-tamanho-maximo

Conversation

@gdsantana
Copy link
Copy Markdown
Contributor

Feature

Description

Improvements to table column handling and text display across the application:

  • Column Styles Helper: Added new column-styles.js helper with utilities for fit-content columns and priority-based width management
  • Data Table Pagination: Fixed pagination to use dynamic items per page value from store instead of hardcoded 10
  • Date Formatting: Changed formatDateToDayMonthYearHour to return 'Not Available' instead of null when date is missing
  • Users Service: Simplified teams formatting by removing conditional logic - now always returns array of team names
  • Text Array Popup: Added text truncation detection with hover popup for the first item when text overflows its container

How to test

  1. Column Styles:

    • Import columnStyles from @/helpers/column-styles
    • Use columnStyles.fitContent() for auto-width columns
    • Use columnStyles.priority(weight, minWidth, maxWidth) for priority-based widths
  2. Text Truncation Popup:

    • Navigate to Users Management page
    • If a user has a long team name that gets truncated, hover over it for 1 second
    • A popup should appear showing the full text
  3. Date Formatting:

    • Check any table with date columns
    • Missing dates should display "Not Available" instead of being empty
  4. Pagination:

    • Change the number of rows per page in any table
    • Navigate away and return - the setting should persist correctly

- Fix data table pagination to use dynamic items per page value instead of hardcoded 10
- Add column-styles helper with fit-content and priority utilities
- Change date formatting to return 'Not Available' instead of null when date is missing
- Simplify teams formatting in list-users-service by removing conditional logic
- Add text truncation popup for text-array-with-popup column component
@gdsantana gdsantana added enhancement New feature or request do-not-merge WIP Work in progress labels Jan 22, 2026
@gdsantana gdsantana changed the title feat: improve table columns width [ENG-36352] feat: improve table columns width and text truncation handling Jan 22, 2026
gdsantana and others added 3 commits January 23, 2026 18:13
- Add style prop binding to Column component in list-table-block v2
- Add dynamicClass support for conditional styling based on cell data across all table templates
- Add class prop binding to Column in with-fetch-ordering-and-pagination template
- Fix class binding in with-selection-behavior template to properly handle col.class
- Apply column-styles helper to Edge Applications Rules Engine list view with fit-content and priority utilities
@gdsantana gdsantana removed do-not-merge WIP Work in progress labels Jan 27, 2026
HerbertJulio
HerbertJulio previously approved these changes Feb 12, 2026
Implement a new column styling system across 29 list view components by:
- Importing COLUMN_STYLES and columnStyles helpers from @/helpers/column-styles
- Replacing hardcoded inline styles (e.g., 'max-width: 300px') with semantic style functions
- Using columnStyles.priority() for flexible width columns with min/max constraints
- Using COLUMN_STYLES.FIT_CONTENT for fixed-width columns
- Using COLUMN_STYLES.PRIORITY_SM for smaller priority columns
- Standardizing import order across all affected files

This improves maintainability and provides consistent column sizing behavior across the application.
@gdsantana gdsantana merged commit da42494 into dev Mar 2, 2026
6 of 8 checks passed
@gdsantana gdsantana deleted the ENG-36352-tables-improvements-colunas-com-tamanho-maximo branch March 2, 2026 12:07
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 2, 2026
@gdsantana gdsantana restored the ENG-36352-tables-improvements-colunas-com-tamanho-maximo branch March 2, 2026 13:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Development

Successfully merging this pull request may close these issues.

3 participants