- Added workspace_sharing and workspace_member_count fields to all metric
and share config test objects
- Removed references to 'canFilter' role which doesn't exist in the schema
- Fixed ShareRoleSchema test to only include valid roles
All tests in server-shared package now pass.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Add type assertions and null checks across multiple test files
- Fix import statements and mock configurations
- Update test expectations to match actual implementation behavior
- Ensure all AI package unit tests pass
Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
- Fix type predicate in retry-helpers.test.ts to use correct step names
- Add missing vi import and execution context parameters in think-and-prep-todos.int.test.ts
- Export CoreMessage type from retry/types.ts
- Add type assertions and null checks in workflow test files
- Update test expectations to match actual implementation behavior
Co-Authored-By: Dallin Bentley <dallinbentley98@gmail.com>
- Introduced `count_workspace_members` utility function to retrieve the number of active users in a workspace.
- Updated chat, collection, dashboard, and metric handlers to include `workspace_member_count` in their responses.
- Modified relevant types to accommodate the new `workspace_member_count` field.
- Adjusted frontend components to display the number of workspace members in the ShareMenu and related UI elements.
These changes improve the visibility of workspace member information and enhance the overall user experience.
- Updated the `WorkspaceSharing` enum to use camelCase for serialization.
- Introduced `workspace_permissions` field in update requests for chats, collections, dashboards, and metrics.
- Implemented handling of workspace sharing permissions in respective update handlers, allowing for setting and removing permissions.
- Adjusted frontend components and API interfaces to align with the new `workspace_sharing` naming convention.
This change enhances the consistency and usability of workspace sharing across different asset types.