Ctrl K
ring2all.com

My Activity Module Documentation

Table of Contents

  1. Module Overview (Technical)
  2. Module Overview (Commercial/Business)
  3. Module Overview (End User/Administrator)
  4. Activity Fields Reference
  5. Common Scenarios & Examples
  6. Limitations & Important Notes
  7. Troubleshooting Tips
  8. Glossary

---

1. Module Overview (Technical)

What Is My Activity?

My Activity is a personal audit log viewer that displays the current user's own activity in the system. Unlike the full Audit Logs (which shows all users), My Activity is limited to the logged-in user's actions, providing personal accountability and activity review.

Architecture

Plaintext
┌─────────────────────────────────────────────────────────────────┐
│                   My Activity Architecture                      │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  User Actions                                                   │
│  ┌──────────────────────────────────────────────────────────┐   │
│  │        Any Module                                        │   │
│  │                                                          │   │
│  │  User creates, updates, deletes records                  │   │
│  │  User logs in/out                                        │   │
│  │  User exports data                                       │   │
│  │                                                          │   │
│  └──────────────────────────────────────────────────────────┘   │
│       │                                                         │
│       ▼ Logged to audit_logs with user_id                      │
│  ┌──────────────────────────────────────────────────────────┐   │
│  │        public.audit_logs                                 │   │
│  │                                                          │   │
│  │  | action | resource | user_id | ip | timestamp | meta | │   │
│  │                                                          │   │
│  └──────────────────────────────────────────────────────────┘   │
│       │                                                         │
│       ▼ Filtered by current user                               │
│  ┌──────────────────────────────────────────────────────────┐   │
│  │        My Activity Page                                  │   │
│  │                                                          │   │
│  │  WHERE user_id = current_user                            │   │
│  │                                                          │   │
│  │  ┌─────────────────────────────────────────────────────┐ │   │
│  │  │Timestamp│Action │Resource│Res ID│IP       │Details │ │   │
│  │  ├─────────┼───────┼────────┼──────┼─────────┼────────┤ │   │
│  │  │10:30:45 │UPDATE │extensn │ 123  │192.168.1│ [👁️]  │ │   │
│  │  │10:25:12 │CREATE │user    │ 456  │192.168.1│ [👁️]  │ │   │
│  │  │10:20:00 │LOGIN  │session │  -   │192.168.1│ [👁️]  │ │   │
│  │  └─────────────────────────────────────────────────────┘ │   │
│  │                                                          │   │
│  └──────────────────────────────────────────────────────────┘   │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Key Tables

TablePurpose
public.audit_logsSource data (filtered by current user)

Key Files

FileDescription
modules/userActivity/UserActivityPage.tsxMain page
modules/userActivity/api/userActivityApi.tsAPI calls
modules/userActivity/components/UI components
---

2. Module Overview (Commercial/Business)

Business Value

My Activity provides personal accountability:

Without My ActivityWith My Activity
Unknown own historyFull personal trail
Forgotten changesEasy activity recall
No self-auditPersonal accountability
Memory-dependentLogged record

Use Cases

  1. Personal Activity Review
- "What did I change yesterday?"

- Review own recent actions

  1. Self-Audit
- Verify own actions

- Check for errors

  1. Session Tracking
- View own login history

- Check access from different IPs

  1. Change Recall
- Find what you modified

- Confirm changes were saved

Feature Highlights

FeatureBenefit
Personal OnlyOnly your actions
Action TypesCreate/Update/Delete
IP TrackingSee access locations
Metadata ViewChange details
Date FilteringHistorical queries
Quick SearchFind specific actions
---

3. Module Overview (End User/Administrator)

What Can You Do?

  • View your own activity history
  • Filter by date range
  • Filter by action type
  • Search by resource or IP
  • View change details/metadata
  • Track login sessions

My Activity Interface

