Commit Graph

30 Commits

Author SHA1 Message Date
Alexis Saettler a5939d52cf feat: add gender type/sex (#2419) 2019-03-28 07:50:50 +01:00
Matthew Brown 684ce6bc56 refactor: fix bad return types with Psalter (#2435) 2019-02-16 19:20:28 +01:00
Alexis Saettler d6e851fcac fix: set a relationship without select any birthdate option (#2414) 2019-02-10 11:55:43 +01:00
Alexis Saettler 92bef2413c chore: add phpstan (#2383) 2019-02-07 22:44:34 +01:00
Alexis Saettler f660c4fd98 feat: register all app services as singleton (#2337) 2019-01-25 15:56:35 +01:00
Régis Freyd 69cfdebb1a feat: refactor reminders (#2223)
yolo
2019-01-15 18:03:13 -05:00
Alexis Saettler 4698c9ae90 fix: display avatars in search (#2075) 2018-11-24 13:19:05 +01:00
Alexis Saettler c8941e4a92 fix: fix some routes and validations (#1991) 2018-11-07 22:20:47 +01:00
Alexis Saettler 444babbb43 test: improve services rules validation (#1986) 2018-11-02 16:34:22 +01:00
Alexis Saettler a98b762195 feat: add ability to archive a contact (#1769) 2018-10-26 21:33:24 -04:00
Dago cfa4839b41 feat: add rich dropdown on relationships view (#1379) 2018-08-12 22:10:22 -04:00
Alexis Saettler 1c70d4ef24 fix: Fix contacts account mismatch (#1625) 2018-08-01 23:28:05 +02:00
Alexis Saettler 893322d378 Fix moment date parsing (#1618) 2018-07-26 11:02:27 +02:00
Alexis Saettler ed80f544a5 Improve Date and DateTime parsing (#1576) 2018-07-23 00:15:48 +02:00
Alexis Saettler 0ec0e8591d Use route function everywhere (#1568) 2018-07-22 21:04:31 +02:00
Alexis Saettler a95d0f3368 Use Carbon::toDateString function (#1571) 2018-07-14 15:49:56 +02:00
Régis Freyd 29197090a7 Restructure where models are stored (#1476)
The idea is to clean the repository a little bit by moving models into their respective folders.
2018-06-14 20:49:12 -04:00
Tom Rochette 90dc58348c [#1437] Set the default_avatar_color property before saving a contact model. (#1464) 2018-06-12 20:46:49 +02:00
Régis Freyd 3d1ff3e867 Add support for nickname (#1359) 2018-06-04 18:02:21 -04:00
Tom Rochette d2c9c75644 Fix tests to prepare for foreign keys (#1289)
* Fix AccountTest tests.
Update the model factories not to expect a constant value for account_id.
Add various missing relationships in the model factories.

* Fix AddressTest after the addition of foreign keys.

* Fix ContactTest after the addition of foreign keys.
Set contact/account before saving a special date using Contact::setSpecialDate or Contact::setSpecialDateFromAge.

* Fix DayTest after the addition of foreign keys.

* Fix EntryTest after the addition of foreign keys.

* Fix GiftTest after the addition of foreign keys.

* Fix JournalEntryTest after the addition of foreign keys.

* Fix NoteTest after the addition of foreign keys.

* Fix NotificationTest after the addition of foreign keys.

* Fix PetTest after the addition of foreign keys.

* Return the account id and not the account object in many model factories definition.

* Fix ReminderTest after the addition of foreign keys.

* Fix SpecialDateTest after the addition of foreign keys.

* Fix UserTest after the addition of foreign keys.

* Make instead of creating in Contact::logEvent() as we cannot create an event without giving it an account_id.

* Fix ActivityTest after the addition of foreign keys.

* Fix SendNotificationsTest after the addition of foreign keys.

* Fix SendNotificationsTest after the addition of foreign keys.
- Remove the test_it_deletes_the_notification_if_contact_does_not_exist test because on deletion of a contact, all his associated notifications will be deleted due to cascade constraints.

* Fix SendRemindersTest after the addition of foreign keys.
- Remove the test_it_deletes_the_reminder_if_contact_doesnt_exist test because on deletion of a contact, all his associated reminders will be deleted due to cascade constraints.

* Fix TagTest after the addition of foreign keys.

* Update the logic in Contact::removeSpecialDate so that a foreign key constraint is not triggered when removing the associated relation.
Set a the partner gender before saving the partner as the gender is mandatory.
Add the ConvertEmptyStringsToNull middleware.
Set the metThroughId default option as empty so it is converted to null by the ConvertEmptyStringsToNull middleware.
Set the activity_type_id as empty so it is converted to null by the ConvertEmptyStringsToNull middleware.
Mark the Reminder title has required.
2018-05-08 21:33:12 -04:00
Régis Freyd 586e477bb8 Remove automatic birthday reminder creation when editing a contact (#1275) 2018-05-04 22:59:41 -04:00
Matthew Brown da73a6e15d Add Psalm to check for possibly fatal issues (#973) 2018-04-29 19:11:40 +02:00
Alexis Saettler 6657aeec9a Fix bugs with last commits (#1130) 2018-04-09 21:07:04 +02:00
Danny 3ba96cf18b Add UUID instead of actual ID to identify contacts (#777)
Close #381
2018-04-08 14:23:13 -04:00
Régis Freyd ae521f5226 Refactor relationships (#971) 2018-04-01 20:46:51 -04:00
Alexis Saettler 558515b59a Fix issues proposed by sonar (#986) 2018-03-08 22:37:27 +01:00
Régis Freyd e78e140b9e Add support for custom genders (#879) 2018-02-04 15:44:26 -05:00
Régis Freyd 94f8146411 Change how the Journal works (#709) 2017-12-22 14:53:45 -05:00
Régis Freyd d8bed11785 Add ability to add dates without a year (#677) 2017-12-13 15:38:05 -05:00
Régis Freyd 84a1461c0f Add the ability to set an external avatar (#662)
This will allow the new Chrome extension for Monica to fetch
contacts from Facebook and retrieve the avatar.
2017-11-27 19:32:45 -05:00