Skip to content

Fix DataSheetGrid row selection#842

Merged
claudfuen merged 6 commits into
mainfrom
codex/fix-ui-issue-with-task-row-selection
Jun 8, 2025
Merged

Fix DataSheetGrid row selection#842
claudfuen merged 6 commits into
mainfrom
codex/fix-ui-issue-with-task-row-selection

Conversation

@claudfuen
Copy link
Copy Markdown
Contributor

Summary

  • ensure DataSheetGrid uses a stable rowKey

Testing

  • bun run lint (fails: Could not find @comp/ui#topo in root turbo.json or "topo" in package)

https://chatgpt.com/codex/tasks/task_e_6845c146152c8320bd13e7a456c150af

Copilot AI review requested due to automatic review settings June 8, 2025 17:04
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 8, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 8, 2025 5:17pm
comp-framework-editor ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 8, 2025 5:17pm
comp-trust ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 8, 2025 5:17pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
comp-portal ⬜️ Skipped (Inspect) Jun 8, 2025 5:17pm

@vercel vercel Bot temporarily deployed to Preview – comp-portal June 8, 2025 17:04 Inactive
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 aims to fix the row selection behavior in DataSheetGrid by ensuring a stable and unique row key is provided.

  • Added the rowKey property with the value "id" to enhance row selection stability.
  • Consistent updates made in both TasksClientPage and ControlsClientPage.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
apps/framework-editor/app/(pages)/tasks/TasksClientPage.tsx Added rowKey="id" to DataSheetGrid for unique row identification
apps/framework-editor/app/(pages)/controls/ControlsClientPage.tsx Added rowKey="id" to DataSheetGrid for consistent and stable row selection
Comments suppressed due to low confidence (2)

apps/framework-editor/app/(pages)/tasks/TasksClientPage.tsx:298

  • Verify that 'id' is a unique and stable key for each row to ensure reliable selection behavior in DataSheetGrid.
rowKey="id"

apps/framework-editor/app/(pages)/controls/ControlsClientPage.tsx:380

  • Ensure that the 'id' property is consistently unique across rows to maintain proper row identification in the grid.
rowKey="id"

@vercel vercel Bot temporarily deployed to Preview – comp-portal June 8, 2025 17:05 Inactive
@vercel vercel Bot temporarily deployed to Preview – comp-portal June 8, 2025 17:06 Inactive
- add setDisplayedData function to manage displayed data state
- improve grid change handling with displayedDataRef for better accuracy
- streamline data processing during task creation, update, and deletion operations
- enhance readability and maintainability with consistent formatting and comments
… data handling

- add useEffect to synchronize displayed data with dataForDisplay
- enhance useChangeTracking with displayedDataRef for better state management
- improve code readability with consistent formatting and comments
@vercel vercel Bot temporarily deployed to Preview – comp-portal June 8, 2025 17:15 Inactive
@claudfuen claudfuen merged commit 6c83b12 into main Jun 8, 2025
9 of 10 checks passed
@claudfuen claudfuen deleted the codex/fix-ui-issue-with-task-row-selection branch June 8, 2025 17:16
@claudfuen
Copy link
Copy Markdown
Contributor Author

🎉 This PR is included in version 1.36.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants