Commit Graph

39 Commits

Author SHA1 Message Date
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
Alexis Saettler 18be5acaea Fix some sonar issues (#1546) 2018-07-07 16:24:07 +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
Alexis Saettler 61961d580d Optimization for getting list of countries (#1321) 2018-05-13 14:08:27 +02: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
Alexis Saettler 67171c0309 Get list of countries from countries-laravel package (#1117) 2018-05-08 18:30:35 +02:00
Régis Freyd 4b1a8200e5 Fix missing views due to a folder restructure (#1288) 2018-05-07 20:45:53 -04:00
Régis Freyd 586e477bb8 Remove automatic birthday reminder creation when editing a contact (#1275) 2018-05-04 22:59:41 -04:00
Alexis Saettler d0292b3f6f Fix removing tags (#1264) 2018-05-03 01:34:34 +02:00
Régis Freyd cae774bd4a Add support for markdown on Journal and Notes (#1230) 2018-04-29 22:56: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
Alexis Saettler 0830b09134 Fix Gifts handle (#1115) 2018-04-08 23:58:15 +02:00
Danny 54aecde3d9 Fix a bug when editing gift (#1088) 2018-04-08 23:46:20 +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
Pascal Schneider dd8484f0b5 Fixed usage of wrong success message when adding existing contact as kid of someone (#1041) 2018-03-30 00:53:19 +02:00
Gabriel Caruso 1794435726 Use now helper (#1051) 2018-03-29 10:09:04 +02:00
Alexis Saettler 006ce9ad3e I18n improvements (#1060)
* Add a default locale
* Use html lang and dir attributes
* Fix translations
* Add pluralize forms
2018-03-26 22:00:36 +02:00
Alexis Saettler 558515b59a Fix issues proposed by sonar (#986) 2018-03-08 22:37:27 +01:00
Matthew Brown 749caa2c03 Fix issues found by static analysis (#878) 2018-03-04 18:23:33 +01:00
Alexis Saettler 422a305b14 Fix gravatar support (#944) 2018-03-02 13:04:47 +01:00
Alexis Saettler 9fbf194e89 Fixes based on sonar recommandations (#934) 2018-02-26 19:31:39 +01:00
Régis Freyd e96b70f95c Add concept of notifications for reminders (#894) 2018-02-25 17:42:14 -05:00
Régis Freyd 3cbd95dec0 Add ability to associate and remove one or more tags to a contact via the API (#924)
3 new API methods have been added:

* It allows to associate one or more tags with a contact,
* It allows to remove one or more tags from a contact,
* It allows to remove all the tags from a contact at once.
2018-02-24 18:01:15 -05:00
Régis Freyd e78e140b9e Add support for custom genders (#879) 2018-02-04 15:44:26 -05:00
Régis Freyd a9a6e4cdc6 Add more unit tests for Gift model (#843) 2018-01-21 23:19:14 -05:00
Régis Freyd 7f246922ed Add ability to mark a gift idea as being offered (#831) 2018-01-18 23:53:20 -05:00
Jakaria Blaine c836f56762 API: Fetch Countries in alphabetical order (#752) 2018-01-08 19:22:36 -05:00
Régis Freyd 6d8dcefe77 Add Pets management (#722) 2017-12-26 21:38:09 -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 76c75ce6e7 Add inline notes editing and favorites for notes (#672)
Notes are now edited inline (with Vue.js) and can be marked as favorites.
Favorite notes will appear on the dashboard in a new tab.
2017-12-04 09:55:47 -05:00
Régis Freyd 7e367d67da Manage tasks in Vue.js (#666)
* Tasks are now edited inline
* Tasks can be marked as completed
* Tasks can be edited
2017-11-29 16:07:37 -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