Commit Graph

133 Commits

Author SHA1 Message Date
59f0446925 Merge pull request 'feat: add debug prints for field lengths in AppointmentRequest before saving' (#62) from feature/meetings into main
Reviewed-on: https://gitea.blackbusinesslabs.com/ATTUNE-HEART-THERAPY/alternative-backend-service/pulls/62
2025-12-04 12:26:07 +00:00
cd5fd63399 feat: add debug prints for field lengths in AppointmentRequest before saving 2025-12-04 12:25:35 +00:00
a59b2499f0 Merge pull request 'feature/meetings' (#61) from feature/meetings into main
Reviewed-on: https://gitea.blackbusinesslabs.com/ATTUNE-HEART-THERAPY/alternative-backend-service/pulls/61
2025-12-04 12:10:57 +00:00
596188144b feat: add max_length to jitsi_meeting_password field in AppointmentRequest model 2025-12-04 12:10:27 +00:00
1480049f3c feat: refactor AppointmentRequest model to use standard fields instead of encrypted fields 2025-12-04 12:09:46 +00:00
565592dfb4 Merge pull request 'feat: update AppointmentRequest model fields and adjust migration files' (#60) from feature/meetings into main
Reviewed-on: https://gitea.blackbusinesslabs.com/ATTUNE-HEART-THERAPY/alternative-backend-service/pulls/60
2025-12-04 12:02:18 +00:00
2dc08aeded feat: update AppointmentRequest model fields and adjust migration files 2025-12-04 12:01:34 +00:00
a4f3714115 Merge pull request 'feat: remove obsolete migration files for meetings and users' (#59) from feature/meetings into main
Reviewed-on: https://gitea.blackbusinesslabs.com/ATTUNE-HEART-THERAPY/alternative-backend-service/pulls/59
2025-12-04 11:35:22 +00:00
ddab7313ee feat: remove obsolete migration files for meetings and users 2025-12-04 11:34:49 +00:00
7694221400 Merge pull request 'feat: increase max_length for EncryptedEmailField to 2000' (#58) from feature/meetings into main
Reviewed-on: https://gitea.blackbusinesslabs.com/ATTUNE-HEART-THERAPY/alternative-backend-service/pulls/58
2025-12-04 11:22:14 +00:00
a2243046e9 feat: increase max_length for EncryptedEmailField to 2000 2025-12-04 11:21:33 +00:00
5401ab61d2 Merge pull request 'feat: increase max_length for fields in AppointmentRequest model' (#57) from feature/meetings into main
Reviewed-on: https://gitea.blackbusinesslabs.com/ATTUNE-HEART-THERAPY/alternative-backend-service/pulls/57
2025-12-04 11:08:27 +00:00
b434858faf feat: increase max_length for fields in AppointmentRequest model 2025-12-04 11:07:54 +00:00
2e72a69214 Merge pull request 'feat: add start and end meeting endpoints for scheduled appointments' (#56) from feature/meetings into main
Reviewed-on: https://gitea.blackbusinesslabs.com/ATTUNE-HEART-THERAPY/alternative-backend-service/pulls/56
2025-12-04 10:57:56 +00:00
82af34c2e4 feat: add start and end meeting endpoints for scheduled appointments 2025-12-04 10:57:19 +00:00
e78a8da89b Merge pull request 'feat: increase max_length for encrypted fields in AppointmentRequest model' (#55) from feature/meetings into main
Reviewed-on: https://gitea.blackbusinesslabs.com/ATTUNE-HEART-THERAPY/alternative-backend-service/pulls/55
2025-12-04 10:50:12 +00:00
31a1f56fc9 feat: increase max_length for encrypted fields in AppointmentRequest model 2025-12-04 10:49:27 +00:00
034a1ccccc Merge pull request 'feat: refactor AppointmentRequest methods and update serializers to include selected_slots field' (#54) from feature/meetings into main
Reviewed-on: https://gitea.blackbusinesslabs.com/ATTUNE-HEART-THERAPY/alternative-backend-service/pulls/54
2025-12-03 20:11:08 +00:00
875a284893 feat: refactor AppointmentRequest methods and update serializers to include selected_slots field 2025-12-03 20:10:15 +00:00
518e13f84c Merge pull request 'feat: add selected_slots field to AppointmentRequest model and update serializers' (#53) from feature/meetings into main
Reviewed-on: https://gitea.blackbusinesslabs.com/ATTUNE-HEART-THERAPY/alternative-backend-service/pulls/53
2025-12-03 15:46:25 +00:00
53aac43289 feat: add selected_slots field to AppointmentRequest model and update serializers 2025-12-03 15:44:56 +00:00
f8a0aac54b Merge pull request 'Refactor code structure for improved readability and maintainability' (#52) from feature/meetings into main
Reviewed-on: https://gitea.blackbusinesslabs.com/ATTUNE-HEART-THERAPY/alternative-backend-service/pulls/52
2025-12-02 19:34:59 +00:00
99f9dac965 Refactor code structure for improved readability and maintainability 2025-12-02 19:32:51 +00:00
c963fe045c Merge pull request 'feat: refactor contact message handling and update appointment request model' (#51) from feature/meetings into main
Reviewed-on: https://gitea.blackbusinesslabs.com/ATTUNE-HEART-THERAPY/alternative-backend-service/pulls/51
2025-12-01 18:42:19 +00:00
d5c3f12dbb feat: refactor contact message handling and update appointment request model 2025-12-01 18:40:56 +00:00
11ac82d6f9 Merge pull request 'feat: add contact form functionality with admin management' (#50) from feature/meetings into main
Reviewed-on: https://gitea.blackbusinesslabs.com/ATTUNE-HEART-THERAPY/alternative-backend-service/pulls/50
2025-11-28 15:53:16 +00:00
cd5ad1d753 feat: add contact form functionality with admin management
Add a complete contact form system with the following changes:
- Create ContactMessage model to store form submissions with tracking fields (is_read, is_responded)
- Implement ContactMessage admin interface with custom actions, filters, and bulk operations
- Add contact endpoint documentation to API root view
- Update email configuration to use admin@attunehearttherapy.com as sender address

This enables users to submit contact inquiries and allows administrators to track and manage these messages efficiently through the Django admin panel.
2025-11-28 15:52:06 +00:00
38c67b4a27 Merge pull request 'refactor(meetings): standardize null handling for Jitsi fields and enhance emails' (#49) from feature/meetings into main
Reviewed-on: https://gitea.blackbusinesslabs.com/ATTUNE-HEART-THERAPY/alternative-backend-service/pulls/49
2025-11-28 12:52:09 +00:00
23c185c93d refactor(meetings): standardize null handling for Jitsi fields and enhance emails
- Set explicit default=None for jitsi_room_id field to ensure consistent null handling
- Update rejection logic to use None instead of empty strings for Jitsi fields, maintaining database consistency with nullable field definitions
- Add login instructions to appointment confirmation email directing users to join 15 minutes early
- Remove outdated "self-guided resources" option from rejection email
- Add styling for new login-info section in scheduled appointment template

This ensures proper null value handling in the database and improves user communication for appointment workflows.
2025-11-28 12:50:33 +00:00
10d2e7ff13 Merge pull request 'security: remove localhost origins from CORS allowed list' (#48) from feature/meetings into main
Reviewed-on: https://gitea.blackbusinesslabs.com/ATTUNE-HEART-THERAPY/alternative-backend-service/pulls/48
2025-11-28 10:51:28 +00:00
027d216fcb security: remove localhost origins from CORS allowed list
Remove local development URLs (localhost:3000 and 127.0.0.1:3000) from
CORS_ALLOWED_ORIGINS configuration. This restricts CORS to only allow
requests from the production domain (attunehearttherapy.com), improving
security by preventing unauthorized cross-origin requests from
development environments.
2025-11-28 10:50:43 +00:00
b555c56847 Merge pull request 'fix(email): hardcode admin dashboard URL and open in new tab' (#47) from feature/meetings into main
Reviewed-on: https://gitea.blackbusinesslabs.com/ATTUNE-HEART-THERAPY/alternative-backend-service/pulls/47
2025-11-27 21:10:48 +00:00
b43ead53c6 fix(email): hardcode admin dashboard URL and open in new tab
- Replace dynamic admin_dashboard_url construction with hardcoded production URL (https://attunehearttherapy.com/admin/dashboard)
- Add target="_blank" to admin notification email button to open dashboard in new tab
- Improves user experience by preventing email client navigation disruption
2025-11-27 21:09:52 +00:00
9834777f94 Merge pull request 'feature/meetings' (#46) from feature/meetings into main
Reviewed-on: https://gitea.blackbusinesslabs.com/ATTUNE-HEART-THERAPY/alternative-backend-service/pulls/46
2025-11-27 19:55:12 +00:00
bc001074b1 style: add blank lines for improved code readability
Add extra blank lines in booking_system and meetings views to improve
code structure and visual separation between logical sections. This
enhances code readability without affecting functionality.

Changes:
- booking_system/views.py: added blank line after availability_system section
- meetings/views.py: added blank line after get_queryset method
2025-11-27 19:54:03 +00:00
774ac584b4 refactor: convert user appointment endpoints from POST to GET
Changes:
- Refactored UserAppointmentsView and UserAppointmentStatsView to use GET instead of POST
- Removed email parameter
2025-11-27 19:51:55 +00:00
88cb7986cc Merge pull request 'feature/meetings' (#45) from feature/meetings into main
Reviewed-on: https://gitea.blackbusinesslabs.com/ATTUNE-HEART-THERAPY/alternative-backend-service/pulls/45
2025-11-27 18:45:33 +00:00
98b9274e03 docs: update API documentation with example data and user appointments endpoint
- Replace generic placeholder data with specific examples in API root documentation
- Update example email from 'user@example.com' to 'saanii929@gmail'
- Update example names from 'John Doe' to 'Saani Iddi'
- Update example phone number to '+233552732025'
- Add POST method support to user_appointments endpoint
- Add request_fields and example_request to user_appointments documentation

Note: Consider using generic placeholder data instead of real personal information in API documentation examples.
2025-11-27 18:43:51 +00:00
20b7455eb7 refactor(emails): update support email to admin address
- Change support email from hello@attunehearttherapy.com to admin@attunehearttherapy.com across all email templates
- Remove support contact section from admin notification template
- Standardize email addresses by hardcoding admin email in templates
- Remove unused CSS comment from base email template

This ensures consistent support contact information across the application and directs user inquiries to the appropriate admin channel.
2025-11-27 18:30:23 +00:00
488271489e Merge pull request 'fix: update default admin email fallback address' (#44) from feature/meetings into main
Reviewed-on: https://gitea.blackbusinesslabs.com/ATTUNE-HEART-THERAPY/alternative-backend-service/pulls/44
2025-11-27 17:31:56 +00:00
9ebfa76d6a fix: update default admin email fallback address
Changed the fallback admin email from 'hello@' to 'admin@attunehearttherapy.com' in the email service. This ensures admin notifications are sent to the correct administrative email address when ADMIN_EMAIL setting is not configured.
2025-11-27 17:31:16 +00:00
94fa7c97d7 Merge pull request 'Adding migrations' (#43) from feature/meetings into main
Reviewed-on: https://gitea.blackbusinesslabs.com/ATTUNE-HEART-THERAPY/alternative-backend-service/pulls/43
2025-11-27 15:19:24 +00:00
e66352e9ad Adding migrations 2025-11-27 15:18:56 +00:00
2f56f6bb49 Merge pull request 'feature/meetings' (#42) from feature/meetings into main
Reviewed-on: https://gitea.blackbusinesslabs.com/ATTUNE-HEART-THERAPY/alternative-backend-service/pulls/42
2025-11-27 15:00:44 +00:00
0e7e51dc7d Deleting migrations 2025-11-27 15:00:16 +00:00
7d5d3217a0 fix: allow null values for Jitsi fields in AppointmentRequest
Add `null=True` to `jitsi_meet_url` and `jitsi_room_id` fields in the AppointmentRequest model. This allows these optional fields to be NULL at the database level in addition to accepting blank values, which is the proper Django pattern for optional string-based fields.

This change requires a database migration to be generated and applied.
2025-11-27 14:56:37 +00:00
1ca8624f8d Merge pull request 'refactor(meetings): increase encrypted field lengths and add ID to admin' (#41) from feature/meetings into main
Reviewed-on: https://gitea.blackbusinesslabs.com/ATTUNE-HEART-THERAPY/alternative-backend-service/pulls/41
2025-11-27 14:44:42 +00:00
b58338db2f refactor(meetings): increase encrypted field lengths and add ID to admin
- Increase max_length from 100 to 255 for first_name and last_name encrypted fields
- Increase phone field max_length from 20 to 255 to accommodate encryption overhead
- Add 'id' field to AppointmentRequest admin list_display for easier reference
- Remove redundant docstring from _convert_to_datetime method

The increased field lengths ensure adequate storage for encrypted data, which typically requires more space than plaintext values.
2025-11-27 14:43:50 +00:00
ab61b35913 Merge pull request 'docs(api): refactor appointments endpoint documentation structure' (#40) from feature/meetings into main
Reviewed-on: https://gitea.blackbusinesslabs.com/ATTUNE-HEART-THERAPY/alternative-backend-service/pulls/40
2025-11-26 19:41:57 +00:00
a7d451702f docs(api): refactor appointments endpoint documentation structure
Enhanced the API root documentation for the appointments system with improved formatting and updated description to include "flexible availability" feature. Restructured the endpoint documentation for better readability and maintainability while preserving all endpoint information including Jitsi meeting integration details.
2025-11-26 19:30:26 +00:00