Skip to content

feat(data-grid): add nullable cells - #1135

Merged
sadmann7 merged 1 commit into
mainfrom
sadman/update-new
Jun 14, 2026
Merged

sadmann7 merged 1 commit into
mainfrom
sadman/update-new

Conversation

@sadmann7

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings June 14, 2026 10:09
@vercel

vercel Bot commented Jun 14, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tablecn Ready Ready Preview, Comment Jun 14, 2026 10:09am

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the “skaters” data-grid demo stack (DB schema → validation → UI/demo flows) to allow nullable values for select/number-like fields, so newly inserted rows can start with empty cells.

Changes:

  • Made stance, style, status, and yearsSkating nullable at the Drizzle schema + Zod validation layers.
  • Updated live + multiplayer demo row creation to insert new skaters with null values for those fields.
  • Adjusted the SelectCell rendering to handle null/empty values, and updated icon helpers to tolerate nullable inputs.

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/db/schema.ts Makes several skaters columns nullable by removing notNull()/defaults.
src/app/data-grid-live/lib/validation.ts Updates Zod schemas to accept nullable enums/numbers for the skater model.
src/components/data-grid/data-grid-cell-variants.tsx Tweaks SelectCell to display empty state when the cell has no value.
src/app/lib/utils.ts Makes stance/style/status icon helpers tolerate nullable inputs.
src/app/data-grid-live/components/data-grid-live-demo.tsx Creates new rows with nullable select/number fields set to null.
src/app/data-grid-multiplayer/components/data-grid-multiplayer-demo.tsx Same nullable-row creation updates for the multiplayer demo.
public/r/data-grid.json Updates the registry snapshot for the modified data-grid cell variants file.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/app/data-grid-live/lib/validation.ts
Comment thread src/app/data-grid-live/lib/validation.ts
Comment thread src/app/data-grid-live/lib/validation.ts
@sadmann7
sadmann7 merged commit 1ba19b8 into main Jun 14, 2026
8 checks passed
@sadmann7
sadmann7 deleted the sadman/update-new branch June 14, 2026 10:51

This branch was successfully deployed

1 active deployment
Preview — 703e49b8 Deployed Jun 14, 2026 by vercel[bot]
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