Enhance audience management features with new components and API integrations

- Added `AssignCoursesModal`, `AudienceMemberRow`, `AudienceTable`, and related components for improved audience management UI.
- Implemented audience invite actions including resend and revoke functionality.
- Updated audience API to support importing members and assigning courses.
- Refactored audience data handling to include status and invite management.
- Improved overall user experience with pagination and selection features in the audience table.
This commit is contained in:
Rotimi Best
2026-03-22 18:42:23 +01:00
parent e9c4082f89
commit 3919ff6c2f
157 changed files with 13183 additions and 872 deletions
-3
View File
@@ -11,7 +11,6 @@ import { getUserOrgRole } from '@cio/db/queries/organization';
export const orgMemberMiddleware = async (c: Context, next: Next) => {
try {
const user = c.get('user');
console.log('orgMemberMiddleware user', user);
if (!user) {
return c.json(
{
@@ -24,7 +23,6 @@ export const orgMemberMiddleware = async (c: Context, next: Next) => {
}
const orgId = c.req.header('cio-org-id');
console.log('orgMemberMiddleware orgId', orgId);
if (!orgId) {
return c.json(
{
@@ -37,7 +35,6 @@ export const orgMemberMiddleware = async (c: Context, next: Next) => {
}
const roleId = await getUserOrgRole(orgId, user.id);
console.log('orgMemberMiddleware roleId', orgId);
if (roleId === null) {
return c.json(
{