id: no-hand-rolled-plan-grid
language: tsx
severity: error
message: Plan/table components must compose DataTable instead of defining table grids
note: '{"severity":"high","category":"componentization","resolution":"Use DataTable and shared column definitions from @platform-modules/ui-primitives."}'
files:
  - 'apps/web/src/**'
  - 'packages/deck-ui/src/*Row.tsx'
  - 'packages/deck-ui/src/*Table.tsx'
  - '**/.slopgate/fixtures/**'
ignores:
  - '**/*.test.tsx'
rule:
  any:
    - all:
        - kind: property_identifier
        - regex: '^gridTemplateColumns$'
    - all:
        - kind: string
        - regex: 'grid-cols-\[[^\]]*_[^\]]*_'
