Skip to content

feat: add export to JSON functionality for contacts (#7928)#7934

Open
diusazzad wants to merge 1 commit intomonicahq:mainfrom
diusazzad:feature/json-export-contact
Open

feat: add export to JSON functionality for contacts (#7928)#7934
diusazzad wants to merge 1 commit intomonicahq:mainfrom
diusazzad:feature/json-export-contact

Conversation

@diusazzad
Copy link
Copy Markdown

Description

This PR adds a 'Download as JSON' option to the contact profile sidebar. It allows users to export all contact-related information in a structured JSON format for better interoperability.

Related Issue

Fixes #7928

Changes Made

  • Created ContactJsonExportController to handle the JSON generation.
  • Added /export/json route for contacts.
  • Updated ContactShowViewHelper to provide the export URL.
  • Added "Download as JSON" link in Show.vue profile sidebar.

Verification

  • Verified manually: The JSON file downloads correctly and contains all relevant contact data.
  • Verified with unit tests: ContactShowViewHelperTest.php passes with PHP 8.4.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 5, 2026

CLA assistant check
All committers have signed the CLA.

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 Request: Add JSON Export for Contacts

2 participants