Plaintext
┌─────────────────────────────────────────────────────────────────┐
│              My Activity                                        │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  Filters:                                                       │
│  ├─ Range: [Today ▼]                                           │
│  ├─ Actions: [All Actions ▼]                                   │
│  ├─ Resource: [                    ]                           │
│  └─ [🔄 Refresh] [Clear Filters]                               │
│                                                                 │
│  🔍 [Search by action, resource, or IP address...         ]   │
│                                                                 │
│  ┌───────────────────────────────────────────────────────────┐  │
│  │ Timestamp    │ Action  │ Resource  │ Res ID │ IP      │👁️│  │
│  ├──────────────┼─────────┼───────────┼────────┼─────────┼──┤  │
│  │ 01/16 10:30  │ Update  │ extension │  123   │ 192.168 │👁️│  │
│  │ 01/16 10:28  │ Create  │ user      │  456   │ 192.168 │👁️│  │
│  │ 01/16 10:25  │ Delete  │ gateway   │  789   │ 192.168 │👁️│  │
│  │ 01/16 10:00  │ Login   │ session   │   -    │ 192.168 │👁️│  │
│  │ 01/15 18:30  │ Logout  │ session   │   -    │ 192.168 │👁️│  │
│  └───────────────────────────────────────────────────────────┘  │
│                                                                 │
│  Showing 1-25 of 156 records                                    │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Quick Tips

TIP
View Details: Click 👁️ to see full metadata including old/new values.
TIP
Quick Ranges: Use Today, 7 Days, 15 Days, 30 Days for fast filtering.
NOTE
Personal Only: You can only see your own activity, not others'.

---

4. Activity Fields Reference

Display Columns

ColumnDescription
IDUnique activity ID
TimestampWhen action occurred
ActionType of action
ResourceWhat was affected
Resource IDSpecific item ID
IP AddressYour access IP
User AgentBrowser/client info
DetailsView metadata button

Action Types

ActionDescription
CreateNew record created
UpdateRecord modified
DeleteRecord removed
LoginYou logged in
LogoutYou logged out
ReadData accessed
ExecuteCommand executed
---

5. Common Scenarios & Examples

Scenario 1: What Did I Change Today?

  1. Set Range to "Today"
  2. Review all your actions
  3. Click Details for specifics

Scenario 2: Find a Specific Edit

  1. Filter by Action "Update"
  2. Search for resource name
  3. View metadata for changes

Scenario 3: Check Login History

  1. Filter Action by "Login"
  2. Review login times
  3. Check IP addresses

Scenario 4: Verify a Deletion

  1. Filter Action by "Delete"
  2. Find the record
  3. View metadata for deleted item details

---

6. Limitations & Important Notes

Technical Notes

NOTE
Personal Only: Only shows your own activity.
NOTE
Read-Only: Activity logs cannot be modified.
WARNING
Not Real-time: Click Refresh for latest.

Best Practices

  1. Regular Review: Check your activity periodically
  2. Verify Changes: Confirm important edits were saved
  3. Check IPs: Monitor for unusual access locations
  4. Use Filters: Quickly find specific actions
  5. View Details: Check metadata for full context

---

7. Troubleshooting Tips

Common Issues

SymptomPossible CauseSolution
No recordsToo restrictive filterClear filters
Missing actionNot loggedSome actions may not be tracked
Wrong dateDate filterCheck date range
No detailsMinimal metadataSome actions have limited details
Old dataNot refreshedClick Refresh

Comparison: My Activity vs Audit Logs

FeatureMy ActivityAudit Logs
ScopeCurrent user onlyAll users
PurposePersonal reviewAdmin oversight
AccessAny userAdmin only
DataSame formatSame format
---

8. Glossary

TermDefinition
ActivitySingle logged action
ActionType of operation
ResourceObject affected
MetadataAdditional change details
SessionLogin/logout period
User AgentBrowser identification
---

Lua Script Status ℹ️

No Lua Handler Required

ComponentStatus
My Activityℹ️ Frontend module - reads from public.audit_logs filtered by current user
My Activity is a frontend reporting module. It displays the same audit log data as Audit Logs, but filtered to show only the current user's actions. No Lua handlers are used.

---

Documentation last updated: January 2026
AI Assistant

👋 Hello! I'm your Ring2All documentation assistant. I can help you find information about configuring and using the Ring2All PBX platform.

How can I help you today?