Skip to content

feat: add Activity Logging System - #164

Merged
SudiptaPaul-31 merged 3 commits into
Lumina-eX:mainfrom
Husten150:feat/activity-logging-system
Jul 29, 2026
Merged

feat: add Activity Logging System#164
SudiptaPaul-31 merged 3 commits into
Lumina-eX:mainfrom
Husten150:feat/activity-logging-system

Conversation

@Husten150

Copy link
Copy Markdown
Contributor

Description

Implements a comprehensive Activity Logging System to track important actions across the platform for transparency, auditability, and debugging.

Closes #152

Changes

Database

  • New migration 008_activity_logs.sql: Creates activity_logs table with activity_action_type ENUM and indexes for fast lookups by actor, contract, action type, and time.

Backend Service

  • lib/activity/: New service layer with ActivityService.log() and ActivityService.list() with pagination, filtering, and access control

API

  • GET /api/activity: RBAC-protected endpoint (activity:view) with query params for filtering and pagination

Integrated Logging

  • Contract creation, milestone CRUD, escrow funding/release/refund, dispute creation - all now log activity

UI

  • Dashboard Activity Page at /dashboard/activity with timeline view, type filtering, pagination
  • Activity nav item added to sidebar

Permissions

  • Added activity:view permission to all roles

- Add migration 008_activity_logs.sql with activity_logs table and indexes
- Create lib/activity/ service with ActivityService (log + list with filtering/pagination)
- Add activity:view permission to all roles in auth constants
- Integrate logging into contract creation, milestone CRUD, escrow funding/release/refund, and dispute creation
- Create GET /api/activity route (RBAC-protected, filterable by actionType, contractId, projectId, actorId)
- Add Activity Log page in dashboard with type filtering, pagination, and timeline UI
- Add Activity nav item to dashboard sidebar

Closes Lumina-eX#152
@drips-wave

drips-wave Bot commented Jul 24, 2026

Copy link
Copy Markdown

@Husten150 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Husten150

Copy link
Copy Markdown
Contributor Author

Conflict resolve

@SudiptaPaul-31

Copy link
Copy Markdown
Collaborator

@Husten150 its still there and ci is failing fix

@Husten150

Copy link
Copy Markdown
Contributor Author

i have worked on it its not failing anymore

@SudiptaPaul-31
SudiptaPaul-31 merged commit afcf616 into Lumina-eX:main Jul 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Activity Logging System

2 participants