Commit Graph
38 Commits
Author SHA1 Message Date
Alexis SaettlerandGitHub a79c19dd6c Add email confirmation on signup (#1374) 2018-05-28 17:40:17 +02:00
Régis FreydandGitHub 9018b558b8 Add GDPR compliance (#1296) 2018-05-20 16:00:03 -04:00
Alexis SaettlerandGitHub 304762c52b Fix update command (#1317) 2018-05-12 18:16:57 +02:00
Tom RochetteandRégis Freyd 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 SaettlerandGitHub 67171c0309 Get list of countries from countries-laravel package (#1117) 2018-05-08 18:30:35 +02:00
Régis FreydandGitHub 08c61abf13 Refactor vCard import (#1227) 2018-04-30 23:06:42 -04:00
Régis FreydandGitHub ad2b75db75 Add changelog inside the application (#1172) 2018-04-14 19:52:52 -04:00
Régis FreydandGitHub 874a7f09fb Add ability to define which features you want active on the Contact sheet (#1121) 2018-04-09 09:07:52 -04:00
DannyandRégis Freyd 3ba96cf18b Add UUID instead of actual ID to identify contacts (#777)
Close #381
2018-04-08 14:23:13 -04:00
Régis FreydandGitHub ae521f5226 Refactor relationships (#971) 2018-04-01 20:46:51 -04:00
Gabriel CarusoandAlexis Saettler 1794435726 Use now helper (#1051) 2018-03-29 10:09:04 +02:00
Alexis SaettlerandGitHub 422a305b14 Fix gravatar support (#944) 2018-03-02 13:04:47 +01:00
Régis FreydandGitHub e96b70f95c Add concept of notifications for reminders (#894) 2018-02-25 17:42:14 -05:00
Régis FreydandGitHub 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
Alexis SaettlerandGitHub 2c14f6d0ee Fix default genders seed with setup:production (#898) 2018-02-15 21:40:19 +01:00
Régis FreydandGitHub e78e140b9e Add support for custom genders (#879) 2018-02-04 15:44:26 -05:00
Régis FreydandGitHub cc754ca35d Add Annual plan (#861) 2018-01-28 13:22:55 -05:00
Régis FreydandGitHub fa6910510a More unit tests for many models (#851) 2018-01-24 23:01:45 -05:00
Régis FreydandGitHub 9e08f04642 Add more unit tests for User, Tag, Reminder and PetCategory models (#845) 2018-01-23 00:09:22 -05:00
Régis FreydandGitHub a5a602033d Add ability to export a contact as CSV (#840) 2018-01-21 22:28:47 -05:00
Régis FreydandGitHub 4fc47f605b Add more unit tests for Account model (#833) 2018-01-19 10:19:55 -05:00
Régis FreydandGitHub 94f8146411 Change how the Journal works (#709) 2017-12-22 14:53:45 -05:00
Régis FreydandGitHub d8bed11785 Add ability to add dates without a year (#677) 2017-12-13 15:38:05 -05:00
Régis FreydandGitHub 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
Régis FreydandGitHub 8e575735d5 Add support for multiple contact fields and addresses (#657)
This requires to run the migrations `php artisan migrate` which might take some time.
2017-11-26 09:36:20 -05:00
Régis FreydandGitHub 7e1cd96bf5 Add API (#606)
This is the first part of the API. It supports most of contacts, as well as the
journal. This PR also brings Monica to Laravel 5.5, as the API required it with
the new concept of resources. It needs to run `php artisan migrate` as well as
`php artisan passport:keys` to generate the access tokens needed for the API.
2017-10-30 08:38:15 -04:00
Ng Yik PhangandRégis Freyd a3fed98de0 Use str_random instead of RandomHelper (#571)
Laravel has a built-in string randomiser function, no need to
hand-roll a custom one.

https://laravel.com/docs/5.4/helpers#method-str-random
2017-10-03 23:33:17 -04:00
Régis FreydandGitHub a3af477ebe Add new account limit for free accounts (#561) 2017-08-28 21:41:44 -04:00
Régis FreydandGitHub 503b0f0c2d Markdown support for notes and log calls (#544)
Close #506 
Fix #545
2017-08-15 22:22:21 -04:00
Régis FreydandGitHub 095ef1caa8 Significant other and kids can now be contacts (#524) 2017-08-14 17:14:46 -04:00
Régis FreydandGitHub a2172f0851 Add style CI (#503)
Hopefully this will result in slightly better code.
2017-07-26 21:02:55 -04:00
Régis FreydandGitHub c444841049 Add ability to keep track of phone calls (#467) 2017-07-13 22:00:01 -04:00
Régis FreydandGitHub 166e662103 Add functional tests for notes (#461) 2017-07-10 22:45:08 -04:00
Yamamoto KadirandRégis Freyd 496d23e4a7 Separate PeopleController into smaller chunks (#253)
* Edit relation docblocks of Contact model
* Move activities to its own controller
* Move reminders to its own controller
* Move tasks to its own controller
* Refactor Gift in preparation for the move
* Move gifts into its own controller
* Fix failing tests
* Move debt to its own controllelr
* Fix tests failing on PHP7
* Move significant others to its own controller
* Move kids to its own controller
* Move notes to its own controller
* Some more adjustments & solving #277
And more query optimizations
2017-06-15 15:03:22 -04:00
jeremydenounandRégis Freyd 21ae66d444 Breaking: Add timezone as an env variable (#170)
The idea is that the instance owner can decide what should be the default timezone for every new user on the system. Also:

* change default APP_KEY to 32 char (avoid warning on specif openssl version) and update readme to remember 'php artisan key:generate' usage
2017-06-14 21:46:55 -04:00
Brandon TurnerandRégis Freyd 1d306154dd Added basic tests for contacts (#243) 2017-06-13 15:53:20 -04:00
RégisandGitHub ed29243841 Reminders are working again 2017-05-29 21:27:00 -04:00
Regis Freyd 2e6760e7db Migrate to organization 2017-02-16 19:21:44 -05:00