Skip to content

Conversation

@pd-redis
Copy link
Collaborator

What

Refactored Sentinel database column definitions from factory functions to static ColumnDef objects. Moved column definitions from column-definitions/ to components/columns/ for better organization. Introduced meta.action pattern with getMetaAction helper to handle dynamic callbacks (e.g., handleChangedInput) without passing props through cell components. Added ColumnMeta.action type augmentation to support flexible function signatures.

Tech decisions:

  • Static column definitions improve type safety and reduce runtime overhead
  • meta.action pattern decouples cell components from parent callbacks
  • Centralized getMetaAction helper provides type-safe access to column metadata

Testing

  • Verified all column cells render correctly (Alias, Username, Password, DbIndex, Address, PrimaryGroup)
  • Confirmed input handlers work via meta.action pattern
  • Checked table sorting and selection functionality
  • Validated TypeScript types compile without errors

…to static objects

- Move column definitions from column-definitions/ to components/columns/
- Convert factory functions to static ColumnDef objects
- Refactor cell components to use meta.action pattern with getMetaAction helper
- Add ColumnMeta.action type augmentation for dynamic callbacks
- Simplify getColumns by inlining column definitions
@github-actions
Copy link
Contributor

Code Coverage - Frontend unit tests

St.
Category Percentage Covered / Total
🟢 Statements 82.91% 20799/25085
🟡 Branches 68.09% 8804/12930
🟡 Functions 77.88% 5654/7260
🟢 Lines 83.34% 20368/24441

Test suite run success

5411 tests passing in 702 suites.

Report generated by 🧪jest coverage report action from 4cf6128

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.

2 participants