Commit Graph
35 Commits
Author SHA1 Message Date
Alexis SaettlerandGitHub 04607f3eb5 Fix contact deletion (#1114) 2018-04-07 16:07:44 +02:00
Alexis SaettlerandGitHub 2513137d12 Add an update command (#997) 2018-04-07 10:35:39 +02:00
Régis FreydandGitHub fcc139efb7 Add unit test for one method in Contact object (#1091) 2018-04-01 21:31:24 -04:00
Régis FreydandGitHub ae521f5226 Refactor relationships (#971) 2018-04-01 20:46:51 -04:00
dependabot[bot]andAlexis Saettler f59b5b1f5e Bump creativeorange/gravatar from 1.0.10 to 1.0.11 (#1074)
* Bump creativeorange/gravatar from 1.0.10 to 1.0.11

Bumps [creativeorange/gravatar](https://github.com/creativeorange/gravatar) from 1.0.10 to 1.0.11.
- [Release notes](https://github.com/creativeorange/gravatar/releases)
- [Commits](https://github.com/creativeorange/gravatar/compare/v1.0.10...v1.0.11)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-03-30 09:52:24 +02:00
Alexis SaettlerandGitHub 9d2c787b58 Reduce sonar complexity (#992) 2018-03-17 11:12:49 +01: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
Régis FreydandGitHub b46fa4631c Better edit contact screen (#890) 2018-02-11 11:23:20 -05:00
Régis FreydandGitHub e78e140b9e Add support for custom genders (#879) 2018-02-04 15:44:26 -05:00
Régis FreydandGitHub 1944190905 Fix avatar being invalid in the Contact API call (#863) 2018-01-28 09:43:50 -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 dbdd524236 Add ability to mark contact as dead (#642) 2017-11-09 13:23:33 -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
Michael HeapandRégis Freyd b95d9a24ee Assign multiple people to an activity (#611)
This change requires `php artisan migrate`.
2017-10-21 22:09:08 -04:00
Régis FreydandGitHub 095ef1caa8 Significant other and kids can now be contacts (#524) 2017-08-14 17:14:46 -04:00
LeeandRégis Freyd 6f8ae10617 Add debt total (#510)
Close #382
2017-08-03 20:06:59 -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 4a0598b9d7 Add ability to define name order (#377)
Not everyone lives in the western culture. In some countries, names are not defined in the `firstname lastname` order, but rather the opposite, `lastname firstname`.

You can now define this order in your Settings panel.

Close #372
2017-06-22 16:43:19 -04:00
Yamamoto KadirandRégis Freyd e7e0446d9c Further normalize PeopleController. Notes are ordered desc (#319)
Further normalize PeopleController and fix #311
2017-06-20 21:06:42 -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
Régis FreydandGitHub e55697fbef Add job information to contacts (#265)
* Add Job information
* Add company information
* Fix a bug in the task deletion noticed in the process
2017-06-13 17:02:01 -04:00
Yamamoto KadirandRégis Freyd 50005544ee Fix some relationship inconsistencies and reduce dashboard queries (#209)
This normalizes all relationships and adds relations to models to take advantage of laravel's eagerloading and reduce queries to the database.

This might go against the 'add any kind of complexities whatsoever' rule in the contribution guide, but I think adding relations would eventually simplify the code base. The amount of queries just on the dashboard fell from ~70 to 26. There's also a lot of boilerplate code in the Contact model to retrieve relationships and to maintain accurate count of them (fields like number_of_*). They can be greatly simplified with the addition of relations.

One other thing in the Contact model was the definition of the Contact-User relation. This definition uses the account_id field in the contacts table and and relates it to id in users. I'm not sure if this is the intention, since the id from accounts table is used when assigning account_id for a contact. This seems to have worked so far, because both a user and its associated account are created at the same time during registration and their ids match, but if there was any difference, this relationship would relate wrong contacts and users. I changed the relationship name to account. This makes the path to a user from a contact is $contact->account->user right now.
2017-06-11 23:01:23 -04:00
Régis FreydandGitHub f61e10daca Add support for social profiles (#191)
* Add support for social profiles
* Add messages in other languages (untranslated)
2017-06-10 12:20:24 -04:00
RégisandGitHub 5fd8530bfa Add money lending 2017-05-30 12:21:41 -04:00
RégisandGitHub 82a39f2655 Simplify management of a contact 2017-05-04 13:54:06 -04:00
RégisandGitHub 70bb786c1b Refactor management of kids 2017-05-03 20:49:24 -04:00
RégisandGitHub 3c274e6fa2 Simplify significant others management 2017-05-03 12:20:05 -04:00
RégisandGitHub 53bb6ff7b7 Yet another refactoring 2017-05-02 21:24:10 -04:00
RégisandGitHub 265f0ffbe3 Remove marketing material from the application 2017-02-20 22:53:30 -05:00
Regis Freyd 2e6760e7db Migrate to organization 2017-02-16 19:21:44 -05:00