Contact Management

Relationships, visibility, and reputation within the modular system.

ES

πŸ“‹ Overview

This module manages contacts, relationships, and reputation within a modular SaaS system. It supports controlled visibility, a trust score, notifications, and account verification.

🧩 Key Concepts

πŸ‘€ Contacts

Stored in contacts, with identity and trust data.

πŸ‘οΈ Visibility

Controlled via contact_entities β€” determines which module/owner can see each contact.

🧭 Modules

Contacts exist per module (a multi-context system) β€” the same contact can have different visibility depending on which module accesses it.

βš™οΈ Features

  • Add and manage contacts
  • Soft delete and restore contacts
  • Like and rate contacts
  • Automatic trust score calculation
  • Notification system
  • Email account verification

πŸ“Œ How to Use

1

View Contacts

Open index.php. Use the filters to search or sort contacts.

2

Add a Contact

Click New Contact β†’ enter name and email β†’ optionally add CURP and relationship β†’ submit.

3

Interact

Like: adds a positive interaction. Rate: assigns a numeric score. Remove: hides the contact (doesn't permanently delete it).

4

Notifications

Use the bell icon to see recent activity and alerts.

πŸ”Œ API

GET api.php?action=get_contacts POST api.php?action=mark_all_read (X-CSRF-Token)

⚠️ Important Notes

  • A contact needs a row in contact_entities to have visibility β€” without one, it won't show up.
  • The trust score updates automatically with every interaction.
  • Verification tokens expire after 24 hours.
  • Rate limits apply to interactions to prevent abuse.
↑