S3: TableViz gets individual props instead of spread #8
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Code Smell
File:
web/components/ChartCard/index.tsx:29-32Inconsistent prop passing:
TableVizgets individual props while others get spread. Currently works because TableViz doesnt need timeMode/sessions/alerts, but misleading.Why it matters
If TableViz later needs timeMode or sessions, theres no TypeScript error — it just wont receive them. Inconsistent patterns confuse maintainers.
Suggestion
Spread uniformly:
<TableViz {...props} />and let TableViz ignore unused props.