I work for greatquestion.co, an all-in-one UX Research platform. I want to create an activity history for all study types that we have. This would work like a changelogs, which capture all activies made to the study, i.e, plan set up changes, moderator changes, calendar event changes, incentive changes. These changes would need to have a timestamp of when the change was made and who made the change.
I'll create an activity log component for your UX research platform that tracks all changes made to studies with timestamps and user attribution. This will function as a changelog to provide transparency and accountability for your research studies.
I've created a comprehensive activity logging system for your UX research platform that tracks all changes made to studies. Here's how it works:
Activity Logging:
lib/activity-logger.ts utility provides functions to log activities across your applicationActivity Display:
Integration Points:
Implementation Details:
To implement this in your application:
logActivity function whenever a change is made to a study:import { logActivity } from "@/lib/activity-logger";
// When a moderator is changed
await logActivity({
studyId: "study-123",
type: "moderator_change",
description: `Changed moderator from '${oldModerator}' to '${newModerator}'`,
userId: currentUser.id
});ActivityFeed component to display activities in any part of your UI:<ActivityFeed studyId={studyId} limit={5} />