Skip to content

[dev] [claudfuen] claudio/comp-editor-add-editable-table#606

Merged
claudfuen merged 11 commits intomainfrom
claudio/comp-editor-add-editable-table
May 14, 2025
Merged

[dev] [claudfuen] claudio/comp-editor-add-editable-table#606
claudfuen merged 11 commits intomainfrom
claudio/comp-editor-add-editable-table

Conversation

@github-actions
Copy link
Contributor

This is an automated pull request to merge claudio/comp-editor-add-editable-table into dev.
It was created by the [Auto Pull Request] action.
Note: This should only be merged after the following checklist is complete:

  • Tested in local environment
  • Created relevant migrations (if any)

…nagement

- Updated package.json to include react-datasheet-grid.
- Added styles for react-datasheet-grid in layout.tsx.
- Replaced DataTable with DataSheetGrid in ControlsClientPage for improved data handling.
- Enhanced controls data structure to support additional related data fields.
@vercel
Copy link

vercel bot commented May 14, 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 May 14, 2025 7:14pm
comp-framework-editor ❌ Failed (Inspect) May 14, 2025 7:14pm
comp-portal ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 14, 2025 7:14pm
comp-trust ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 14, 2025 7:14pm

…tion

- Introduced a new ActionCell component to enable navigation to control details.
- Updated the grid configuration to include the Actions column with the custom cell.
- Ensured the button is disabled when no row data is available, enhancing user experience.
…tionality

- Added search input to filter controls by name and description.
- Implemented sorting options for various columns in the controls grid.
- Utilized useMemo for efficient data processing and state management.
- Updated DataSheetGrid to reflect filtered and sorted data dynamically.
@vercel vercel bot temporarily deployed to Preview – comp-portal May 14, 2025 15:12 Inactive
…ting UI

- Replaced standard input with a custom Input component for search functionality.
- Integrated Select component for sorting options, enhancing user experience.
- Updated layout to accommodate new UI components while maintaining functionality.
…ientPage

- Added a custom hook for change tracking to manage created, updated, and deleted rows in the grid.
- Introduced row styling for visual feedback on changes (created, updated, deleted) in the DataSheetGrid.
- Enhanced grid data handling with a simple UUID generator for new rows and improved data processing logic.
- Updated UI components to reflect changes and maintain user experience during data manipulation.
…d linking features

- Implemented a createControl function with input validation using Zod for creating new control templates.
- Added CountListCell component for managing linked items with search functionality.
- Introduced ActionCell component for navigation to control details.
- Updated ControlsClientPage to utilize new components and improve user experience with enhanced search and sorting capabilities.
- Refactored layout and data handling to accommodate new features and maintain performance.
… fields

- Added createdAt and updatedAt fields to the ControlsClientPage for better tracking of control templates.
- Updated data processing logic to handle date parsing and formatting for these new fields.
- Enhanced sorting and filtering capabilities to include createdAt and updatedAt in the grid.
- Modified CountListCell component to manage linking items with consideration for pending creations.
- Improved useChangeTracking hook to ensure proper state management for created and updated rows.
@vercel vercel bot temporarily deployed to Preview – comp-portal May 14, 2025 17:44 Inactive
…g and UI feedback

- Refactored useChangeTracking hook to include detailed change summaries and toast notifications for commit results.
- Updated ControlsClientPage to display a summary of changes in the commit button, enhancing user awareness of pending actions.
- Modified CountListCell component to improve interaction handling during pending creations.
- Enhanced TableToolbar to support dynamic commit button labeling based on changes.
- Improved data handling logic to ensure accurate state management for created, updated, and deleted rows.
…UI improvements

- Introduced RelationalCell component for managing linked items with search functionality.
- Updated ControlsClientPage to utilize relational linking for policy templates, requirements, and task templates.
- Enhanced getAllRequirements function to include identifiers in the fetched data.
- Improved error handling and user feedback with toast notifications for linking and unlinking actions.
- Refactored useTableSearchSort hook to support default sorting configurations.
- Cleaned up unused mock data and improved overall code organization for better maintainability.
claudfuen added 2 commits May 14, 2025 15:10
…g and UI improvements

- Added a helper function to format dates in a user-friendly manner.
- Introduced a custom column configuration for displaying formatted dates in the grid.
- Adjusted column widths for better layout and readability.
- Enhanced search functionality in RelationalCell to include sublabels.
- Cleaned up unused create control dialog functionality in the ControlsClientPage.
@vercel vercel bot temporarily deployed to Preview – comp-portal May 14, 2025 19:11 Inactive
@claudfuen claudfuen merged commit 49a3100 into main May 14, 2025
8 of 10 checks passed
@claudfuen claudfuen deleted the claudio/comp-editor-add-editable-table branch May 14, 2025 19:14
@claudfuen
Copy link
Contributor

🎉 This PR is included in version 1.18.0 🎉

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant