feat(groups): implement group creation functionality and refactor related components
- Removed organization dependency from group creation logic. - Introduced new route and use-case for creating groups. - Refactored form handling for group creation into a reusable GroupForm component. - Updated API calls to support new group creation endpoint. - Adjusted tests to reflect changes in group creation logic and validation. - Removed obsolete organizations route and related components. - Updated breadcrumb navigation and routing for group management.
This commit is contained in:
@@ -56,15 +56,7 @@ export const GroupListSchema = z.object({
|
||||
});
|
||||
export type GroupList = z.output<typeof GroupListSchema>;
|
||||
|
||||
export const CreateGroupFromOrganizationSchema = z.strictObject({
|
||||
organizationId: z.string().min(1),
|
||||
});
|
||||
export type CreateGroupFromOrganization = z.output<typeof CreateGroupFromOrganizationSchema>;
|
||||
|
||||
export const CreateGroupFromOrganizationResultSchema = z.object({
|
||||
export const CreateGroupResultSchema = z.object({
|
||||
group: GroupDtoSchema,
|
||||
alreadyExists: z.boolean(),
|
||||
});
|
||||
export type CreateGroupFromOrganizationResult = z.output<
|
||||
typeof CreateGroupFromOrganizationResultSchema
|
||||
>;
|
||||
export type CreateGroupResult = z.output<typeof CreateGroupResultSchema>;
|
||||
Reference in New Issue
Block a user