Skip to content

Conversation

@vishsanghishetty
Copy link

@vishsanghishetty vishsanghishetty commented Oct 17, 2025

  • Add optional onRowClick prop to TableWrapper interface
  • Enable click handler for drill-down interactions
  • Add visual feedback with the cursor pointer and hover state
  • Backward compatible - existing tables unchanged
  • Uses PatternFly's isHoverable for consistent styling

This feature enables common use cases like:

  • Navigating to detail pages
  • Opening modals/drawers
  • Selecting items for actions
  • Expanding inline details

genie-ui-ocm

- Add optional onRowClick prop to TableWrapper interface
- Enable click handler for drill-down interactions
- Add visual feedback with cursor pointer and hover state
- Backward compatible - existing tables unchanged
- Uses PatternFly's isHoverable for consistent styling
- Tested in OCM Genie POC with 100+ row tables

This feature enables common use cases like:
- Navigating to detail pages
- Opening modals/drawers
- Selecting items for actions
- Expanding inline details
@vishsanghishetty
Copy link
Author

vishsanghishetty commented Oct 17, 2025

@lkrzyzanek
@eyevana, could you please review? Thanks. I wasn't able to add a reviewer from the review section.

@lkrzyzanek lkrzyzanek requested a review from jschuler October 20, 2025 14:05
- Add 14 new test cases for onRowClick functionality
- Test row click handler with correct data passing
- Test visual feedback (cursor pointer, hover state)
- Test edge cases: null values, arrays, large tables (150 rows)
- Test backward compatibility (tables without onRowClick)
- Test multiple clicks and data-testid attributes
- All 24 tests passing ✓
@vishsanghishetty
Copy link
Author

@jschuler ready for review, added test coverage

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.

1 participant